alexpt92 / romcollectionbrowser

Automatically exported from code.google.com/p/romcollectionbrowser
GNU General Public License v2.0
0 stars 0 forks source link

Dharma compatibility - get 0.5.1 working on linux #49

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

seems to be a problem with loading pysqlite modules atm

Original issue reported on code.google.com by maloep on 1 Aug 2010 at 9:27

GoogleCodeExporter commented 8 years ago
1. The program doesn't load on “No module named pysqlite2”
2. If you add a strategic symlink to the library in the lib folder, it still 
doesn't load because (in my case) the skins are not located under 
resources/skins/Default/720p (as my system expects)
3. If you add a strategic symlink to the PAL folder for the skins, it still 
doesn't load. Why, I do not know. Stacktrace below.

  File "(...)/resources/lib/gamedatabase.py", line 19, in connect
    self.connection = sqlite.connect(self.dataBasePath)
ValueError: database parameter must be string or APSW Connection object

Original comment by m-goo...@akuma.no on 6 Aug 2010 at 5:47

GoogleCodeExporter commented 8 years ago

The first two problems are known issues. I still have to add them to the wiki. 
bmfrosty has reported them in the thread and he already managed to solve the 
problem (http://forum.xbmc.org/showthread.php?t=70115&page=23).

pysqlite: The linux build of xbmc is not shipped with the pysqlite libraries by 
default. You symlinked them to: /usr/lib/xbmc/addons/script.module.pysqlite? 
Not sure if this is the correct path on your system. it was on bmfrostys.

skin folder: for some reason the linux version of dharma searches in a 
different folder than the windows version (it seems). Your solution is correct. 
As a workaround I will ship the next version with both directories.

ValueError: Never seen this. Are you sure you linked the correct libraries? 
what lib folder did you link? And what version are you using? 0.5.3 from the 
repo?

regards,
malte

Original comment by maloep on 6 Aug 2010 at 6:08

GoogleCodeExporter commented 8 years ago
This was with 0.5.3 installed from the GUI. Sorry for not specifying.

I linked to pysqlite 2 using:

ln -s /usr/lib/python2.6/dist-packages/pysqlite2 
~/.xbmc/addons/script.games.rom.collection.browser/resources/lib/

The pysqlite library is python-pysqlite2 on the current ubuntu, version number 
is 2.5.5-3

Tried adding a “print self.dataBasePath.__class__.__name__” to see what was 
being passed. It appears to be a str, so I don't know what is happening. At 
all. =)

Original comment by m-goo...@akuma.no on 8 Aug 2010 at 2:53

GoogleCodeExporter commented 8 years ago

This links the pysqlite libraries of python 2.6. This will not work as XBMC 
uses python 2.4.

You could download an older RCB version that includes the correct libraries and 
copy them to your xbmc lib (there must be an empty folder 
script.module.pysqlite somewhere in your XBMC installation).

Sorry for this but from now on the distributor is responsible to ship the 
needed libs. The scripters should not add all libraries on their own anymore.

Original comment by maloep on 8 Aug 2010 at 11:18

GoogleCodeExporter commented 8 years ago
Ah, I see. Works now, with this pysqlite2 extracted to 
~/.xbmc/addons/script.games.rom.collection.browser/resources/lib/

It's python-pysqlite2 from intrepid, extracted from the deb found on 
http://packages.ubuntu.com/intrepid/i386/python-pysqlite2

The addon runs now, with one symbolic link and pysqlite2 extracted manually. 
Well, I still need to fix the errors in config.xml, but that's a different 
story ;)

Original comment by m-goo...@akuma.no on 8 Aug 2010 at 9:06

Attachments:

GoogleCodeExporter commented 8 years ago

You can use Version 0.5.4 from now on. There is no need to use the symbolic 
link for the skin folder anymore. It also should look better because XBMC will 
scale the controls properly. I think with the link to the PAL folder everything 
will be in the wrong size and position.

Original comment by maloep on 9 Aug 2010 at 12:53