bumble59 / bluecop-xbmc-repo

Automatically exported from code.google.com/p/bluecop-xbmc-repo
0 stars 0 forks source link

Free Cable: unable to open database file #183

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Free Cable add-on
2. Start add-on
3. Pick any network

What is the expected output? What do you see instead?
I assume this should bring up a new menu with a list of shows from the given 
network. Instead there is an error "Script failed! plugin.video.free.cable"

What version of the product are you using? On what operating system?
FreeCable v0.5.3 on XBMC 11.0 (compiled 6/15/2012) on Crunchbang 11 (Waldorf)

Please provide any additional information below.
12:55:32 T:2751834992    INFO: -->Python script returned the following error<--
12:55:32 T:2751834992   ERROR: Error Type: <class 'sqlite3.OperationalError'>
12:55:32 T:2751834992   ERROR: Error Contents: unable to open database file
12:55:32 T:2751834992   ERROR: Traceback (most recent call last):
                                              File "/home/brian/.xbmc/addons/plugin.video.free.cable/default.py", line 68, in 
<module>
                                                modes ( )
                                              File "/home/brian/.xbmc/addons/plugin.video.free.cable/default.py", line 64, in 
modes
                                                exec 'sitemodule.%s()' % common.args.sitemode
                                              File "<string>", line 1, in <module>
                                              File "/home/brian/.xbmc/addons/plugin.video.free.cable/resources/lib/gsn.py", line 36, in rootlist
                                                common.addShow(name, 'gsn', 'show', url)
                                              File "/home/brian/.xbmc/addons/plugin.video.free.cable/resources/lib/_common.py", line 564, in addShow
                                                create_db()
                                              File "/home/brian/.xbmc/addons/plugin.video.free.cable/resources/lib/_common.py", line 422, in create_db
                                                conn = sqlite.connect(db_file)
                                            OperationalError: unable to open database file
12:55:32 T:2751834992    INFO: -->End of Python script error report<--

From looking at _common.py, it's expecting a SQLite database file in 
special://home/addons/script.module.free.cable.database/lib/shows.db, but my 
addons directory has no subdirectory "script.module.free.cable.database".

Original issue reported on code.google.com by brj...@gmail.com on 29 Oct 2012 at 5:05

GoogleCodeExporter commented 8 years ago
I had the same problem, and looked around to fix it. It seems that installation 
process of the addon is broken in the repository, and so it is not downloading 
the database folder while the addon is being installed. While the developers 
fix this bug, the workaround is to manually download the required database file.

To do this, create a folder named 'script.module.free.cable.database' under 
your addons directory, and then download the files from Google code. Place 
'addon.xml'[1] directly in the folder, then create a subfolder named 'lib', and 
place 'shows.db'[2] under it. This fixed the problem for me, and most of the 
streams are now working.

[1] 
http://code.google.com/p/bluecop-xbmc-repo/source/browse/trunk/script.module.fre
e.cable.database/addon.xml

[2] 
http://code.google.com/p/bluecop-xbmc-repo/source/browse/trunk/script.module.fre
e.cable.database/lib/shows.db

Original comment by anurag4l...@gmail.com on 9 Nov 2012 at 8:07

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi- Where can I create this folder anurag4? I have cyberduck and have been 
having success in using it but I can't find the location of the "add ons" 
folder to create the folders as suggested in my cyberduck.  Thanks.

Original comment by hkobberm...@gmail.com on 23 Sep 2014 at 7:58