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

Poetry cannot be installed with Pip 18.1 (released 5 Oct) #485

Closed
2 tasks done
jhrmnn opened this issue Oct 9, 2018 · 6 comments
Closed
2 tasks done

Poetry cannot be installed with Pip 18.1 (released 5 Oct) #485

jhrmnn opened this issue Oct 9, 2018 · 6 comments

Comments

@jhrmnn
Copy link
Contributor

jhrmnn commented Oct 9, 2018

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • OS version and name: macOS 10.14
  • Poetry version: 0.11.5

Issue

Poetry installation via get-poetry.py fails with Pip 18.1.

22:30 ~/Downloads python3 -m venv test
22:30 ~/Downloads test/bin/pip install --upgrade pip==18.0
Collecting pip==18.0
  Using cached https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 10.0.1
    Uninstalling pip-10.0.1:
      Successfully uninstalled pip-10.0.1
Successfully installed pip-18.0
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
22:30 ~/Downloads curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | test/bin/python
Retrieving metadata

Installing version: 0.11.5
  - Getting dependencies
  - Vendorizing dependencies
  - Installing poetry

poetry (0.11.5) successfully installed!
22:30 ~/Downloads rm -rf test
22:31 ~/Downloads python3 -m venv test
22:31 ~/Downloads test/bin/pip install --upgrade pip==18.1
Collecting pip==18.1
  Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 10.0.1
    Uninstalling pip-10.0.1:
      Successfully uninstalled pip-10.0.1
Successfully installed pip-18.1
22:31 ~/Downloads curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | test/bin/python
Retrieving metadata

Installing version: 0.11.5
  - Getting dependencies
  - Vendorizing dependencies
  - Installing poetry
An error has occured: Command '('/Users/hermann/Downloads/test/bin/python', '-m', 'pip', 'install', '--upgrade', '--no-deps', '/var/folders/hk/jzlc3y0x0svcny3v758kmvwr0000gn/T/poetry-installer-v1mvs_fr/poetry-0.11.5-py2.py3-none-any.whl')' returned non-zero exit status 2.
Processing /var/folders/hk/jzlc3y0x0svcny3v758kmvwr0000gn/T/poetry-installer-v1mvs_fr/poetry-0.11.5-py2.py3-none-any.whl
Installing collected packages: poetry
Exception:
Traceback (most recent call last):
  File "/Users/hermann/Downloads/test/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 143, in main
    status = self.run(options, args)
  File "/Users/hermann/Downloads/test/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 366, in run
    use_user_site=options.use_user_site,
  File "/Users/hermann/Downloads/test/lib/python3.7/site-packages/pip/_internal/req/__init__.py", line 49, in install_given_reqs
    **kwargs
  File "/Users/hermann/Downloads/test/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 760, in install
    use_user_site=use_user_site, pycompile=pycompile,
  File "/Users/hermann/Downloads/test/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 382, in move_wheel_files
    warn_script_location=warn_script_location,
  File "/Users/hermann/Downloads/test/lib/python3.7/site-packages/pip/_internal/wheel.py", line 514, in move_wheel_files
    for row in sorted(outrows):
TypeError: '<' not supported between instances of 'int' and 'str'

22:32 ~/Downloads [2] 
@jhrmnn jhrmnn changed the title Poetry cannot be installed with Pip 18.1 (released 4 days ago) Poetry cannot be installed with Pip 18.1 (released 5 Oct) Oct 9, 2018
@jtbeach
Copy link

jtbeach commented Oct 10, 2018

Bug in pip -- see pypa/pip#5868

@y4n9squared
Copy link

There has been a discussion in pypa/pip#5868 regarding this issue, and based on pypa/pip#5868 (comment), it seems like the bug is in Poetry. If the maintainers agree that this is the root cause, it's an easy fix.

@sdispater
Copy link
Member

Actually this is not an issue in how Poetry builds wheels, so there is nothing to be done in the code.

It actually is an issue in the current installer (get-poetry.py). This has already been fixed on the develop branch by the implementation of a new installer (see #378) and the next 0.12.0 release will make this new installer available.

So, as far as I know, this is not an issue on pip's end.

@y4n9squared
Copy link

@sdispater thanks for the update! I think there is currently some discussion whether or not this "issue" is really an issue or just needs to be handled properly for all RECORD files. #378 will resolve this issue for Poetry though.

pypa/pip#5868 (comment)

@sdispater
Copy link
Member

This has been fixed now that the get-poetry.py installer has been updated.

Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants