|
From: Cédric V. R. <ced...@gm...> - 2018-06-09 09:37:00
|
Hi,
In a previous email [1] I mentioned the following command to install
docutils using pipenv from the sourceforge SVN repo:
pipenv install -e
svn+https://svn.code.sf.net/p/docutils/code/trunk/docutils#egg=docutils
Well actually it does not work. When I try to import docutils I get:
NameError: name 'StandardError' is not defined
>From a quick Google search this is an issue of Python 2 to Python 3
conversion (I am using Python 3).
Previously I was using pipenv and Python 3 but getting the code from
the Pypi repos and had no such problem.
My guess would be that pip (same problem if using pip instead of
pipenv, here pipenv simply calls pip) runs the "setup.py" with the
Python 2 runtime and not the Python 3 one. This would be a bit
surprising though, as my pip explicitly uses Python 3:
$ pip --version
pip 10.0.1 from
/home/cedric/.local/share/virtualenvs/docutils-from-sourceforge-UNMQpB5a/lib/python3.6/site-packages/pip
(python 3.6)
Any idea how to fix that ?
Or alternatively, do you know when the Pypi repository will be updated
to revision >=8217 ?
[1]: https://sourceforge.net/p/docutils/mailman/docutils-users/thread/CAJKLPhz%2Bi3qfCXdD%3DKeC_0s7tJ%3D9x5nP8MDwnD-EJCTHkAetwg%40mail.gmail.com/#msg36338595
Regards,
--
Cédric Van Rompay
+33631475604
cedricvanrompay.fr
|