tomduck / pandoc-eqnos

A pandoc filter for numbering equations and equation references.
GNU General Public License v3.0
221 stars 27 forks source link

The required version of setuptools (>=17.0) is not available #3

Closed rkingsbury closed 8 years ago

rkingsbury commented 9 years ago

On a fully up-to-date installation of Linux Mint (with both Python2 and Python3), I run:

sudo pip3 install pandoc-eqnos

and installation fails with:

Downloading/unpacking pandoc-eqnos
  Downloading pandoc-eqnos-0.4.tar.gz
  Running setup.py (path:/tmp/pip_build_root/pandoc-eqnos/setup.py) egg_info for package pandoc-eqnos

    The required version of setuptools (>=17.0) is not available,
    and can't be installed while this script is running. Please
    install a more recent version first, using
    'easy_install -U setuptools'.

    (Currently using setuptools 3.3 (/usr/lib/python3/dist-packages))
    Complete output from command python setup.py egg_info:

The required version of setuptools (>=17.0) is not available,

and can't be installed while this script is running. Please

install a more recent version first, using

'easy_install -U setuptools'.

(Currently using setuptools 3.3 (/usr/lib/python3/dist-packages))

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 2 in /tmp/pip_build_root/pandoc-eqnos
Storing debug log for failure in /home/ryan/.pip/pip.log

I get the same result when using the Python2 version of pip.

The requirement for version 17 seems to come from ez_setup.py, line 33. Can you please help?

tomduck commented 8 years ago

Argh. Sorry for the long delay. The problem is that Debian (from which Linux Mint is derived) has a really old version of setuptools. The solution that I have used with Debian is to execute the command suggested above (as root) before proceeding with the installation:

# easy_install -U setuptools
tomduck commented 8 years ago

I updated the documentation with this info. Thanks for pointing out the problem.