pip install virtualenvwrapper complaining there's no module named "core"

Tim Chase python.list at tim.thechases.com
Fri Sep 26 23:07:56 CEST 2014


I'm at a bit of a loss trying to figure out where this mysterious
"core" module is.  FWIW, this is a hosted server where "python" is
2.4, but 2.6 is available if named.  Full steps were as follows:

1) Pull down "get-pip.py" as directed

wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py

2) Okay, "raw.github.com" serves a cert that wget doesn't like
 because the cert is assigned to just "github.com" (grumble)

wget --no-check-certificate https://raw.github.com/pypa/pip/master/contrib/get-pip.py

3) Run it, specifying that I want things to get installed
 in my home/user directory:

 python2.6 get-pip.py --user

4) Okay, let's get me some virutalenv (works fine)

 pip2.6 install --user virtualenv

5) Okay, let's get me some virutalenvwrapper

 pip2.6 install --user virtualenvwrapper

This is where things fall over (~/.pip/pip.log output below) with
the inability to import a module named "core".

Where am I going wrong, or what am I missing?

I have a nagging feeling that it's either a 2.4-vs-2.6 conflict,
or possibly some PYTHONPATH (currently unset) issue that I missed.

-tkc

----------------------------------------------------------

Downloading/unpacking virtualenvwrapper
  Running setup.py (path:/tmp/pip_build_tim/virtualenvwrapper/setup.py) egg_info for package virtualenvwrapper
    
    Installed /tmp/pip_build_tim/virtualenvwrapper/pbr-0.10.0-py2.6.egg
    Searching for pip
    Reading http://pypi.python.org/simple/pip/
    Best match: pip 1.5.6
    Downloading https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz#md5=01026f87978932060cc86c1dc527903e
    Processing pip-1.5.6.tar.gz
    Running pip-1.5.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-CcQHLI/pip-1.5.6/egg-dist-tmp-8B3Dq1
    warning: no files found matching 'pip/cacert.pem'
    warning: no files found matching '*.html' under directory 'docs'
    warning: no previously-included files matching '*.rst' found under directory 'docs/_build'
    no previously-included directories found matching 'docs/_build/_sources'
    
    Installed /tmp/pip_build_tim/virtualenvwrapper/pip-1.5.6-py2.6.egg
    /usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/dist.py:245: UserWarning: Module pbr was already imported from /tmp/easy_install-7dd_Tz/pbr-0.10.0/pbr/__init__.py, but /tmp/pip_build_tim/virtualenvwrapper/pbr-0.10.0-py2.6.egg is being added to sys.path
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_tim/virtualenvwrapper/setup.py", line 7, in <module>
        pbr=True,
      File "/usr/local/lib/python2.6/distutils/core.py", line 113, in setup
        _setup_distribution = dist = klass(attrs)
      File "build/bdist.linux-i686/egg/setuptools/dist.py", line 223, in __init__
      File "/usr/local/lib/python2.6/distutils/dist.py", line 270, in __init__
        self.finalize_options()
      File "build/bdist.linux-i686/egg/setuptools/dist.py", line 256, in finalize_options
      File "build/bdist.linux-i686/egg/pkg_resources.py", line 1913, in load
    ImportError: No module named core
    Complete output from command python setup.py egg_info:
    

Installed /tmp/pip_build_tim/virtualenvwrapper/pbr-0.10.0-py2.6.egg

Searching for pip

Reading http://pypi.python.org/simple/pip/

Best match: pip 1.5.6

Downloading https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz#md5=01026f87978932060cc86c1dc527903e

Processing pip-1.5.6.tar.gz

Running pip-1.5.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-CcQHLI/pip-1.5.6/egg-dist-tmp-8B3Dq1

warning: no files found matching 'pip/cacert.pem'

warning: no files found matching '*.html' under directory 'docs'

warning: no previously-included files matching '*.rst' found under directory 'docs/_build'

no previously-included directories found matching 'docs/_build/_sources'



Installed /tmp/pip_build_tim/virtualenvwrapper/pip-1.5.6-py2.6.egg

/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/dist.py:245: UserWarning: Module pbr was already imported from /tmp/easy_install-7dd_Tz/pbr-0.10.0/pbr/__init__.py, but /tmp/pip_build_tim/virtualenvwrapper/pbr-0.10.0-py2.6.egg is being added to sys.path

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_tim/virtualenvwrapper/setup.py", line 7, in <module>

    pbr=True,

  File "/usr/local/lib/python2.6/distutils/core.py", line 113, in setup

    _setup_distribution = dist = klass(attrs)

  File "build/bdist.linux-i686/egg/setuptools/dist.py", line 223, in __init__

  File "/usr/local/lib/python2.6/distutils/dist.py", line 270, in __init__

    self.finalize_options()

  File "build/bdist.linux-i686/egg/setuptools/dist.py", line 256, in finalize_options

  File "build/bdist.linux-i686/egg/pkg_resources.py", line 1913, in load

ImportError: No module named core

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_tim/virtualenvwrapper
Storing debug log for failure in /home/tim/.pip/pip.log




More information about the Python-list mailing list