Code: Select all
# /opt/bin/python3 ... SABnzbd.py
Code: Select all
# /opt/bin/python3 ... SABnzbd.py
Code: Select all
[~] # whoami
admin
[~] # echo $UID
0
[~] # echo $EUID
0
Code: Select all
/opt/bin/python3
/opt/bin/python3 -m pip
Code: Select all
/opt/bin/python3 -m pip install --upgrade --force-reinstall sabyenc3
/opt/bin/python3 -c 'import sabyenc3; print(sabyenc3.__version__) '
/opt/bin/python3 SABnzbd.py
There's only a single Python3 install on the NAS.
Code: Select all
[~] # type -a python
python is /opt/bin/python
python is /usr/local/bin/python
Code: Select all
[~] # /usr/local/bin/python -V
Python 2.7.5
OK, here goes:sander wrote: ↑June 21st, 2020, 3:23 am So: can you use(do not use python, python3, pip, pip3 as plain commands without path)Code: Select all
/opt/bin/python3 /opt/bin/python3 -m pip
in your commands, and repeat the commands:
Code: Select all
/opt/bin/python3 -m pip install --upgrade --force-reinstall sabyenc3 /opt/bin/python3 -c 'import sabyenc3; print(sabyenc3.__version__) ' /opt/bin/python3 SABnzbd.py
Code: Select all
[~] # /opt/bin/python3 -m pip install --upgrade --force-reinstall sabyenc3
Collecting sabyenc3
Downloading https://files.pythonhosted.org/packages/72/ea/d2de7895663bbe870fd74314ad513c4ff880b22df7739d29d58a4b4cb6dd/sabyenc3-4.0.2-cp38-cp38-manylinux1_x86_64.whl
Installing collected packages: sabyenc3
Found existing installation: sabyenc3 4.0.0
Uninstalling sabyenc3-4.0.0:
Successfully uninstalled sabyenc3-4.0.0
Successfully installed sabyenc3-4.0.2
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
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'
Code: Select all
[~] # cd /share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/
[/share/MD0_DATA/.qpkg/SABnzbd/SABnzbd] # /opt/bin/python3 SABnzbd.py
2020-06-22 04:52:04,499::INFO::[SABnzbd:1138] --------------------------------
2020-06-22 04:52:04,500::INFO::[SABnzbd:1139] SABnzbd.py-3.0.0-develop (rev=unknown)
2020-06-22 04:52:04,501::INFO::[SABnzbd:1140] Full executable path = /share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/SABnzbd.py
2020-06-22 04:52:04,503::INFO::[SABnzbd:1150] Platform = posix
2020-06-22 04:52:04,504::INFO::[SABnzbd:1151] Python-version = 3.8.3 (default, Jun 12 2020, 20:24:48)
[GCC 8.4.0]
2020-06-22 04:52:04,505::INFO::[SABnzbd:1152] Arguments = "SABnzbd.py"
2020-06-22 04:52:04,506::INFO::[SABnzbd:1156] Not inside a docker container
2020-06-22 04:52:04,507::INFO::[SABnzbd:1159] Preferred encoding = UTF-8
2020-06-22 04:52:04,508::INFO::[SABnzbd:1171] SSL version = OpenSSL 1.1.1g 21 Apr 2020
2020-06-22 04:52:04,510::INFO::[SABnzbd:1219] Using INI file /root/.sabnzbd/sabnzbd.ini
2020-06-22 04:52:04,511::INFO::[filesystem:305] download_dir directory: /root/Downloads/incomplete does not exist, try to create it
2020-06-22 04:52:04,512::INFO::[filesystem:564] Creating directories: /root/Downloads/incomplete (mask=448)
2020-06-22 04:52:04,540::INFO::[config:857] Writing settings to INI file /root/.sabnzbd/sabnzbd.ini
2020-06-22 04:52:04,565::INFO::[__init__:949] [N/A] /root/.sabnzbd/admin/rss_data.sab missing
2020-06-22 04:52:04,566::INFO::[__init__:949] [N/A] /root/.sabnzbd/admin/totals10.sab missing
2020-06-22 04:52:04,574::INFO::[postproc:138] Loading postproc queue
2020-06-22 04:52:04,576::INFO::[__init__:949] [N/A] /root/.sabnzbd/admin/postproc2.sab missing
2020-06-22 04:52:04,578::INFO::[__init__:949] [N/A] /root/.sabnzbd/admin/queue10.sab missing
2020-06-22 04:52:04,579::INFO::[__init__:949] [N/A] /root/.sabnzbd/admin/watched_data2.sab missing
2020-06-22 04:52:04,581::INFO::[__init__:949] [N/A] /root/.sabnzbd/admin/Rating.sab missing
2020-06-22 04:52:04,584::INFO::[scheduler:216] Setting schedule for midnight BPS reset
2020-06-22 04:52:04,604::INFO::[config:857] Writing settings to INI file /root/.sabnzbd/sabnzbd.ini
2020-06-22 04:52:04,628::INFO::[__init__:344] All processes started
2020-06-22 04:52:04,630::INFO::[SABnzbd:292] Template location for Glitter is /share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/interfaces/Glitter
2020-06-22 04:52:04,631::INFO::[SABnzbd:292] Template location for Config is /share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/interfaces/Config
2020-06-22 04:52:04,657::ERROR::[SABnzbd:405] SABYenc module... NOT found! Expecting v4.0.0 - https://sabnzbd.org/sabyenc
Yup, I saw that too, but I'm not experienced enough with Python to understand the significance.
No. Historically, compiling anything on QNAPs has been problematic, depending on the exact compiling attempted (due to lack of available headers, dev modules, etc... ). It usually has to be done in a PC.
Yes:
Code: Select all
[~] # uname -m
x86_64
I had to experiment a bit to find the right command as it kept installing the cached version. I found some syntax in this post which seemed to work:
Code: Select all
[~] # pip3 install --force-reinstall --ignore-installed --no-binary :all: sabyenc3
Collecting sabyenc3
Downloading https://files.pythonhosted.org/packages/66/4c/a8bc62273142b31de0e86b6312c81f30531785b5d72e9b6be595c9f632d4/sabyenc3-4.0.2.tar.gz
Installing collected packages: sabyenc3
Running setup.py install for sabyenc3 ... done
Successfully installed sabyenc3-4.0.2
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Code: Select all
[~] # cd /share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/
[/share/MD0_DATA/.qpkg/SABnzbd/SABnzbd] # /opt/bin/python3 SABnzbd.py
2020-06-22 05:05:44,672::INFO::[SABnzbd:1138] --------------------------------
2020-06-22 05:05:44,673::INFO::[SABnzbd:1139] SABnzbd.py-3.0.0-develop (rev=unknown)
2020-06-22 05:05:44,674::INFO::[SABnzbd:1140] Full executable path = /share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/SABnzbd.py
2020-06-22 05:05:44,676::INFO::[SABnzbd:1150] Platform = posix
2020-06-22 05:05:44,677::INFO::[SABnzbd:1151] Python-version = 3.8.3 (default, Jun 12 2020, 20:24:48)
[GCC 8.4.0]
2020-06-22 05:05:44,678::INFO::[SABnzbd:1152] Arguments = "SABnzbd.py"
2020-06-22 05:05:44,679::INFO::[SABnzbd:1156] Not inside a docker container
2020-06-22 05:05:44,681::INFO::[SABnzbd:1159] Preferred encoding = UTF-8
2020-06-22 05:05:44,682::INFO::[SABnzbd:1171] SSL version = OpenSSL 1.1.1g 21 Apr 2020
2020-06-22 05:05:44,683::INFO::[SABnzbd:1219] Using INI file /root/.sabnzbd/sabnzbd.ini
2020-06-22 05:05:44,693::INFO::[postproc:138] Loading postproc queue
2020-06-22 05:05:44,698::INFO::[__init__:949] [N/A] /root/.sabnzbd/admin/Rating.sab missing
2020-06-22 05:05:44,701::INFO::[scheduler:216] Setting schedule for midnight BPS reset
2020-06-22 05:05:44,721::INFO::[config:857] Writing settings to INI file /root/.sabnzbd/sabnzbd.ini
2020-06-22 05:05:44,745::INFO::[__init__:344] All processes started
2020-06-22 05:05:44,747::INFO::[SABnzbd:292] Template location for Glitter is /share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/interfaces/Glitter
2020-06-22 05:05:44,749::INFO::[SABnzbd:292] Template location for Config is /share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/interfaces/Config
2020-06-22 05:05:44,776::INFO::[SABnzbd:393] SABYenc module (v4.0.2)... found!
Ah.
DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option. You can use the flag --use-feature=no-binary-enable-wheel-cache to test the upcoming behaviour. Discussion can be found at https://github.com/pypa/pip/issues/11453
When installed the regular way via 'pip install', it seems to go OK (shown below are just the parts related to 'sabyenc3'):DEPRECATION: sabyenc3 is being installed using the legacy 'setup.py install' method, because the '--no-binary' option was enabled for it and this currently disables local wheel building for projects that don't have a 'pyproject.toml' file. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/11451
Code: Select all
...
Collecting sabyenc3==5.4.4
Downloading sabyenc3-5.4.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (148 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 148.3/148.3 kB 1.5 MB/s eta 0:00:00
...
Installing collected packages: ... sabyenc3 ...
Successfully installed ... sabyenc3-5.4.4 ...
Code: Select all
(venv) [/share/CACHEDEV1_DATA/.qpkg/SABnzbd] # pip list
Package Version
------------------ -----------
sabyenc3 5.4.4
Code: Select all
2022-12-03 14:35:18,913::ERROR::[SABnzbd:436] SABYenc module... NOT found! Expecting v5.4.4 - https://sabnzbd.org/sabyenc
Code: Select all
(venv) [/share/CACHEDEV1_DATA/.qpkg/SABnzbd] # python3 -c "import sabyenc3; print(sabyenc.__version__ )"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'sabyenc3'