1. Michael Bayer
  2. dogpile.cache
Issue #46 invalid

Error while running subliminal on QNAP

Anonymous created an issue

I;m trying to run Subliminal on QNAP TS-212, and i get following error: /opt/local/bin/subliminal -l en -p addic7ed -c /opt/temp/periscope /share/MD0_DATA/RSS/ INFO: Listing subtitles with provider 'addic7ed' for video <Episode [u'Person of Interest', 3x7]> with languages set([<Language [eng]>]) ERROR: Unexpected error in provider 'addic7ed' Traceback (most recent call last): File "build/bdist.linux-armv5tel/egg/subliminal/api.py", line 216, in download_best_subtitles provider_subtitles = provider.list_subtitles(video, provider_video_languages) File "build/bdist.linux-armv5tel/egg/subliminal/providers/addic7ed.py", line 175, in list_subtitles return [s for s in self.query(video.series, video.season) File "build/bdist.linux-armv5tel/egg/subliminal/providers/addic7ed.py", line 152, in query show_ids = self.get_show_ids() File "/opt/local/lib/python2.7/site-packages/dogpile.cache-0.5.1-py2.7.egg/dogpile/cache/region.py", line 998, in decorate should_cache_fn) File "/opt/local/lib/python2.7/site-packages/dogpile.cache-0.5.1-py2.7.egg/dogpile/cache/region.py", line 636, in get_or_create async_creator) as value: File "/opt/local/lib/python2.7/site-packages/dogpile.core-0.4.1-py2.7.egg/dogpile/core/dogpile.py", line 158, in enter return self._enter() File "/opt/local/lib/python2.7/site-packages/dogpile.core-0.4.1-py2.7.egg/dogpile/core/dogpile.py", line 91, in _enter value = value_fn() File "/opt/local/lib/python2.7/site-packages/dogpile.cache-0.5.1-py2.7.egg/dogpile/cache/region.py", line 594, in get_value value = self.backend.get(key) File "/opt/local/lib/python2.7/site-packages/dogpile.cache-0.5.1-py2.7.egg/dogpile/cache/backends/file.py", line 167, in get with self._dbm_file(False) as dbm: File "/opt/lib/python2.7/contextlib.py", line 17, in enter return self.gen.next() File "/opt/local/lib/python2.7/site-packages/dogpile.cache-0.5.1-py2.7.egg/dogpile/cache/backends/file.py", line 162, in _dbm_file "w" if write else "r") File "/opt/lib/python2.7/anydbm.py", line 79, in open raise error, "need 'c' or 'n' flag to open new db" error: need 'c' or 'n' flag to open new db

On Subliminal source site i was suggested to ask here. Any help will be appreciated

Comments (6)

  1. Michael Bayer repo owner

    did you delete a dbm file while some program was running? there's no bug being demonstrated here I think the subliminal team needs to give you a bit more support than this.

  2. dima_vy

    I'm so sorry, it was my mistake, i just suggested to open here the bug, but right now found my mistake. Thank you guys. How can i close this issue?

  3. Michael Bayer repo owner

    we call the dbm file with the required "c" flag when the backend is first constructed, based on if the .dbm file already exists or not - but then that's it. so if you delete the .dbm file while the app is running, it'll do this.

  4. Log in to comment