sander wrote: ↑September 30th, 2017, 7:13 am
Good that it works.
Regarding this subject (more than one python installation on a system), this might be relevant for installing sabyenc via pip into the correct python installation:
So: before you install sabyenc, find out which exact python is used (full path), and use that to install sabyenc.
I'll put this in the wiki documentation.
Hi Sander,
I think this will help resolve the issue I am facing when trying to install req.txt as the installation is defaulting to python3.5 and not 3.8 which I want to use.
I am having an issue with the syntax. 3.8 is installed in sudo /usr/local/bin/python3.8 and I need to install cheetah but this doesn't work: sudo /usr/local/bin/python3.8 /usr/local/bin/pip install cheetah
osmc@HTPC:~/sabnzbd$ sudo /usr/local/bin/python3.8 -m pip install cheetah
Collecting cheetah
Using cached Cheetah-2.4.4.tar.gz (190 kB)
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qf4_k27n/cheetah/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qf4_k27n/cheetah/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-y_czbk5x
cwd: /tmp/pip-install-qf4_k27n/cheetah/
Complete output (8 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-qf4_k27n/cheetah/setup.py", line 10, in <module>
import SetupTools
File "/tmp/pip-install-qf4_k27n/cheetah/SetupTools.py", line 50
except DistutilsPlatformError, x:
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.1.1; however, version 20.2.2 is available.
You should consider upgrading via the '/usr/local/bin/python3.8 -m pip install --upgrade pip' command.
safihre wrote: ↑September 8th, 2020, 3:42 am
Are you actually on QNAP as the name of this topic suggests?
Because then you should use the Sherpa script that handles all of this for you.