[OpenStack-Infra] "pip install gear" is failing

Jerry Zhao xyzjerry at gmail.com
Thu Jan 15 12:06:36 UTC 2015


# pip list
docutils (0.12)
extras (0.0.3)
lockfile (0.10.2)
pbr (0.10.7)
pip (6.0.6)
python-daemon (2.0.3)
setuptools (11.0)
# pip install gear
Collecting gear
   Using cached gear-0.5.5.tar.gz
     Traceback (most recent call last):
       File "<string>", line 20, in <module>
       File "/tmp/pip-build-zp7MsU/gear/setup.py", line 21, in <module>
         pbr=True)
       File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
         dist.run_commands()
       File "/usr/lib/python2.7/distutils/dist.py", line 953, in 
run_commands
         self.run_command(cmd)
       File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
         cmd_obj.run()
       File "<string>", line 12, in replacement_run
       File 
"/root/test/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 
2265, in load
         return self._load()
       File 
"/root/test/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 
2268, in _load
         module = __import__(self.module_name, fromlist=['__name__'], 
level=0)
     ImportError: No module named version
     Complete output from command python setup.py egg_info:
     running egg_info

     creating pip-egg-info/gear.egg-info

     writing requirements to pip-egg-info/gear.egg-info/requires.txt

     writing pip-egg-info/gear.egg-info/PKG-INFO

     writing top-level names to pip-egg-info/gear.egg-info/top_level.txt

     writing dependency_links to 
pip-egg-info/gear.egg-info/dependency_links.txt

     writing entry points to pip-egg-info/gear.egg-info/entry_points.txt

     Traceback (most recent call last):

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

       File "/tmp/pip-build-zp7MsU/gear/setup.py", line 21, in <module>

         pbr=True)

       File "/usr/lib/python2.7/distutils/core.py", line 152, in setup

         dist.run_commands()

       File "/usr/lib/python2.7/distutils/dist.py", line 953, in 
run_commands

         self.run_command(cmd)

       File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command

         cmd_obj.run()

       File "<string>", line 12, in replacement_run

       File 
"/root/test/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 
2265, in load

         return self._load()

       File 
"/root/test/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 
2268, in _load

         module = __import__(self.module_name, fromlist=['__name__'], 
level=0)

     ImportError: No module named version

     ----------------------------------------
     Command "python setup.py egg_info" failed with error code 1 in 
/tmp/pip-build-zp7MsU/gear





More information about the OpenStack-Infra mailing list