-
Notifications
You must be signed in to change notification settings - Fork 439
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
Problem when install from git branch + poetry #59
Comments
Pip itself will be adding support for this in its next release, coming in version 19 in January of 2019. See python-poetry/poetry#321. When the pip update is released, installation of poetry-based projects should work fine with pipx. |
The new pip version is out but this is still failing. Do we need to use some kind of flag? pipx install --spec 'git+https://github.com/sdispater/poetry.git@develop' poetry --verbose
pipx (run_pipx_command:626): virtualenv location is /home/feanor/.local/pipx/venvs/poetry
pipx (_run:230): running /usr/bin/python -m venv /home/feanor/.local/pipx/venvs/poetry
pipx (_run:230): running /home/feanor/.local/pipx/venvs/poetry/bin/python -m pip install --upgrade pip
Looking in links: /home/feanor/.wheelhouse
Collecting pip
Using cached https://files.pythonhosted.org/packages/60/64/73b729587b6b0d13e690a7c3acd2231ee561e8dd28a58ae1b0409a5a2b20/pip-19.0-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 18.1
Uninstalling pip-18.1:
Successfully uninstalled pip-18.1
Successfully installed pip-19.0
pipx (_run:230): running /home/feanor/.local/pipx/venvs/poetry/bin/python -m pip install git+https://github.com/sdispater/poetry.git@develop#egg=poetry
Looking in links: /home/feanor/.wheelhouse
Collecting poetry from git+https://github.com/sdispater/poetry.git@develop#egg=poetry
Cloning https://github.com/sdispater/poetry.git (to revision develop) to /tmp/feanor/pip-install-o_pphyt8/poetry
Branch 'develop' set up to track remote branch 'develop' from 'origin'.
Switched to a new branch 'develop'
Installing build dependencies ... done
Getting requirements to build wheel ... error
Complete output from command /home/feanor/.local/pipx/venvs/poetry/bin/python /home/feanor/.local/pipx/venvs/poetry/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/feanor/tmpgakge7as:
Traceback (most recent call last):
File "/home/feanor/.local/pipx/venvs/poetry/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 207, in <module>
main()
File "/home/feanor/.local/pipx/venvs/poetry/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 197, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/feanor/.local/pipx/venvs/poetry/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 54, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/feanor/pip-build-env-e0ijsf1n/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 115, in get_requires_for_build_wheel
return _get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/feanor/pip-build-env-e0ijsf1n/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 101, in _get_build_requires
_run_setup()
File "/tmp/feanor/pip-build-env-e0ijsf1n/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 82, in _run_setup
f = getattr(tokenize, 'open', open)(__file__)
File "/usr/lib/python3.7/tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'setup.py'
----------------------------------------
Command "/home/feanor/.local/pipx/venvs/poetry/bin/python /home/feanor/.local/pipx/venvs/poetry/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/feanor/tmpgakge7as" failed with error code 1 in /tmp/feanor/pip-install-o_pphyt8/poetry
pipx (rmdir:240): removing directory /home/feanor/.local/pipx/venvs/poetry
'/home/feanor/.local/pipx/venvs/poetry/bin/python -m pip install git+https://github.com/sdispater/poetry.git@develop#egg=poetry' failed |
it works for me. i use for example this:
|
Ironically, poetry's
flickr2pelican does, and therefore it works with pipx. You should file an issue/pull request with the poetry project to resolve this. Compare the pyproject.toml files: |
Update to API version 1.77
Update to API version 1.183
When I try to install from a git branch of a project which uses
poetry
(i.e. no setuptools), pipx chokes because there is nosetup.py
. E.g. This is the traceback for installing thedevelop
branch of poetry itselfI am not sure if this is something under the scope of pipx, but at the very least handling the exception and giving a message should be better from a UX point of view.
The text was updated successfully, but these errors were encountered: