2015-03-17, 16:31
Hi,
This is potentially a newbie question but I cannot find solid information about this on the Forum or with Google.
I have just built a xmbc-14.1-Helix from sources on my Ubuntu machine. The machine has got python-2.7 installed, so I ran configure with ./configure PYTHON_VERSION=2.7. It builds fine, but it doesn't run because of python.
It seems like kodi is actually using python modules form the machine installed version rather than the ones supposedly coming with the kodi release. I did a small hack to start kodi and work around a " AttributeError: 'module' object has no attribute 'pydebug'" error, but now when trying to run a python script (addons), I get:
So why is kodi using "/usr/lib/python2.7/struct.py", shouln't it be invoking modules coming with the Kodi sources? I there a way to make sure kodi will use the correct version of python?
Thank you for any help about this...
Pierre
This is potentially a newbie question but I cannot find solid information about this on the Forum or with Google.
I have just built a xmbc-14.1-Helix from sources on my Ubuntu machine. The machine has got python-2.7 installed, so I ran configure with ./configure PYTHON_VERSION=2.7. It builds fine, but it doesn't run because of python.
It seems like kodi is actually using python modules form the machine installed version rather than the ones supposedly coming with the kodi release. I did a small hack to start kodi and work around a " AttributeError: 'module' object has no attribute 'pydebug'" error, but now when trying to run a python script (addons), I get:
Code:
Error Contents: No module named _struct
Traceback (most recent call last):
File "/home/pbureau/Software/xbmc-14.1-Helix/addons/service.xbmc.versioncheck/service.py", line 107, in <module> Main()
File "/home/pbureau/Software/xbmc-14.1-Helix/addons/service.xbmc.versioncheck/service.py", line 46, in __init__
oldversion, version_installed, version_available, version_stable = _versioncheck()
File "/home/pbureau/Software/xbmc-14.1-Helix/addons/service.xbmc.versioncheck/service.py", line 52, in _versioncheck
from lib.jsoninterface import get_installedversion, get_versionfilelist
File "/home/pbureau/Software/xbmc-14.1-Helix/addons/service.xbmc.versioncheck/lib/jsoninterface.py", line 29, in <module>
import json as jsoninterface
File "/usr/lib/python2.7/json/__init__.py", line 108, in <module>
from .decoder import JSONDecoder
File "/usr/lib/python2.7/json/decoder.py", line 5, in <module>
import struct
File "/usr/lib/python2.7/struct.py", line 1, in <module>
from _struct import *
ImportError: No module named _struct
So why is kodi using "/usr/lib/python2.7/struct.py", shouln't it be invoking modules coming with the Kodi sources? I there a way to make sure kodi will use the correct version of python?
Thank you for any help about this...
Pierre