quickinstall.py fails with obscure error message with python 2.6.x

Issue #379 resolved
created an issue

Moin2 requires Python 2.7. But if a new user tries to install Moin2 on an OS like Centos 6.4 where Python 2.6.x is the current release, then quickinstall.py fails with a traceback:

 Traceback (most recent call last):
   File "quickinstall.py", line 68, in <module>
     QuickInstall(os.path.dirname(os.path.realpath(sys.argv[0])), venv=args.venv)()
   File "quickinstall.py", line 24, in __init__
     venv = os.path.join(base, 'venv-{}-{}'.format(source_name, os.path.basename(sys.executable)))
 ValueError: zero length field name in format

quickinstall.py should check python version and print a clear error message.

A workaround for CentOS users is to install Python 2.7 and do:

python2.7 quickinstall.py

(or use whatever points to the python 2.7 executable).

Comments (4)

  1. Glenn Johnson

    Can you confirm that this works? I get

    Traceback (most recent call last):
      File "quickinstall.py", line 16, in <module>
        import virtualenv
    ImportError: No module named virtualenv
  2. RogerHaase reporter

    You need to install virtualenv on the 2.7 Python. It should probably say that in the requirements along with Python 2.7, but it is mentioned here: https://moin-20.readthedocs.org/en/latest/admin/install.html#using-your-standard-python-install-or-a-virtualenv-directory.

    To install virtualenv, you need first install a version of distribute/setuptools. Google is your friend.

    Moin2 will work on CentOS. I was able to reproduce your original traceback documented on #moin-dev by using "python quickinstall.py". "python2.7 quickinstall.py" will work (hopefully the other issues of the past month are now corrected).

  3. Log in to comment