"SAByenc not found" with SAB 3

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
User avatar
OneCD
Sr. Member
Sr. Member
Posts: 324
Joined: March 4th, 2017, 3:47 pm

"SAByenc not found" with SAB 3

Post by OneCD »

Hi guys,

I'm getting a new package together for QNAP NAS users to try-out the new SABnzbd 3, and have currently resolved all dependencies - except one.

SABnzbd start correctly, but shows these errors in its UI log:

Code: Select all

Essential modules are missing, downloading cannot start.
SABYenc module... NOT found! Expecting v4.0.0 - https://sabnzbd.org/sabyenc
So, I confirmed that sabyenc 3 is installed:

Code: Select all

[~] # /opt/bin/python3 -m pip install sabyenc3
Requirement already satisfied: sabyenc3 in /share/MD0_DATA/.qpkg/Entware/lib/python3.8/site-packages (4.0.1)

Code: Select all

[~] # /opt/bin/pip3 list
Package            Version
------------------ -------
cffi               1.14.0 
chardet            3.0.4  
Cheetah3           3.2.5  
cheroot            8.3.0  
CherryPy           18.6.0 
configobj          5.0.6  
cryptography       2.8    
feedparser         5.2.1  
jaraco.classes     3.1.0  
jaraco.collections 3.0.0  
jaraco.functools   3.0.1  
jaraco.text        3.2.0  
more-itertools     8.3.0  
pip                19.2.3 
ply                3.11   
portend            2.6    
pycparser          2.19   
pyOpenSSL          19.1.0 
pytz               2020.1 
sabyenc3           4.0.1  
setuptools         46.4.0 
six                1.14.0 
tempora            3.0.0  
zc.lockfile        2.0    
... and attempted to test as per the wiki:

Code: Select all

[~] # /opt/bin/python -c "import sabyenc ; print sabyenc.__version__ "
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named sabyenc

Code: Select all

[~] # /opt/bin/python3 -c "import sabyenc ; print sabyenc.__version__ "
  File "<string>", line 1
    import sabyenc ; print sabyenc.__version__ 
                           ^
SyntaxError: invalid syntax

Code: Select all

[~] # /opt/bin/python3 -c "import sabyenc3 ; print sabyenc.__version__ "
  File "<string>", line 1
    import sabyenc3 ; print sabyenc.__version__ 
                            ^
SyntaxError: invalid syntax
My Python-fu isn't up to the task - can anyone see what I've done wrong here?

Thank you. :)
Stuff I like: Apache BASH CRON DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo S20 pfSense Python Raspberry Pi RAID SABnzbd SickChill Transmission Usenet VirtualBox Watcher3 XFCE

User avatar
OneCD
Sr. Member
Sr. Member
Posts: 324
Joined: March 4th, 2017, 3:47 pm

Re: "SAByenc not found" with SAB 3

Post by OneCD »

Ah, I forgot there's a difference when using 'print' between Py2 and Py3. ;D

(Also noticed that code tags on this forum do not format as monospaced, so the wrong character is highlighted as a syntax error in my previous posts).

So, looks like the correct command is:

Code: Select all

/opt/bin/python3 -c "import sabyenc3; print("sabyenc3.__version__") "
... which works on Debian 10.4:

Code: Select all

$ python3 -c "import sabyenc3; print("sabyenc3.__version__") "
4.0.1
... but not on QTS with Entware:

Code: Select all

[~] # /opt/bin/python3 -c "import sabyenc3; print("sabyenc3.__version__") "
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'sabyenc3'
Stuff I like: Apache BASH CRON DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo S20 pfSense Python Raspberry Pi RAID SABnzbd SickChill Transmission Usenet VirtualBox Watcher3 XFCE

User avatar
OneCD
Sr. Member
Sr. Member
Posts: 324
Joined: March 4th, 2017, 3:47 pm

Re: "SAByenc not found" with SAB 3

Post by OneCD »

Success!

Couldn't solve the CLI test problem, but I (eventually) noticed that SABnzbd was quite specific about which sabyenc3 version it was looking for. So I downgraded 'sabyenc3',

Code: Select all

pip3 install sabyenc3==4.0.0
... then restarted SABznzbd, and it's now picked up the 'sabyenc3' module:

Code: Select all

2020-05-23 15:59:08,663::INFO::[SABnzbd:1089] --------------------------------
2020-05-23 15:59:08,668::INFO::[SABnzbd:1090] SABnzbd.py-3.0.0-develop (rev=unknown)
2020-05-23 15:59:08,670::INFO::[SABnzbd:1091] Full executable path = /share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/SABnzbd.py
2020-05-23 15:59:08,675::INFO::[SABnzbd:1101] Platform = posix
2020-05-23 15:59:08,678::INFO::[SABnzbd:1102] Python-version = 3.8.1 (default, Mar 23 2020, 07:23:17) 
[GCC 8.3.0]
2020-05-23 15:59:08,680::INFO::[SABnzbd:1103] Arguments = "SABnzbd.py" "--daemon" "--browser" "0" "--config-file" "/share/MD0_DATA/.qpkg/SABnzbd/config/config.ini" "--pidfile" "/tmp/SABnzbd.pid"
2020-05-23 15:59:08,682::INFO::[SABnzbd:1107] Not inside a docker container
2020-05-23 15:59:08,685::INFO::[SABnzbd:1110] Preferred encoding = UTF-8
2020-05-23 15:59:08,687::INFO::[SABnzbd:1117] SSL version = OpenSSL 1.1.1d  10 Sep 2019
2020-05-23 15:59:08,689::INFO::[SABnzbd:1164] Using INI file /share/MD0_DATA/.qpkg/SABnzbd/config/config.ini
2020-05-23 15:59:08,713::INFO::[postproc:135] Loading postproc queue
2020-05-23 15:59:08,721::INFO::[__init__:924] [N/A] /share/MD0_DATA/.qpkg/SABnzbd/config/<USERNAME>/Rating.sab missing
2020-05-23 15:59:08,726::INFO::[scheduler:207] Setting schedule for midnight BPS reset
2020-05-23 15:59:08,728::INFO::[__init__:343] All processes started
2020-05-23 15:59:08,730::INFO::[SABnzbd:275] Template location for Glitter is /share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/interfaces/Glitter
2020-05-23 15:59:08,733::INFO::[SABnzbd:275] Template location for Config is /share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/interfaces/Config
2020-05-23 15:59:08,808::INFO::[config:851] Writing settings to INI file /share/MD0_DATA/.qpkg/SABnzbd/config/config.ini
2020-05-23 15:59:08,901::INFO::[SABnzbd:376] SABYenc module (v4.0.0)... found!
2020-05-23 15:59:08,903::INFO::[SABnzbd:388] Cryptography module (v2.8)... found!
2020-05-23 15:59:08,905::INFO::[SABnzbd:391] par2 binary... found (/usr/bin/par2)
2020-05-23 15:59:08,906::INFO::[SABnzbd:403] UNRAR binary... found (/opt/bin/unrar)
2020-05-23 15:59:08,908::INFO::[SABnzbd:411] UNRAR binary version 5.90
2020-05-23 15:59:08,922::INFO::[SABnzbd:418] unzip binary... found (/usr/bin/unzip)
2020-05-23 15:59:08,924::INFO::[SABnzbd:423] 7za binary... found (/opt/bin/7za)
2020-05-23 15:59:08,925::INFO::[SABnzbd:429] nice binary... found (/opt/bin/nice)
2020-05-23 15:59:08,927::INFO::[SABnzbd:433] ionice binary... found (/opt/bin/ionice)
2020-05-23 15:59:08,939::INFO::[SABnzbd:1325] Starting web-interface on 0.0.0.0:8900
2020-05-23 15:59:08,941::INFO::[_cplogging:213] [23/May/2020:15:59:08] ENGINE Bus STARTING
2020-05-23 15:59:09,080::INFO::[_cplogging:213] [23/May/2020:15:59:09] ENGINE Serving on http://0.0.0.0:8900
2020-05-23 15:59:09,085::INFO::[_cplogging:213] [23/May/2020:15:59:09] ENGINE Bus STARTED
2020-05-23 15:59:09,088::INFO::[SABnzbd:1357] Starting SABnzbd.py-3.0.0-develop
2020-05-23 15:59:09,111::INFO::[dirscanner:370] Dirscanner starting up
2020-05-23 15:59:09,117::INFO::[postproc:225] Completed Download Folder /share/Download/complete is not on FAT
2020-05-23 15:59:09,118::INFO::[urlgrabber:83] URLGrabber starting up
2020-05-23 15:59:09,819::INFO::[zconfig:63] No Bonjour/ZeroConfig support installed
;D
Stuff I like: Apache BASH CRON DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo S20 pfSense Python Raspberry Pi RAID SABnzbd SickChill Transmission Usenet VirtualBox Watcher3 XFCE

User avatar
OneCD
Sr. Member
Sr. Member
Posts: 324
Joined: March 4th, 2017, 3:47 pm

Re: "SAByenc not found" with SAB 3

Post by OneCD »

BTW: I chose the 'develop' branch. Is this the correct branch to use?
Stuff I like: Apache BASH CRON DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo S20 pfSense Python Raspberry Pi RAID SABnzbd SickChill Transmission Usenet VirtualBox Watcher3 XFCE

User avatar
safihre
Administrator
Administrator
Posts: 3595
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: "SAByenc not found" with SAB 3

Post by safihre »

SABnzbd only checks the first 3 chars, so the 4.0.1 should also work! 4.0.1 is also a bit safer, so recommended.

Well, develop = development, so sometimes (like today) I made a boo-boo and things break.. But for now we don't have a master yet with Py3 version, so either develop, or use the specific Alpha/Beta/RC tags.

Post Reply