Of course, my Python version is out of date. So I used pyenv to install a version 3 of Python:
itcrowd@machine:~# pyenv global 3.7.4 itcrowd@machine:~# python --version Python 3.7.4
So that’s fixed.
But when I try to install LT, the installer throws out a bunch of messages as follows:
SyntaxError: Missing parentheses in call to 'print'.
So, I dutifully change all the instances of print whatever to print(whatever) in all of the setup.py files that I can find.
However, I am stuck with one last one as follows:
File "/tmp/easy_install-gecdxuoa/wsgiref-0.1.2/ez_setup/__init__.py", line 170 print "Setuptools version",version,"or greater has been installed." ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Setuptools version",version,"or greater has been installed.")?
Of course, I have searched for the relevant file(s) to change this by hand but is it really necessary for me to update all of the instalation files manually to be coimpatible with the Python3 print command?
Yeah, so it appears to be a an issue with installing wsgiref as follows:
Best match: wsgiref 0.1.2 Processing wsgiref-0.1.2.zip Writing /tmp/easy_install-qi2zc_ab/wsgiref-0.1.2/setup.cfg Running wsgiref-0.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-qi2zc_ab/wsgiref-0.1.2/egg-dist-tmp-bk6_7as4 Traceback (most recent call last): File "/root/environments/env/lib/python3.5/site-packages/setuptools/sandbox.py", line 154, in save_modules yield saved File "/root/environments/env/lib/python3.5/site-packages/setuptools/sandbox.py", line 195, in setup_context yield File "/root/environments/env/lib/python3.5/site-packages/setuptools/sandbox.py", line 250, in run_setup _execfile(setup_script, ns) File "/root/environments/env/lib/python3.5/site-packages/setuptools/sandbox.py", line 45, in _execfile exec(code, globals, locals) File "/tmp/easy_install-qi2zc_ab/wsgiref-0.1.2/setup.py", line 5, in <module>
File "/tmp/easy_install-qi2zc_ab/wsgiref-0.1.2/ez_setup/__init__.py", line 170 print "Setuptools version",version,"or greater has been installed." ^ SyntaxError: Missing parentheses in call to 'print'
itcrowd@machine:~# python -V Python 2.7.12 itcrowd@machine:~# pip install poster DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Requirement already satisfied: poster in /usr/local/lib/python2.7/dist-packages/poster-0.8.1-py2.7.egg (0.8.1)