Aug-23-2019, 01:36 PM
(Aug-22-2019, 07:05 PM)NonSufficitOrbis Wrote: And whenever I run the script in Kodi I get this error:Are you using Python interpreter that's comes with kodi or do try to us OS Python?
About Add-ons
kodi Wrote:Kodi includes a built-in Python interpreter that allows users to develop add-ons (scripts and plugins) that interface easily and cleanly with the Kodi dashboard.
Basic test to see what's used.
E:\div_code\foo λ python -V Python 3.7.3 # Placement of Python interpreter used also python.exe # When us kodi version of Python,then it will be where they have placed python.exe E:\div_code\foo λ python -c "import sys; print(sys.executable)" C:\python37\python.exe # Where pip install to E:\div_code\foo λ pip -V pip 19.2.1 from c:\python37\lib\site-packages\pip (python 3.7)
NonSufficitOrbis Wrote:import win32api, sys, osThere is no problem to build it with venv virtual environment,to avoid conflict.
ImportError: Module use of python37.dll conflicts with this version of Python.
I not sure if you should OS Python or there version of Python when use kodi,have you looked into this?