Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package reinstalled with incorrect version #2869

Closed
kgk opened this issue Jun 4, 2015 · 2 comments
Closed

package reinstalled with incorrect version #2869

kgk opened this issue Jun 4, 2015 · 2 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@kgk
Copy link

kgk commented Jun 4, 2015

Some packages seem to try to install a package already installed by pip, but get the version wrong.

Below Paste 1.7.5 is installed during PasteScript install, it tries to install Paste 2.0.2?

$ pip --version
pip 7.0.3 from /bisque/bqenv/local/lib/python2.7/site-packages (python 2.7)
$ pip install PasteScript==1.7.3
Collecting PasteScript==1.7.3
/bisque/bqenv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading PasteScript-1.7.3.tar.gz (127kB)
    100% |################################| 131kB 1.5MB/s 
Requirement already satisfied (use --upgrade to upgrade): Paste>=1.3 in ./bqenv/lib/python2.7/site-packages (from PasteScript==1.7.3)
Requirement already satisfied (use --upgrade to upgrade): PasteDeploy in ./bqenv/lib/python2.7/site-packages (from PasteScript==1.7.3)
Installing collected packages: PasteScript
  Running setup.py install for PasteScript
    Complete output from command /bisque/bqenv/bin/python -c "import setuptools, tokenize;**file**='/tmp/pip-build-q65unw/PasteScript/setup.py';exec(compile(getattr(tokenize, 'open', open)(**file**).read().replace('\r\n', '\n'), **file**, 'exec'))" install --record /tmp/pip-d9oYWj-record/install-record.txt --single-version-externally-managed --compile --install-headers /bisque/bqenv/include/site/python2.7/PasteScript:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    creating build/lib.linux-x86_64-2.7/paste
    copying paste/**init**.py -> build/lib.linux-x86_64-2.7/paste
    creating build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/copydir.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/checkperms.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/filemaker.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/cherrypy_server.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/exe.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/serve.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/pluginlib.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/grep.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/entrypoints.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/testapp.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/command.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/help.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/flup_server.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/twisted_web2_server.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/cgi_server.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/**init**.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/bool_optparse.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/appinstall.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/templates.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/interfaces.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/epdesc.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/request.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/default_sysconfig.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/create_distro.py -> build/lib.linux-x86_64-2.7/paste/script
    copying paste/script/wsgiutils_server.py -> build/lib.linux-x86_64-2.7/paste/script
    creating build/lib.linux-x86_64-2.7/paste/script/wsgiserver
    copying paste/script/wsgiserver/**init**.py -> build/lib.linux-x86_64-2.7/paste/script/wsgiserver
    creating build/lib.linux-x86_64-2.7/paste/script/util
    copying paste/script/util/logging_config.py -> build/lib.linux-x86_64-2.7/paste/script/util
    copying paste/script/util/**init**.py -> build/lib.linux-x86_64-2.7/paste/script/util
    copying paste/script/util/subprocess24.py -> build/lib.linux-x86_64-2.7/paste/script/util
    copying paste/script/util/string24.py -> build/lib.linux-x86_64-2.7/paste/script/util
    copying paste/script/util/secret.py -> build/lib.linux-x86_64-2.7/paste/script/util
    copying paste/script/util/uuid.py -> build/lib.linux-x86_64-2.7/paste/script/util
    creating build/lib.linux-x86_64-2.7/paste/script/paster-templates
    creating build/lib.linux-x86_64-2.7/paste/script/paster-templates/basic_package
    copying paste/script/paster-templates/basic_package/setup.cfg -> build/lib.linux-x86_64-2.7/paste/script/paster-templates/basic_package
    copying paste/script/paster-templates/basic_package/setup.py_tmpl -> build/lib.linux-x86_64-2.7/paste/script/paster-templates/basic_package
    creating build/lib.linux-x86_64-2.7/paste/script/paster-templates/basic_package/+package+
    copying paste/script/paster-templates/basic_package/+package+/**init**.py -> build/lib.linux-x86_64-2.7/paste/script/paster-templates/basic_package/+package+
    running build_scripts
    creating build/scripts-2.7
    copying and adjusting scripts/paster -> build/scripts-2.7
    changing mode of build/scripts-2.7/paster from 644 to 755
    running install_lib
    Skipping installation of /bisque/bqenv/lib/python2.7/site-packages/paste/**init**.py (namespace package)
    copying paste/script/copydir.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/checkperms.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/filemaker.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/cherrypy_server.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/exe.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/serve.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/pluginlib.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/grep.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/entrypoints.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/testapp.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/command.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/help.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/flup_server.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/twisted_web2_server.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/cgi_server.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/**init**.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/bool_optparse.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/appinstall.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/templates.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/interfaces.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/epdesc.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/request.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/default_sysconfig.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/create_distro.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/wsgiutils_server.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script
    copying paste/script/wsgiserver/**init**.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script/wsgiserver
    copying paste/script/util/logging_config.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script/util
    copying paste/script/util/**init**.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script/util
    copying paste/script/util/subprocess24.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script/util
    copying paste/script/util/string24.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script/util
    copying paste/script/util/secret.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script/util
    copying paste/script/util/uuid.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script/util
    copying paste/script/paster-templates/basic_package/setup.cfg -> /bisque/bqenv/lib/python2.7/site-packages/paste/script/paster-templates/basic_package
    copying paste/script/paster-templates/basic_package/setup.py_tmpl -> /bisque/bqenv/lib/python2.7/site-packages/paste/script/paster-templates/basic_package
    copying paste/script/paster-templates/basic_package/+package+/**init**.py -> /bisque/bqenv/lib/python2.7/site-packages/paste/script/paster-templates/basic_package/+package+
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/copydir.py to copydir.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/checkperms.py to checkperms.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/filemaker.py to filemaker.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/cherrypy_server.py to cherrypy_server.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/exe.py to exe.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/serve.py to serve.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/pluginlib.py to pluginlib.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/grep.py to grep.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/entrypoints.py to entrypoints.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/testapp.py to testapp.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/command.py to command.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/help.py to help.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/flup_server.py to flup_server.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/twisted_web2_server.py to twisted_web2_server.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/cgi_server.py to cgi_server.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/**init**.py to **init**.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/bool_optparse.py to bool_optparse.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/appinstall.py to appinstall.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/templates.py to templates.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/interfaces.py to interfaces.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/epdesc.py to epdesc.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/request.py to request.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/default_sysconfig.py to default_sysconfig.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/create_distro.py to create_distro.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/wsgiutils_server.py to wsgiutils_server.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/wsgiserver/**init**.py to **init**.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/util/logging_config.py to logging_config.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/util/**init**.py to **init**.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/util/subprocess24.py to subprocess24.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/util/string24.py to string24.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/util/secret.py to secret.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/util/uuid.py to uuid.pyc
    byte-compiling /bisque/bqenv/lib/python2.7/site-packages/paste/script/paster-templates/basic_package/+package+/**init**.py to **init**.pyc
    running install_egg_info
    running egg_info
    Checking .pth file support in .
    /bisque/bqenv/bin/python -E -c pass
    Searching for Paste>=1.3
    Reading http://pythonpaste.org/package_index.html
    Reading http://pylons.groovie.org/project
    Download error on http://pylons.groovie.org/project: [Errno -2] Name or service not known -- Some packages may not be found!
    Reading http://pypi.python.org/simple/Paste/
    Best match: Paste 2.0.2
    Downloading https://pypi.python.org/packages/source/P/Paste/Paste-2.0.2.tar.gz#md5=4bfc8a7eaf858f6309d2ac0f40fc951c
    Processing Paste-2.0.2.tar.gz
    Running Paste-2.0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-PC9W03/Paste-2.0.2/egg-dist-tmp-CkhoeB
    no previously-included directories found matching 'documentation/_build'
    zip_safe flag not set; analyzing archive contents...
    six: module references __path__

Installed /tmp/easy_install-PC9W03/Paste-2.0.2/six-1.9.0-py2.7.egg
writing requirements to Paste.egg-info/requires.txt
writing Paste.egg-info/PKG-INFO
writing namespace_packages to Paste.egg-info/namespace_packages.txt
writing top-level names to Paste.egg-info/top_level.txt
writing dependency_links to Paste.egg-info/dependency_links.txt
writing entry points to Paste.egg-info/entry_points.txt
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-q65unw/PasteScript/setup.py", line 145, in
'PasteDeploy',
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 "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/command/install.py", line 53, in run
return _install.run(self)
File "/usr/lib/python2.7/distutils/command/install.py", line 613, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/command/install_egg_info.py", line 29, in run
self.run_command('egg_info')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/command/egg_info.py", line 171, in run
writer = ep.load(installer=installer)
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 1988, in load
if require: self.require(env, installer)
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 2001, in require
working_set.resolve(self.dist.requires(self.extras),env,installer))
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 576, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 821, in best_match
return self.obtain(req, installer) # try and download/install
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 833, in obtain
return installer(requirement)
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/dist.py", line 294, in fetch_build_egg
return cmd.easy_install(req)
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/command/easy_install.py", line 589, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/command/easy_install.py", line 619, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/command/easy_install.py", line 809, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/command/easy_install.py", line 1086, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/command/easy_install.py", line 1075, in run_setup
run_setup(setup_script, args)
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/sandbox.py", line 30, in run_setup
lambda: execfile(
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/sandbox.py", line 72, in run
return func()
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/sandbox.py", line 32, in
{'file':setup_script, 'name':'main'}
File "setup.py", line 115, in
test=paste.script.testapp:make_test_application
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 "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/command/bdist_egg.py", line 172, in run
self.run_command("egg_info")
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/command/egg_info.py", line 170, in run
for ep in iter_entry_points('egg_info.writers'):
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 485, in iter_entry_points
for dist in self:
File "/bisque/bqenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 511, in iter
for key in self.entry_keys[item]:
KeyError: '/tmp/easy_install-PC9W03/Paste-2.0.2/temp/easy_install-140cj1/six-1.9.0'



Command "/bisque/bqenv/bin/python -c "import setuptools, tokenize;**file**='/tmp/pip-build-q65unw/PasteScript/setup.py';exec(compile(getattr(tokenize, 'open', open)(**file**).read().replace('\r\n', '\n'), **file**, 'exec'))" install --record /tmp/pip-d9oYWj-record/install-record.txt --single-version-externally-managed --compile --install-headers /bisque/bqenv/include/site/python2.7/PasteScript" failed with error code 1 in /tmp/pip-build-q65unw/PasteScript
(bqenv)bisque@414f7f4549cb:~$ 
@rbtcollins
Copy link

So this is a bad sign:
/bisque/bqenv/bin/python -E -c pass
Searching for Paste>=1.3
^ thats not pip UI.

I think that pastescript 1.7.3 has some ez_install code triggering and that that is then doing the download itself. I haven't spent enough time digging through the pastescript setup.py code to see why that is being triggered.

@dstufft
Copy link
Member

dstufft commented Mar 22, 2017

Closing this as this appears to be either a pastescript or an easy_install/setuptools issue and isn't something that pip has control over.

@dstufft dstufft closed this as completed Mar 22, 2017
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

3 participants