Kodi Community Forum
[RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Game Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=291)
+---- Thread: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs (/showthread.php?tid=70115)



- bmfrosty - 2010-08-01

My motherboard has gone out on me again, so probably no more testing from me for a couple more weeks.

EDIT: Sweet. Resurrected. Will try more stuff.


- malte - 2010-08-01

veysey Wrote:I'm thinking of a slightly different scenario. Each .zip file has only one game, but the game has multiple pieces. For instance, the MAME zip file associated with mspacman (mspacman.zip) has these contents:

Ah, ok. It might be that this already works with the newer V0.6 releases (V0.6h for example): There is a new option in config.xml "useFilenameAsCRC". If you set this to "True" you can go to your description file and set the short filename as crc value and leave the game name with the full name. Now RCB should find the game via short file name but displays the full game name while browsing.

If you don't want to spend too much time with testing and playing around: I want to upload a new preview version in the next days that comes with the correct pysqlite libraries for 64bit systems. I would like to ask you to test if this works out of the box for you (without manually copying the pysqlite libs).


Quote:My motherboard has gone out on me again, so probably no more testing from me for a couple more weeks.

EDIT: Sweet. Resurrected. Will try more stuff.

Oha. I hope it gets not too hot while searching for pysqlite libraries. Maybe we have to hurry upSmile. But I don't want to force you to waste the last hours between you and your mainboard with RCB testing.

Did you already test other addons that use pysqlite? I only know the iPhoto plugin atm. Not sure if there are more that already converted to the new system.

I have seen that they have one more line in the addon.xml:
Code:
<import addon="script.module.pysqlite" version="2.5.6"/>

Maybe I have to add this, too.


- malte - 2010-08-01

Ok, just for testing: I have added this line to addon.xml. But I am not sure if this will help. It is available as V0.5.2 in the downloads: http://romcollectionbrowser.googlecode.com/files/Rom%20Collection%20Browser%20V0.5.2%20-%20Addon.zip


I also found this thread on this topic: http://forum.xbmc.org/showthread.php?tid=77708. So may be that this module is not built by default. But from your search it looks like they are already available on your system (/usr/lib/xbmc/addons/script.module.pysqlite).


- bmfrosty - 2010-08-01

It failed as well. I went ahead installed the iphoto plugin. It gives the same error.

Code:
08:19:17 T:2989099888 M:1406255104    INFO: -->Python script returned the following error<--
08:19:17 T:2989099888 M:1406255104   ERROR: Error Type: exceptions.ImportError
08:19:17 T:2989099888 M:1406255104   ERROR: Error Contents: No module named pysqlite2
08:19:17 T:2989099888 M:1406255104   ERROR: Traceback (most recent call last):
                                              File "/home/bmfrosty/.xbmc/addons/plugin.image.iphoto/addon.py", line 27, in ?
                                                from resources.lib.iphoto_parser import *
                                              File "/home/bmfrosty/.xbmc/addons/plugin.image.iphoto/resources/lib/iphoto_parser.py", line 11, in ?
                                                from pysqlite2 import dbapi2 as sqlite
                                            ImportError: No module named pysqlite2
08:19:17 T:2989099888 M:1406255104    INFO: -->End of Python script error report<--
[/quote]
I'm going to do an apt-get upgrade and see if a newer version of the xbmc packages does the job.
It seems like it may be something about my installation, but I'm using normal xbmc packages:

http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu/ lucid/main


- bmfrosty - 2010-08-01

Ok. Loaded XBMC Dharma on my Ubuntu 10.4 desktop and it happens there too.


- malte - 2010-08-01

I had a closer look at your find output:

Code:
/usr/lib/xbmc/addons/script.module.pysqlite
/usr/lib/xbmc/addons/script.module.pysqlite/addon.xml
/usr/lib/xbmc/addons/script.module.pysqlite/lib

looks like there are only the directories and an addon.xml but no modules (.py and .so). So it seems like jmarshall wrote in his post that the distributor or the user have to take care about compiling the modules.

Do you compile yourself or do you use precompiled packages?

One suggestion for a workaround: you could try to take the pysqlite-files from my non-Dharma packages and copy them to the xbmc lib-folder (/usr/lib/xbmc/addons/script.module.pysqlite/lib).


- bmfrosty - 2010-08-01

malte Wrote:One suggestion for a workaround: you could try to take the pysqlite-files from my non-Dharma packages and copy them to the xbmc lib-folder (/usr/lib/xbmc/addons/script.module.pysqlite/lib).

Code:
bmfrosty@XBMCLive:/usr/lib/xbmc/addons/script.module.pysqlite/lib$ ls -aFl
total 72
drwxr-xr-x 2 root root  4096 2010-08-01 12:43 ./
drwxr-xr-x 3 root root  4096 2010-08-01 08:28 ../
-rw-r--r-- 1 root root  2667 2010-08-01 12:43 dbapi2.py
-rw-r--r-- 1 root root  1015 2010-08-01 12:43 __init__.py
-rw-r--r-- 1 root root 54952 2010-08-01 12:43 _sqlite.so
bmfrosty@XBMCLive:/usr/lib/xbmc/addons/script.module.pysqlite/lib$ ls -aFl ..
I've copied these here. I'm going to try it in a few minutes, and add +x flags if it doesn't work at first try. It's interesting that these aren't included with the linux package, but I can see not wanting to support a plethora of platforms directly in the addons.


- bmfrosty - 2010-08-01

I've dropped the files in a variety of places with no luck. I've used both yours and the ones that installed with apt-get.


- malte - 2010-08-01

Damn. Still the same error I guess?


- malte - 2010-08-01

Oh, one last try. I have just checked my file structure on windows. I think it must be like this:

Code:
script.module.pysqlite\lib\pysqlite2\put your files here



- bmfrosty - 2010-08-01

That gets me further:

Code:
bmfrosty@XBMCLive:~/.xbmc/temp$ tail -f xbmc.log
14:02:28 T:3055081344 M:1401741312   DEBUG: Joystick 0 button 2 Down
14:02:28 T:3055081344 M:1401741312    INFO: initializing python engine.
14:02:28 T:3055081344 M:1401741312   DEBUG: Loading: /usr/lib/xbmc/system/python/python24-i486-linux.so
14:02:28 T:3055081344 M:1401614336   DEBUG: Python wrapper library linked with internal Python library
14:02:29 T:3055081344 M:1400463360   DEBUG: new python thread created. id=3
14:02:29 T:2916084592 M:1400463360   DEBUG: thread start, auto delete: 0
14:02:29 T:2916084592 M:1400463360   DEBUG: Python thread: start processing
14:02:29 T:3055081344 M:1400467456   DEBUG: Joystick 0 button 2 Up
14:02:29 T:2916084592 M:1400467456  NOTICE: -->Python Interpreter Initialized<--
14:02:29 T:2916084592 M:1400467456   DEBUG: Process - The source file to load is /home/bmfrosty/.xbmc/addons/Rom Collection Browser/default.py
14:02:29 T:2916084592 M:1400467456   DEBUG: Process - Setting the Python path to /home/bmfrosty/.xbmc/addons/Rom Collection Browser:/home/bmfrosty/.xbmc/addons/script.module.simplejson/lib:/home/bmfrosty/.xbmc/addons/script.module.beautifulsoup/lib:/usr/lib/xbmc/addons/script.module.pil/lib:/home/bmfrosty/.xbmc/addons/script.module.elementtree/lib:/usr/lib/xbmc/addons/script.module.pysqlite/lib:/usr/share/xbmc/system/python/python24.zip:/usr/share/xbmc/system/python/lib/python24.zip:/usr/share/xbmc/system/python/lib/python2.4/:/usr/share/xbmc/system/python/lib/python2.4/plat-linux2:/usr/share/xbmc/system/python/lib/python2.4/lib-tk:/usr/share/xbmc/system/python/lib/python2.4/lib-dynload
14:02:29 T:2916084592 M:1400467456   DEBUG: Process - Entering source directory /home/bmfrosty/.xbmc/addons/Rom Collection Browser
14:02:29 T:2916084592 M:1399984128   DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/strop.so. flags: 2
14:02:29 T:2916084592 M:1399984128   DEBUG: Loading: /home/bmfrosty/.xbmc/temp/strop.so
14:02:29 T:2916084592 M:1399984128   DEBUG: RegisterExtensionLib, adding strop.so (0xb00ffb78)
14:02:29 T:2916084592 M:1399984128   DEBUG: xbp_dlsym - load symbol initstrop
14:02:29 T:2916084592 M:1399857152   DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/termios.so. flags: 2
14:02:29 T:2916084592 M:1399857152   DEBUG: Loading: /home/bmfrosty/.xbmc/temp/termios.so
14:02:29 T:2916084592 M:1399857152   DEBUG: RegisterExtensionLib, adding termios.so (0xb0009548)
14:02:29 T:2916084592 M:1399857152   DEBUG: xbp_dlsym - load symbol inittermios
14:02:30 T:2916084592 M:1399963648   DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/time.so. flags: 2
14:02:30 T:2916084592 M:1399963648   DEBUG: Loading: /home/bmfrosty/.xbmc/temp/time.so
14:02:30 T:2916084592 M:1399963648   DEBUG: RegisterExtensionLib, adding time.so (0xafb3b640)
14:02:30 T:2916084592 M:1399963648   DEBUG: xbp_dlsym - load symbol inittime
14:02:30 T:2916084592 M:1398214656   DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/datetime.so. flags: 2
14:02:30 T:2916084592 M:1398341632   DEBUG: Loading: /home/bmfrosty/.xbmc/temp/datetime.so
14:02:30 T:2916084592 M:1398341632   DEBUG: RegisterExtensionLib, adding datetime.so (0xb0b5f990)
14:02:30 T:2916084592 M:1398341632   DEBUG: xbp_dlsym - load symbol initdatetime
14:02:30 T:2916084592 M:1398493184   DEBUG: xbp_dlopen loading python lib /usr/lib/xbmc/addons/script.module.pysqlite/lib/pysqlite2/_sqlite.so. flags: 2
14:02:30 T:2916084592 M:1398493184   DEBUG: Loading: /usr/lib/xbmc/addons/script.module.pysqlite/lib/pysqlite2/_sqlite.so
14:02:30 T:2916084592 M:1398493184   DEBUG: RegisterExtensionLib, adding _sqlite.so (0xafbe83a8)
14:02:30 T:2916084592 M:1398493184   DEBUG: xbp_dlsym - load symbol init_sqlite
14:02:30 T:2916084592 M:1398493184   DEBUG: /usr/lib/xbmc/addons/script.module.pysqlite/lib/pysqlite2/dbapi2.py:27: RuntimeWarning: Python C API version mismatch for module pysqlite2._sqlite: This Python has API version 1012, module pysqlite2._sqlite has version 1013.
14:02:31 T:2916084592 M:1398480896   DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/struct.so. flags: 2
14:02:31 T:2916084592 M:1398480896   DEBUG: Loading: /home/bmfrosty/.xbmc/temp/struct.so
14:02:31 T:2916084592 M:1398480896   DEBUG: RegisterExtensionLib, adding struct.so (0xafb5d818)
14:02:31 T:2916084592 M:1398480896   DEBUG: xbp_dlsym - load symbol initstruct
14:02:31 T:2916084592 M:1398480896   DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/binascii.so. flags: 2
14:02:31 T:2916084592 M:1398480896   DEBUG: Loading: /home/bmfrosty/.xbmc/temp/binascii.so
14:02:31 T:2916084592 M:1398480896   DEBUG: RegisterExtensionLib, adding binascii.so (0xafb885c8)
14:02:31 T:2916084592 M:1398480896   DEBUG: xbp_dlsym - load symbol initbinascii
14:02:31 T:2916084592 M:1398480896   DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/zlib.so. flags: 2
14:02:31 T:2916084592 M:1398480896   DEBUG: Loading: /home/bmfrosty/.xbmc/temp/zlib.so
14:02:31 T:2916084592 M:1398480896   DEBUG: RegisterExtensionLib, adding zlib.so (0xafb5d780)
14:02:31 T:2916084592 M:1398480896   DEBUG: xbp_dlsym - load symbol initzlib
14:02:31 T:2916084592 M:1398390784   DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/_weakref.so. flags: 2
14:02:31 T:2916084592 M:1398407168   DEBUG: Loading: /home/bmfrosty/.xbmc/temp/_weakref.so
14:02:31 T:2916084592 M:1398407168   DEBUG: RegisterExtensionLib, adding _weakref.so (0xb0a0bb30)
14:02:31 T:2916084592 M:1398407168   DEBUG: xbp_dlsym - load symbol init_weakref
14:02:31 T:2916084592 M:1397911552   DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/array.so. flags: 2
14:02:31 T:2916084592 M:1397911552   DEBUG: Loading: /home/bmfrosty/.xbmc/temp/array.so
14:02:31 T:2916084592 M:1397911552   DEBUG: RegisterExtensionLib, adding array.so (0xb0b3fe60)
14:02:31 T:2916084592 M:1397911552   DEBUG: xbp_dlsym - load symbol initarray
14:02:31 T:2916084592 M:1397784576   ERROR: TranslateResolution invalid resolution specified for
14:02:31 T:2916084592 M:1397784576    INFO: Default 4:3 resolution directory is 720p
14:02:31 T:2916084592 M:1397784576    INFO: Default 16:9 resolution directory is 720p
14:02:31 T:2916084592 M:1397784576    INFO: Loading skin includes from /720p/includes.xml
14:02:31 T:2916084592 M:1397784576    INFO: Error loading includes.xml file (/720p/includes.xml): Failed to open file (row=0, col=0)
14:02:31 T:2916084592 M:1397784576    INFO: -->Python script returned the following error<--
14:02:31 T:2916084592 M:1397784576   ERROR: Error Type: exceptions.TypeError
14:02:31 T:2916084592 M:1397784576   ERROR: Error Contents: XML File for Window is missing
14:02:31 T:2916084592 M:1397784576   ERROR: Traceback (most recent call last):
                                              File "/home/bmfrosty/.xbmc/addons/Rom Collection Browser/default.py", line 30, in ?
                                                import gui
                                              File "/home/bmfrosty/.xbmc/addons/Rom Collection Browser/resources/lib/gui.py", line 997, in ?
                                                main()
                                              File "/home/bmfrosty/.xbmc/addons/Rom Collection Browser/resources/lib/gui.py", line 993, in main
                                                ui = UIGameDB("script-Rom_Collection_Browser-main.xml", os.getcwd(), "Default", 1)
                                            TypeError: XML File for Window is missing
14:02:31 T:2916084592 M:1397784576    INFO: -->End of Python script error report<--
14:02:31 T:3055081344 M:1397784576   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
14:02:31 T:3055081344 M:1397784576   DEBUG: Alloc resources: 0.02ms (0.01 ms skin load)
14:02:31 T:2916084592 M:1397555200   DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/collections.so. flags: 2
14:02:31 T:2916084592 M:1397555200   DEBUG: Loading: /home/bmfrosty/.xbmc/temp/collections.so
14:02:31 T:2916084592 M:1397555200   DEBUG: RegisterExtensionLib, adding collections.so (0xb0b3fe00)
14:02:31 T:2916084592 M:1397555200   DEBUG: xbp_dlsym - load symbol initcollections
14:02:31 T:2916084592 M:1397555200    INFO: Python script stopped
14:02:31 T:2916084592 M:1397555200   DEBUG: Thread 2916084592 terminating
14:02:31 T:3055081344 M:1397555200   DEBUG: python thread 3 destructed
14:02:37 T:3055081344 M:1398366208   DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
14:02:41 T:3055081344 M:1398337536    INFO: Python, unloading python24.dll because no scripts are running anymore
14:02:41 T:3055081344 M:1398337536   DEBUG: UnloadExtensionLibs, clearing python extension libraries
I took a look at the other thread. I'll take a look at it some more. I'm surprised the addon for pysqlite doesn't do something like figure out what system it's on and copy over libraries as needed - or at least create symbolic links. Interesting.


- bmfrosty - 2010-08-01

Ok. So it looks like Dharma wants includes.xml in skins/Default/720p - so I copied that over from another skin, and copied over the PAL files from rombrowser. It seems to be getting further.


- bmfrosty - 2010-08-01

Ooh. Config.xml has 9 errors. see XBMC.log for details.


- bmfrosty - 2010-08-01

Ok. It loads, but looks funny Like it's a 576p window in a 720p frame.

I'm guessing config.xml is something that I have to hand edit?


- bmfrosty - 2010-08-01

Ok. I downloaded testdata - now I need to figure out how to properly use it. Tongue