pythonz icon indicating copy to clipboard operation
pythonz copied to clipboard

Installation with python3 only

Open bidoule opened this issue 9 years ago • 2 comments

Installing pythonz on a system with python3 only (Ubuntu 16.04 for exemple) is difficult. Yet, the first thing I want to do on such a system is installing python2 with pythonz.

The install script contains the line PYTHONS="command -v python /usr/bin/python /usr/bin/python2" but on Ubuntu 16.04, only /usr/bin/python3 exists. The option --python is also not documented. This option was enough for me to get pythonz-install working.

Moreover, once the installation is finished, the pythonz executable contains: python /usr/local/pythonz/scripts/pythonz_main.py "$@" So it's not working on Ubuntu 16.04 I think that python should be replaced by whatever was chosen during the installation (by the option --python or by the line PYTHONS=... above).

bidoule avatar Jun 22 '16 10:06 bidoule

The first problem seems to be resolved but the issue where the pythonz executable calls python still occurs here which stops pythonz from working on CentOS 8 too.

For now, I've edited the installed file and updated python to python3 and everything seems to be OK so far.

fgimian avatar Feb 12 '20 09:02 fgimian

I've got the same problem as @fgimian , proposed a fix here: https://github.com/saghul/pythonz/pull/177

eliasdorneles avatar Jul 08 '22 08:07 eliasdorneles