2010-06-16, 22:12
Since I have been using 64bit Linux to compile and run XBMC, some plug-ins(so far the ones using pysqlite2) fail. This is because pysqlite2 that is being used is a 32bit version. After a bit of searching, I did find a copy of pysqlite2 compiled as a 64bit file and using Python 2.4. The Files can be accessed from here: http://www.megaupload.com/?d=63IP3DF8.
Also I have found a way to detect a 64bit Linux, using the `platform`module in Python. The code below I used in Logo Downloader created by Ppic to run on my machine but also keeping it compatible with other platforms.
Just thought I should share this discovery.
Also I have found a way to detect a 64bit Linux, using the `platform`module in Python. The code below I used in Logo Downloader created by Ppic to run on my machine but also keeping it compatible with other platforms.
Code:
env = ( os.environ.get( "OS", "win32" ), "win32", )[ os.environ.get( "OS", "win32" ) == "xbox" ]
# Check to see if using a 64bit version of Linux
import platform
env2 = platform.machine()
if re.match("Linux", env) and env2 == "x86_64" :
env = "Linux_x86_64"
sys.path.append( os.path.join( RESOURCES_PATH, "platform_libraries", env ) )
Just thought I should share this discovery.