You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar error to Issue #133 however the suggested --no-cache workaround does not work.
Podman is a drop-in replacement for Docker however it does not permit containers to run as root. Wondering if this issue is related to that?
Here is how I launch the container session: podman run -it --rm --name b3vis-mnamer -v /home/wade/Movies:/mnt --entrypoint "/bin/sh" b3vis/mnamer:latest
Here is the mnamer command I used: python -m mnamer -v --no-cache -r /mnt
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/mnamer/main.py", line 23, in main
frontend.launch()
File "/usr/local/lib/python3.9/site-packages/mnamer/frontends.py", line 80, in launch
self._process_targets()
File "/usr/local/lib/python3.9/site-packages/mnamer/frontends.py", line 97, in _process_targets
matches = target.query()
File "/usr/local/lib/python3.9/site-packages/mnamer/target.py", line 233, in query
for idx, result in enumerate(results, start=1):
File "/usr/local/lib/python3.9/site-packages/mnamer/providers.py", line 374, in search
yield from self._search_with_season_and_episode(
File "/usr/local/lib/python3.9/site-packages/mnamer/providers.py", line 437, in _search_with_season_and_episode
series_data = tvmaze_show_search(series)
File "/usr/local/lib/python3.9/site-packages/mnamer/endpoints.py", line 466, in tvmaze_show_search
status, content = request_json(url, parameters, cache=cache)
File "/usr/local/lib/python3.9/site-packages/mnamer/utils.py", line 264, in request_json
session = get_session()
File "/usr/local/lib/python3.9/site-packages/mnamer/utils.py", line 188, in get_session
get_session.session = requests_cache.CachedSession(
File "/usr/local/lib/python3.9/site-packages/requests_cache/core.py", line 73, in init
self.cache = backends.create_backend(backend, cache_name, backend_options)
File "/usr/local/lib/python3.9/site-packages/requests_cache/backends/init.py", line 63, in create_backend
return registry[backend_name](cache_name, **options)
File "/usr/local/lib/python3.9/site-packages/requests_cache/backends/sqlite.py", line 28, in init
self.responses = DbPickleDict(location + extension, 'responses', fast_save=fast_save)
File "/usr/local/lib/python3.9/site-packages/requests_cache/backends/storage/dbdict.py", line 62, in init
with self.connection() as con:
File "/usr/local/lib/python3.9/contextlib.py", line 119, in enter
return next(self.gen)
File "/usr/local/lib/python3.9/site-packages/requests_cache/backends/storage/dbdict.py", line 74, in connection
con = sqlite.connect(self.filename)
sqlite3.OperationalError: unable to open database file
=============================== CRASH REPORT END ===============================
I also just happened to find this problem. Apparently, requests_cache looks for the XDG_CACHE_HOME env var, so it will also fail for other users when the respective path is non-existent.
But I think the root of this problem lays in --no-cache being ignored by either mnamer or requests_cache itself (as you already wrote, @wadebee). It must have worked before, because I only stumbled upon this after re-building an older Docker image in which I installed mnamer (without using a pinned version, sadly, so I can't really tell since when it is broken). 🤔
Similar error to Issue #133 however the suggested --no-cache workaround does not work.
Podman is a drop-in replacement for Docker however it does not permit containers to run as root. Wondering if this issue is related to that?
Here is how I launch the container session:
podman run -it --rm --name b3vis-mnamer -v /home/wade/Movies:/mnt --entrypoint "/bin/sh" b3vis/mnamer:latest
Here is the mnamer command I used:
python -m mnamer -v --no-cache -r /mnt
system
settings
targets
Starting mnamer
Processing Episode "Saturday Night Live S1 E4.mkv" (2.26GB)
/mnt/SNL_SEASON_1_VOL_2/Saturday Night Live S1 E4.mkv
using tvmaze
search parameters
============================== CRASH REPORT BEGIN ==============================
--------------------------------- environment ----------------------------------
--------------------------------- stack trace ----------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/mnamer/main.py", line 23, in main
frontend.launch()
File "/usr/local/lib/python3.9/site-packages/mnamer/frontends.py", line 80, in launch
self._process_targets()
File "/usr/local/lib/python3.9/site-packages/mnamer/frontends.py", line 97, in _process_targets
matches = target.query()
File "/usr/local/lib/python3.9/site-packages/mnamer/target.py", line 233, in query
for idx, result in enumerate(results, start=1):
File "/usr/local/lib/python3.9/site-packages/mnamer/providers.py", line 374, in search
yield from self._search_with_season_and_episode(
File "/usr/local/lib/python3.9/site-packages/mnamer/providers.py", line 437, in _search_with_season_and_episode
series_data = tvmaze_show_search(series)
File "/usr/local/lib/python3.9/site-packages/mnamer/endpoints.py", line 466, in tvmaze_show_search
status, content = request_json(url, parameters, cache=cache)
File "/usr/local/lib/python3.9/site-packages/mnamer/utils.py", line 264, in request_json
session = get_session()
File "/usr/local/lib/python3.9/site-packages/mnamer/utils.py", line 188, in get_session
get_session.session = requests_cache.CachedSession(
File "/usr/local/lib/python3.9/site-packages/requests_cache/core.py", line 73, in init
self.cache = backends.create_backend(backend, cache_name, backend_options)
File "/usr/local/lib/python3.9/site-packages/requests_cache/backends/init.py", line 63, in create_backend
return registry[backend_name](cache_name, **options)
File "/usr/local/lib/python3.9/site-packages/requests_cache/backends/sqlite.py", line 28, in init
self.responses = DbPickleDict(location + extension, 'responses', fast_save=fast_save)
File "/usr/local/lib/python3.9/site-packages/requests_cache/backends/storage/dbdict.py", line 62, in init
with self.connection() as con:
File "/usr/local/lib/python3.9/contextlib.py", line 119, in enter
return next(self.gen)
File "/usr/local/lib/python3.9/site-packages/requests_cache/backends/storage/dbdict.py", line 74, in connection
con = sqlite.connect(self.filename)
sqlite3.OperationalError: unable to open database file
=============================== CRASH REPORT END ===============================
Dang, it looks like mnamer crashed! Please consider filling an issue at
https://github.com/jkwill87/mnamer/issues along with this report.
The text was updated successfully, but these errors were encountered: