Issue #46 invalid

Error while running subliminal on QNAP

Anonymous avatarAnonymous 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/", line 216, in download_best_subtitles provider_subtitles = provider.list_subtitles(video, provider_video_languages) File "build/bdist.linux-armv5tel/egg/subliminal/providers/", line 175, in list_subtitles return [s for s in self.query(video.series, video.season) File "build/bdist.linux-armv5tel/egg/subliminal/providers/", 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/", 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/", 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/", 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/", 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/", 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/", line 167, in get with self._dbm_file(False) as dbm: File "/opt/lib/python2.7/", line 17, in enter return File "/opt/local/lib/python2.7/site-packages/dogpile.cache-0.5.1-py2.7.egg/dogpile/cache/backends/", line 162, in _dbm_file "w" if write else "r") File "/opt/lib/python2.7/", 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. Mike Bayer

    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. Mike Bayer

    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. Antoine Bertin

    Just so you know, the file wasn't deleted by another thread, the "file" was in fact a directory. Maybe you should add a check here raising a ValueError in this case.

  5. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.