<div dir="auto"><div>Hi Uwe,<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 14, 2020, 17:24 Uwe Brauer <<a href="mailto:oub@mat.ucm.es" target="_blank" rel="noreferrer">oub@mat.ucm.es</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi<br>
<br>
I followed the instructions in <br>
<a href="https://medium.com/@moreless/install-python-3-6-on-ubuntu-16-04-28791d5c2167" rel="noreferrer noreferrer noreferrer" target="_blank">https://medium.com/@moreless/install-python-3-6-on-ubuntu-16-04-28791d5c2167</a><br>
and in fact installed python 3.8<br>
<br>
I cannot de install python 3.5 because a huge amount of package depend<br>
on python 3.5<br>
<br>
However when I follow the instruction <br>
<br>
hg clone <a href="https://kallithea-scm.org/repos/kallithea" rel="noreferrer noreferrer noreferrer" target="_blank">https://kallithea-scm.org/repos/kallithea</a> -u stable<br>
cd kallithea<br>
python3 -m venv ../kallithea-venv<br>
. ../kallithea-venv/bin/activate<br>
pip install --upgrade pip setuptools<br>
pip install --upgrade -e .<br>
python3 setup.py compile_catalog   # for translation of the UI<br>
<br>
<br>
,----<br>
| <br>
| <a href="https://kallithea.readthedocs.io/en/stable/installation.htmlpip" rel="noreferrer noreferrer noreferrer" target="_blank">https://kallithea.readthedocs.io/en/stable/installation.htmlpip</a> install --upgrade -e .<br>
| Obtaining file:///home/oub/src/kallithea<br>
|     ERROR: Command errored out with exit status 1:<br>
|      command: /home/oub/src/kallithea-venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/oub/src/kallithea/setup.py'"'"'; __file__='"'"'/home/oub/src/kallithea/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-h0npqkk4<br>
|          cwd: /home/oub/src/kallithea/<br>
|     Complete output (5 lines):<br>
|     Traceback (most recent call last):<br>
|       File "<string>", line 1, in <module><br>
|       File "/home/oub/src/kallithea/setup.py", line 13, in <module><br>
|         raise Exception('Kallithea requires Python 3.6 or later')<br>
|     Exception: Kallithea requires Python 3.6 or later<br>
|     ----------------------------------------<br>
| ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.<br>
`----<br>
<br>
Well python3 was symbolically still linked to python3.5 <br>
<br>
So I changed that set the link from python 3.8 to python 3<br>
<br>
Did not work, <br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">In general you should avoid changing such links manually. I suggest you restore the original one.</div><div dir="auto">The virtual environment (venv) created with the command will use the python used for the command itself. This means that you will get a python 3.8 env if you create it with python 3.8.</div><div dir="auto"><br></div><div dir="auto">So use the following command:</div><div dir="auto"><br></div><div dir="auto">python3.8 -m venv ../kallithea-venv</div><div dir="auto"><br></div><div dir="auto">After activating the environment, the 'bin' directory inside the venv will be added to your PATH variable, and you can use any of the python symlinks provided there.</div><div dir="auto"><br></div><div dir="auto">As background material, you could look at</div><div dir="auto"><a href="https://docs.python.org/3/tutorial/venv.html">https://docs.python.org/3/tutorial/venv.html</a></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
<br>
/usr/bin/python3.8 -m pip install --upgrade pip setuptools<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">For these and subsequent commands you should not use the absolute path to a python from your system directories. Instead, you should use the command names directly, which will be resolved via the modified PATH prepared by the activation of the virtual environment.</div><div dir="auto"><br></div><div dir="auto">Best regards</div><div dir="auto">Thomas</div></div>