I'm making some good progress. But have hit a snag (again). My addon launches through the default.py and opens up to a landing page. it has it's own xml file and is controlled by the default.py. When i click on menu item "All Sports" it opens a page that will be populated with a grid of icons displaying all of the sports available from thesportsdb. The all sports page has its own allsports.py and allsports.xml file. It also uses a file called GetAllSportsScript.py to get and make a useable list of all of the sports. I ran this in the terminal and it definitely gets the image files. The problem is now i'm getting this error:
2023-06-24 15:50:35.035 T:24796 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'ModuleNotFoundError'>
Error Contents: No module named 'requests'
Traceback (most recent call last):
File "C:\Users\mjc_c\AppData\Roaming\Kodi\addons\plugin.sportsview\default.py", line 3, in <module>
from allsports import AllSportsPage
File "C:\Users\mjc_c\AppData\Roaming\Kodi\addons\plugin.sportsview\allsports.py", line 2, in <module>
from resources.scripts.GetAllSportsScript import get_sports
File "C:\Users\mjc_c\AppData\Roaming\Kodi\addons\plugin.sportsview\resources\scripts\GetAllSportsScript.py", line 1, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
-->End of Python script error report<--
Here are the contents of my files:
default.py:
https://pastebin.com/uKC1ty7j
landingpage.xml:
https://pastebin.com/e9ZtjcXR
allsports.py:
https://pastebin.com/wBQwkBAg
allsports.xml:
https://pastebin.com/7bnCiJmB
GetAllSportsScript.py:
https://pastebin.com/wHzWFJg0
Anything glaringly obvious?