subliminal
subliminal copied to clipboard
Error when using "subscenter" in windows
I have tried to use the "subscenter" provider by running this cunfigurtion:
subtitles = download_best_subtitles(new_videos, set([Language('heb'), Language('eng')]), providers=['subscenter'])
But I get the following error:
Traceback (most recent call last):
File "d:\private\tvsort_sl\venv\lib\site-packages\subliminal\core.py", line 118, in list_subtitles_provider
return self[provider].list_subtitles(video, provider_languages)
File "d:\private\tvsort_sl\venv\lib\site-packages\subliminal\providers\subscenter.py", line 219, in list_subtitles
return [s for s in self.query(title, season, episode) if s.language in languages]
File "d:\private\tvsort_sl\venv\lib\site-packages\subliminal\providers\subscenter.py", line 155, in query
url_titles = self._search_url_titles(title)
File "d:\private\tvsort_sl\venv\lib\site-packages\dogpile\cache\region.py", line 1231, in decorate
should_cache_fn)
File "d:\private\tvsort_sl\venv\lib\site-packages\dogpile\cache\region.py", line 833, in get_or_create
async_creator) as value:
File "d:\private\tvsort_sl\venv\lib\site-packages\dogpile\lock.py", line 154, in __enter__
return self._enter()
File "d:\private\tvsort_sl\venv\lib\site-packages\dogpile\lock.py", line 87, in _enter
value = value_fn()
File "d:\private\tvsort_sl\venv\lib\site-packages\dogpile\cache\region.py", line 788, in get_value
value = self.backend.get(key)
File "d:\private\tvsort_sl\venv\lib\site-packages\dogpile\cache\backends\file.py", line 220, in get
with self._dbm_file(False) as dbm:
File "c:\python27\Lib\contextlib.py", line 17, in __enter__
return self.gen.next()
File "d:\private\tvsort_sl\venv\lib\site-packages\dogpile\cache\backends\file.py", line 212, in _dbm_file
with self._use_rw_lock(write):
File "c:\python27\Lib\contextlib.py", line 17, in __enter__
return self.gen.next()
File "d:\private\tvsort_sl\venv\lib\site-packages\dogpile\cache\backends\file.py", line 207, in _use_rw_lock
with self._rw_lock.read():
File "c:\python27\Lib\contextlib.py", line 17, in __enter__
return self.gen.next()
File "d:\private\tvsort_sl\venv\lib\site-packages\dogpile\cache\backends\file.py", line 327, in read
self.acquire_read_lock(True)
File "d:\private\tvsort_sl\venv\lib\site-packages\dogpile\cache\backends\file.py", line 408, in acquire_read_lock
return self._acquire(wait, os.O_RDONLY, self._module.LOCK_SH)
File "d:\private\tvsort_sl\venv\lib\site-packages\dogpile\util\langhelpers.py", line 66, in __get__
obj.__dict__[self.__name__] = result = self.fget(obj)
File "d:\private\tvsort_sl\venv\lib\site-packages\dogpile\cache\backends\file.py", line 400, in _module
import fcntl
ImportError: No module named fcntl
I'm using subliminal==2.0.5
I don't get the same error when I tried to use "opensubtitles".
What am I doing wrong?