Hi there,
I'm trying to debug a problem with mythbox-svn-1260, I'm using XBMC 9.04 on Fedora 11 (rpm from fedorajunkies: XBMC-9.04.1-1.fc11.x86_64). It fails when I attempt to start the plugin with the message:
Code:
this is MySQLdb version (1, 2, 2, 'final', 0), but _mysql is version (1, 2, 3, 'beta', 2)
Fedora 11 ships with MySQL-python 1.2.3 but it appears that mythbox ships with a precompiled version. What's odd is that it obviously reading the mythbox version of the python module, and even appears to be loading the pre-compiled _mysql.so (see the full log below). For some reason it tries to read the distro version rather than your shipped version.
Any workarounds/insights welcome. (I did try copying over the distribution version of the mysql python module, but that caused mythbox to crash as soon as tried to run "Testing").
Code:
01:46:26 T:3880589584 M:3494858752 DEBUG: RegisterExtensionLib, adding _bisect.so (0x7fafc887a730)
01:46:26 T:3880589584 M:3494858752 DEBUG: xbp_dlsym - load symbol init_bisect
01:46:26 T:3880589584 M:3494068224 DEBUG: xbp_dlopen loading python lib /home/myth/.xbmc/scripts/MythBox/resources/lib/MySQLdb/linux64/_mysql.so. flags: 2
01:46:26 T:3880589584 M:3494068224 DEBUG: Loading: /home/myth/.xbmc/scripts/MythBox/resources/lib/MySQLdb/linux64/_mysql.so
01:46:26 T:3880589584 M:3493584896 DEBUG: RegisterExtensionLib, adding _mysql.so (0x7fafc87aa8f0)
01:46:26 T:3880589584 M:3493584896 DEBUG: xbp_dlsym - load symbol init_mysql
01:46:26 T:3880589584 M:3493482496 NOTICE: ERROR | mythtv.core | default.py | MainThread | Line 162 | Initializing stage 2
Traceback (most recent call last):
File "/home/myth/.xbmc/scripts/MythBox/default.py", line 152, in ?
import mythtv
File "/home/myth/.xbmc/scripts/MythBox/resources/src/mythtv.py", line 26, in ?
import mythdb
File "/home/myth/.xbmc/scripts/MythBox/resources/src/mythdb.py", line 22, in ?
import MySQLdb
File "/home/myth/.xbmc/scripts/MythBox/resources/lib/MySQLdb/MySQLdb/__init__.py", line 22, in ?
raise ImportError, "this is MySQLdb version %s, but _mysql is version %r" %\
ImportError: this is MySQLdb version (1, 2, 2, 'final', 0), but _mysql is version (1, 2, 3, 'beta', 2)