Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after migration to Docker from Kubernetes #2003

Closed
fadern opened this issue Nov 4, 2024 · 3 comments
Closed

Error after migration to Docker from Kubernetes #2003

fadern opened this issue Nov 4, 2024 · 3 comments

Comments

@fadern
Copy link

fadern commented Nov 4, 2024

Describe the bug
I have my nzbtomedia script in a separate folder that I mount into the SAB docker/pod. This have successfully worked in kubernetes but when truenas dropped the support for kubernetes I had to move to Docker. Now Sab runs in Docker.

Technical Specs

  1. Running on TrueNAS 24.10 (Docker)
  2. Python version 3.13
  3. Download Client SABnbzd
  4. Intended Media Management SickChill
  5. nzbToMedia 12.1.13

Expected behavior
The script should run successfully.

Log
Changing to directory: /mnt/nzbToMedia

-- Cleaning bytecode --
WARNING: Automatic cleanup could not be executed.
If errors occur, manual cleanup may be required.
REASON : Error: [Errno 2] No such file or directory: 'git'

Directory is not a git repository

Force cleaning folder: libs
Skipping required subfolders ['common', 'custom', 'py2', 'win']

Force cleaning folder: core
Skipping required subfolders ['auto_process', 'extractor', 'plugins', 'processor', 'utils']
Returning to directory: /app

-- Cleanup finished --

Traceback (most recent call last):
File "/mnt/nzbToMedia/nzbToMedia.py", line 734, in
import core
File "/mnt/nzbToMedia/core/init.py", line 52, in
from core import logger, main_db, version_check, databases, transcoder
File "/mnt/nzbToMedia/core/databases.py", line 11, in
from core.utils import backup_versioned_file
File "/mnt/nzbToMedia/core/utils/init.py", line 13, in
from core.utils.common import clean_dir, flatten, get_dirs, process_dir
File "/mnt/nzbToMedia/core/utils/common.py", line 14, in
from core.utils.files import list_media_files, move_file
File "/mnt/nzbToMedia/core/utils/files.py", line 14, in
import mediafile as mediafiletool
File "/mnt/nzbToMedia/libs/common/mediafile.py", line 52, in
import imghdr
ModuleNotFoundError: No module named 'imghdr'

@fadern
Copy link
Author

fadern commented Nov 5, 2024

It might be related to python 3.13 and mediafile.
beetbox/mediafile#67

@fadern
Copy link
Author

fadern commented Nov 7, 2024

Solved by changing to another sabnzbd image (lscr.io/linuxserver/sabnzbd) with python 3.12.

@fadern fadern closed this as completed Nov 7, 2024
@clinton-hall
Copy link
Owner

Thanks for confirming.
I actually have Python 3.13 support in Nightly. Should be merging to Master soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants