interactive-coding-challenges icon indicating copy to clipboard operation
interactive-coding-challenges copied to clipboard

Installation issues with virtualenvwrapper on Debian and Ubuntu

Open eamanu opened this issue 7 years ago • 2 comments

When I do:

pip install -r requirements.txt

and install ipython[notebook]

I have this problem when I open a terminal in ubuntu and Debian.

Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main "main", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/local/lib/python2.7/dist-packages/virtualenvwrapper/hook_loader.py", line 16, in from stevedore import ExtensionManager File "/usr/local/lib/python2.7/dist-packages/stevedore/init.py", line 11, in from .extension import ExtensionManager File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 17, in import pkg_resources File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 72, in import packaging.requirements File "/usr/local/lib/python2.7/dist-packages/packaging/requirements.py", line 59, in MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker") TypeError: call() takes exactly 2 arguments (1 given) virtualenvwrapper.sh: There was a problem running the initialization hooks.

If Python could not import the module virtualenvwrapper.hook_loader, check that virtualenvwrapper has been installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly.

This error happen twice in a Deban virtual machine and in an Ubuntu

eamanu avatar Apr 07 '17 19:04 eamanu

I solve this doing:

pip install setuptools==33.1.1

eamanu avatar Apr 07 '17 19:04 eamanu

Hi @eamanu, thanks for the report and update on the fix! Perhaps we might need to update the README for Debian/Ubuntu users?

donnemartin avatar Apr 08 '17 14:04 donnemartin