abbi031892 / periscope

Automatically exported from code.google.com/p/periscope
0 stars 0 forks source link

periscope v142 #100

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
After installing periscope v142 I get the following messages while try to 
download a subtitle:

ERROR:periscope:Could not generate a cache folder at the home location using 
XDG (freedesktop)
Traceback (most recent call last):
  File "/volume1/public/periscope/periscope/periscope.py", line 52, in __init__
    import xdg.BaseDirectory as bd
ImportError: No module named xdg.BaseDirectory
Traceback (most recent call last):
  File "./downloadSub.py", line 10, in <module>
    subdl = periscope.Periscope()
  File "/volume1/public/periscope/periscope/periscope.py", line 57, in __init__
    self.config_file = os.path.join(cache_folder, "config")
  File "/opt/lib/python2.6/posixpath.py", line 67, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'

Original issue reported on code.google.com by robsk...@gmail.com on 19 May 2011 at 10:10

GoogleCodeExporter commented 8 years ago
The fiel you're using to invoke periscope (downloadSub.py) from 
gathering.tweakers.net, I guess needs to be updated to work with the new 
changes in periscope (needed to support BierDopje).

On line 23:
subdl = periscope.Periscope()

should be updated to look like
subdl = periscope.Periscope(cache_folder="/home/<your_user>/.config/periscope")

You can of course choose to use a different cache folder than the one suggested 
here. Just make sure that the cache_folder exists, that you have write access 
to it and that it doesn't get deleted (don't use /tmp for instance as it is 
cleaned at every reboot).

Could you update this thread to tell me if this works ?

Original comment by patrick....@gmail.com on 19 May 2011 at 10:16

GoogleCodeExporter commented 8 years ago
Hi Patrick,

First of all, thanks for the quick reply.
I have followed your recommendations and now it is working.

It's a great program!! Thank again.

Greetings Rob

Original comment by robsk...@gmail.com on 19 May 2011 at 10:30

GoogleCodeExporter commented 8 years ago

Original comment by patrick....@gmail.com on 19 May 2011 at 1:34