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

VersionConflict in easy_install now causes TypeError #281

Closed
bb-migration opened this Issue Oct 30, 2014 · 4 comments

Comments

Projects
None yet
1 participant
@bb-migration

bb-migration commented Oct 30, 2014

Originally reported by: jaraco (Bitbucket: jaraco, GitHub: jaraco)


Probably implicated in the fix for #268, a VersionConflict during an install now raises an exception:

Traceback (most recent call last):
  File "c:\python\scripts\easy_install.pya", line 9, in <module>
    load_entry_point('setuptools==7.0', 'console_scripts', 'easy_install')()
  File "C:\Program Files\Python34\lib\site-packages\setuptools-7.0-py3.4.egg\setuptools\command\easy_install.py", line 2147, in main
  File "C:\Program Files\Python34\lib\site-packages\setuptools-7.0-py3.4.egg\setuptools\command\easy_install.py", line 2133, in with_ei_usage
  File "C:\Program Files\Python34\lib\site-packages\setuptools-7.0-py3.4.egg\setuptools\command\easy_install.py", line 2150, in <lambda>
  File "C:\Program Files\Python34\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Program Files\Python34\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "C:\Program Files\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Program Files\Python34\lib\site-packages\setuptools-7.0-py3.4.egg\setuptools\command\easy_install.py", line 370, in run
  File "C:\Program Files\Python34\lib\site-packages\setuptools-7.0-py3.4.egg\setuptools\command\easy_install.py", line 613, in easy_install
  File "C:\Program Files\Python34\lib\site-packages\setuptools-7.0-py3.4.egg\setuptools\command\easy_install.py", line 645, in install_item
  File "C:\Program Files\Python34\lib\site-packages\setuptools-7.0-py3.4.egg\setuptools\command\easy_install.py", line 704, in process_distribution
TypeError: not enough arguments for format string

@bb-migration

This comment has been minimized.

bb-migration commented Oct 30, 2014

Original comment by msabramo (Bitbucket: msabramo, GitHub: msabramo):


I'll try to take a look soon. Fairly loaded at the moment though.

@bb-migration

This comment has been minimized.

bb-migration commented Jan 1, 2015

Original comment by oxtopus (Bitbucket: oxtopus, GitHub: oxtopus):


I ran into this one, too, and the TypeError was really misleading. In one case VersionConflict was raised with two args, and in another, a single str that was causing problems with the str format in the exception handler.

Proposed solution at https://bitbucket.org/pypa/setuptools/pull-request/113/handle-versionconflict-special-case-when/diff

@bb-migration

This comment has been minimized.

bb-migration commented Jan 4, 2015

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Issue #324 was marked as a duplicate of this issue.

@bb-migration

This comment has been minimized.

bb-migration commented Jan 4, 2015

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Add test capturing expectation when dependencies conflict during resolve. Fixes #281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment