py3 - Won't run on Arm because only sabyenc-3.4.0 is available

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • 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
Puzzled
Full Member
Full Member
Posts: 160
Joined: September 2nd, 2017, 3:02 am

py3 - Won't run on Arm because only sabyenc-3.4.0 is available

Post by Puzzled »

I think that's all that's stopping it from running on my Raspberry Pi 3. I had to install this manually to make it start:

aptitude install par2 unrar 7zip libssl-dev libffi-dev python3-pip python3-openssl
pip3 install cryptography
pip3 install sabyenc
pip3 install cheetah3
pip3 install feedparser
pip3 install configobj
pip3 install cherrypy
pip3 install chardet
pip3 install gntp
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: py3 - Won't run on Arm because only sabyenc-3.4.0 is available

Post by sander »

Did you follow the procedure for Ubuntu/Debian as described on https://sabnzbd.org/wiki/extra/python3.html ?

So:

Code: Select all

sudo apt install python3-pip
pip3 install -r requirements.txt -U
That last command should be run from within the directory containing sabnzbd set to the py3 branch and will do everything automatically for you on your ARM. It will give something like:

Code: Select all

# pip3 install -r requirements.txt -U

Ignoring pypiwin32: markers 'sys_platform == "win32"' don't match your environment
Collecting six (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting sabyenc3 (from -r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/b9/dc/f63e0db3cffb36e85af2dbdcc6273e1c2fa9c0905d56084fb56056e08560/sabyenc3-4.0.0.tar.gz
Collecting cheetah3 (from -r requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/3e/16/c711180492c9f40fb64dffb436fe1b91e3031637b478edb8de3c4b74097a/Cheetah3-3.2.3.tar.gz (875kB)
    100% |################################| 880kB 204kB/s 
Collecting cryptography (from -r requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/c2/95/f43d02315f4ec074219c6e3124a87eba1d2d12196c2767fadfdc07a83884/cryptography-2.7.tar.gz (495kB)
    100% |################################| 501kB 334kB/s 
Collecting feedparser (from -r requirements.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/91/d8/7d37fec71ff7c9dbcdd80d2b48bcdd86d6af502156fc93846fb0102cb2c4/feedparser-5.2.1.tar.bz2 (192kB)
    100% |################################| 194kB 693kB/s 
Collecting configobj (from -r requirements.txt (line 6))
  Downloading https://files.pythonhosted.org/packages/64/61/079eb60459c44929e684fa7d9e2fdca403f67d64dd9dbac27296be2e0fab/configobj-5.0.6.tar.gz
Collecting cherrypy (from -r requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/aa/0e/4e353c47789ccb50130a44e765dae55b3e85abca01ff21930533ab36afc9/CherryPy-18.1.1-py2.py3-none-any.whl (417kB)
    100% |################################| 419kB 373kB/s 
Collecting portend (from -r requirements.txt (line 8))
  Downloading https://files.pythonhosted.org/packages/54/18/d288ef3cfcaac40c9c3674d92ef8313bf137deeced810d60d9722c0a327a/portend-2.4-py2.py3-none-any.whl
Collecting chardet (from -r requirements.txt (line 9))
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
    100% |################################| 143kB 587kB/s 
Collecting gntp (from -r requirements.txt (line 10))
  Downloading https://files.pythonhosted.org/packages/a7/34/d94c3c9298d57dfcdbcd1f9412b9aa9818fdab53704dfc53d594df1c5830/gntp-1.0.3-py3-none-any.whl
Requirement already up-to-date: asn1crypto>=0.21.0 in /usr/lib/python3/dist-packages (from cryptography->-r requirements.txt (line 4))
Collecting cffi!=1.11.3,>=1.8 (from cryptography->-r requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/93/1a/ab8c62b5838722f29f3daffcc8d4bd61844aa9b5f437341cc890ceee483b/cffi-1.12.3.tar.gz (456kB)
    100% |################################| 460kB 351kB/s 
Collecting zc.lockfile (from cherrypy->-r requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/58/c2/d7c89bdad237b4b7837609172be3e8bf5630796c0020494a15b97ece8eb1/zc.lockfile-1.4.tar.gz
Collecting cheroot>=6.2.4 (from cherrypy->-r requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/3e/50/840039a5350b54fb8efbc3b26c6e4244c9ca24c49ad84fe1f57b1f79ff7d/cheroot-6.5.5-py2.py3-none-any.whl (75kB)
    100% |################################| 81kB 1.1MB/s 
Collecting more-itertools (from cherrypy->-r requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/b3/73/64fb5922b745fc1daee8a2880d907d2a70d9c7bb71eea86fcb9445daab5e/more_itertools-7.0.0-py3-none-any.whl (53kB)
    100% |################################| 61kB 1.1MB/s 
Collecting tempora>=1.8 (from portend->-r requirements.txt (line 8))
  Downloading https://files.pythonhosted.org/packages/5c/12/4c97c44e5c9d111649e363353a4ca3ece9c6cc04b11cc48540f26e42d7b9/tempora-1.14.1-py2.py3-none-any.whl
Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography->-r requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)
    100% |################################| 163kB 771kB/s 
Collecting setuptools (from zc.lockfile->cherrypy->-r requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.1-py2.py3-none-any.whl (575kB)
    100% |################################| 583kB 293kB/s 
Collecting backports.functools-lru-cache (from cheroot>=6.2.4->cherrypy->-r requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/03/8e/2424c0e65c4a066e28f539364deee49b6451f8fcd4f718fefa50cc3dcf48/backports.functools_lru_cache-1.5-py2.py3-none-any.whl
Collecting pytz (from tempora>=1.8->portend->-r requirements.txt (line 8))
  Downloading https://files.pythonhosted.org/packages/3d/73/fe30c2daaaa0713420d0382b16fbb761409f532c56bdcc514bf7b6262bb6/pytz-2019.1-py2.py3-none-any.whl (510kB)
    100% |################################| 512kB 348kB/s 
Collecting jaraco.functools>=1.20 (from tempora>=1.8->portend->-r requirements.txt (line 8))
  Downloading https://files.pythonhosted.org/packages/12/a4/3e7366d0f5e75dcad7be88524c8cbd0f3a9fb1db243269550981740c57fe/jaraco.functools-2.0-py2.py3-none-any.whl
Building wheels for collected packages: sabyenc3, cheetah3, cryptography, feedparser, configobj, cffi, zc.lockfile, pycparser
  Running setup.py bdist_wheel for sabyenc3 ... done
  Stored in directory: /root/.cache/pip/wheels/df/a4/8a/fa7daddb7de3f990c5517e9b2e18bb11d58e709ab9326047f2
  Running setup.py bdist_wheel for cheetah3 ... done
  Stored in directory: /root/.cache/pip/wheels/33/20/34/73e8bfd45981dfef3edad9b301c5498a86b4cef496a7b29555
  Running setup.py bdist_wheel for cryptography ... done
  Stored in directory: /root/.cache/pip/wheels/d0/02/96/64b1439e5409591b6b0294d1da2f66a4ae4f0548d1bdb225b7
  Running setup.py bdist_wheel for feedparser ... done
  Stored in directory: /root/.cache/pip/wheels/8c/69/b7/f52763c41c5471df57703a0ef718a32a5e81ee35dcf6d4f97f
  Running setup.py bdist_wheel for configobj ... done
  Stored in directory: /root/.cache/pip/wheels/f1/e4/16/4981ca97c2d65106b49861e0b35e2660695be7219a2d351ee0
  Running setup.py bdist_wheel for cffi ... done
  Stored in directory: /root/.cache/pip/wheels/94/a7/7a/9782ab473d88ec2d4994a7dd2d006b1352c71da3ad34ebcaeb
  Running setup.py bdist_wheel for zc.lockfile ... done
  Stored in directory: /root/.cache/pip/wheels/09/27/a8/323eeff503e981b09d45ca3a0f085eb03c8a249e87157dd23f
  Running setup.py bdist_wheel for pycparser ... done
  Stored in directory: /root/.cache/pip/wheels/f2/9a/90/de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511
Successfully built sabyenc3 cheetah3 cryptography feedparser configobj cffi zc.lockfile pycparser
Installing collected packages: six, sabyenc3, cheetah3, pycparser, cffi, cryptography, feedparser, configobj, setuptools, zc.lockfile, backports.functools-lru-cache, more-itertools, cheroot, pytz, jaraco.functools, tempora, portend, cherrypy, chardet, gntp
  Found existing installation: six 1.11.0
    Not uninstalling six at /usr/lib/python3/dist-packages, outside environment /usr
  Found existing installation: cryptography 2.1.4
    Not uninstalling cryptography at /usr/lib/python3/dist-packages, outside environment /usr
  Found existing installation: setuptools 39.0.1
    Not uninstalling setuptools at /usr/lib/python3/dist-packages, outside environment /usr
Successfully installed backports.functools-lru-cache-1.5 cffi-1.12.3 chardet-3.0.4 cheetah3-3.2.3 cheroot-6.5.5 cherrypy-18.1.1 configobj-5.0.6 cryptography-2.7 feedparser-5.2.1 gntp-1.0.3 jaraco.functools-2.0 more-itertools-7.0.0 portend-2.4 pycparser-2.19 pytz-2019.1 sabyenc3-4.0.0 setuptools-41.0.1 six-1.12.0 tempora-1.14.1 zc.lockfile-1.4

Note that last line:

Code: Select all

Successfully installed <snip> sabyenc3-4.0.0
SABnzbd-py3 will then say

Code: Select all

2019-06-01 08:01:39,069::INFO::[SABnzbd:1096] SABnzbd.py-3.0.0-develop (rev=unknown)
...
2019-06-01 08:01:39,617::INFO::[SABnzbd:378] SABYenc module (v4.0.0)... found!
Puzzled
Full Member
Full Member
Posts: 160
Joined: September 2nd, 2017, 3:02 am

Re: py3 - Won't run on Arm because only sabyenc-3.4.0 is available

Post by Puzzled »

No, I wasn't aware of that page. I used INSTALL.txt from the repo. Thanks.
pinn
Jr. Member
Jr. Member
Posts: 89
Joined: September 18th, 2011, 4:08 am

Re: py3 - Won't run on Arm because only sabyenc-3.4.0 is available

Post by pinn »

Hi,

I'm running into an issue while trying to follow the above.

This is the error I get

Code: Select all

osmc@htpc:~$ cd sabnzbd/
osmc@htpc:~/sabnzbd$ pip3 install -r requirements.txt -U
Ignoring pywin32: markers 'sys_platform == "win32"' don't match your environment
Ignoring pyobjc: markers 'sys_platform == "darwin"' don't match your environment
Collecting sabyenc3 (from -r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/b4/87/9a87e95f64ba4d992d25fae5af969edf4ed46b31c70767551326b1cdbeca/sabyenc3-4.0.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named 'setuptools'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-otva80zo/sabyenc3/
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: py3 - Won't run on Arm because only sabyenc-3.4.0 is available

Post by sander »

Did you Google "ImportError: No module named 'setuptools' " ?
pinn
Jr. Member
Jr. Member
Posts: 89
Joined: September 18th, 2011, 4:08 am

Re: py3 - Won't run on Arm because only sabyenc-3.4.0 is available

Post by pinn »

Thanks Sander. I have done that now but meeting a new error. I posted a new thread re this rather than piggy backing here viewtopic.php?f=16&t=24773
Post Reply