<div dir="auto"><div>Hi Uwe,<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 14, 2020, 22:14 Uwe Brauer <<a href="mailto:oub@mat.ucm.es">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 Uwe,<br>
> On Fri, Aug 14, 2020, 17:35 Uwe Brauer <<a href="mailto:oub@mat.ucm.es" target="_blank" rel="noreferrer">oub@mat.ucm.es</a>> wrote:<br>
<br>
<br>
> Our docs on readthedocs do not currently retain documentation for obsolete<br>
> versions. I'm not sure if this is really good practice, but today it's like<br>
> that.<br>
<br>
> To get documentation for your chosen version, please see the 'docs'<br>
> directory in the kallithea source distribution and find the appropriate rst<br>
> file.<br>
<br>
Here is what I did <br>
<br>
<br>
hg up 0.5.2 (there is a corresponding tag)<br>
<br>
<br>
I followed the instructions in docs/installation.rst<br>
<br>
<br>
cd kallithea<br>
virtualenv ../kallithea-venv<br>
and this already failed!<br>
<br>
File "/usr/bin/virtualenv", line 5, in <module><br>
from pkg_resources import load_entry_point<br>
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2927, in <module><br>
@_call_aside<br>
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2913, in _call_aside<br>
f(*args, **kwargs)<br>
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2952, in _initialize_master_working_set<br>
add_activation_listener(lambda dist: dist.activate())<br>
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 956, in subscribe<br>
callback(dist)<br>
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2952, in <lambda><br>
add_activation_listener(lambda dist: dist.activate())<br>
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2515, in activate<br>
declare_namespace(pkg)<br>
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2097, in declare_namespace<br>
_handle_ns(packageName, path_item)<br>
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2047, in _handle_ns<br>
_rebuild_mod_path(path, packageName, module)<br>
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2066, in _rebuild_mod_path<br>
orig_path.sort(key=position_in_sys_path)<br>
AttributeError: '_NamespacePath' object has no attribute 'sort'<br>
<br>
Why on earth he is using python3 is beyond me.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">The 'virtualenv' program will use the 'python' program found in PATH. This ised to be a 2.7 python in most distributions but is python 3 in more recent distributions.</div><div dir="auto"><br></div><div dir="auto">You can specify a specific python version woth the -p parameter:</div><div dir="auto"><br></div><div dir="auto">virtualenv -p python2.7 ../kallithea-venv</div><div dir="auto"><br></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>
Ubuntu offers<br>
python3-virtualenv<br>
and <br>
virtualenv<br>
<br>
So I presume that virtualenv is for 2.7<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">The 'virtualenv' program still works for python3 but the alternative approach of 'python -m venv' is preferred. But that did not yet exist in python 2.7 world.</div><div dir="auto"><br></div><div dir="auto">Best regards</div><div dir="auto">Thomas</div></div>