-vvv option).Poetry is having git dependency issues when used with the latest PIP (19.0). I am still trying to figure out the issue, but I think one way to trigger it is having a git dependency on a project that also has a git dependency. The output I'm getting looks like this:
[EnvCommandError]
Command ['/Users/jgiancono/Documents/GitHub/mygitrepo1/.venv/bin/pip', 'install', '--no-deps', '-U', '-e', '/Users/jgiancono/Documents/GitHub/auut
asks/.venv/src/mygitrepo2'] errored with the following output:
Obtaining file:///Users/jgiancono/Documents/GitHub/mygitrepo1/.venv/src/mygitrepo2
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'error'
Complete output from command /Users/jgiancono/Documents/GitHub/mygitrepo1/.venv/bin/python3.7 /Users/jgiancono/Documents/GitHub/mygitrepo1/.venv/l
ib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/q1/nt9f1gyn23z_8dbyrjc32l_m0000gp/T/pip-build-
env-507gz2si/normal --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- emailx>=0.1.1510835164,<0.2.
0 logx>=0.1.1523254038,<0.2.0 mygitrepo3 PyPDF2>=1.26,<2.0 weasyprint>=0.42.3,<0.43.0 pathvalidate>=0.21.3,<0.22.0 Markdown>=3.0,<4.0 results:
Collecting emailx<0.2.0,>=0.1.1510835164
Using cached https://files.pythonhosted.org/packages/55/a5/0219cd2459acdc7b06f0c473b0b273c3ac39e17e4679a03672efc0fb50b9/emailx-0.1.151083516
4-py2.py3-none-any.whl
Collecting logx<0.2.0,>=0.1.1523254038
Using cached https://files.pythonhosted.org/packages/c9/50/f53a4aa7c1f70a2083bb0f3b659ce926ea3160a333c9426ce5fdeb96ecd1/logx-0.1.1523254038-
py2.py3-none-any.whl
Collecting mygitrepo3
Could not find a version that satisfies the requirement mygitrepo3 (from versions: )
No matching distribution found for mygitrepo3
----------------------------------------
Command "/Users/jgiancono/Documents/GitHub/mygitrepo1/.venv/bin/python3.7 /Users/jgiancono/Documents/GitHub/mygitrepo1/.venv/lib/python3.7/site-pack
ages/pip install --ignore-installed --no-user --prefix /private/var/folders/q1/nt9f1gyn23z_8dbyrjc32l_m0000gp/T/pip-build-env-507gz2si/normal --
no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- emailx>=0.1.1510835164,<0.2.0 logx>=0.1.1523254038
,<0.2.0 mygitrepo3 PyPDF2>=1.26,<2.0 weasyprint>=0.42.3,<0.43.0 pathvalidate>=0.21.3,<0.22.0 Markdown>=3.0,<4.0 results" failed with error code 1 in
None
I will try to get a working pyproject.toml on a gist, but it's going to require multiple repos to reproduce so it might take me a while. In the meantime I was wondering if anyone else is getting this issue with pip 19.0? Downgrading to 18 fixed my issue, I do believe they removed some deprecated features in 19 which may be causing the issue.
I think I am seeing same issue - https://github.com/pypa/pip/issues/6181
Can be recreated via:
pip install "git+ssh://[email protected]/AvnerCohen/pytoml_sample.git@master#egg=pytoml_sample"
We have the same problem with a private index, our pyproject.toml https://gist.github.com/karec/73670e548eebfbd22676f9c6a741e6ec
Running poetry install with pip 19 or 19.0.1 will give this error
[EnvCommandError]
Command ['.tox/dev/bin/pip', 'install', '-e', '/path/myproject', '--no-deps'] errored with the following output:
Obtaining file:///path/myproject
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'error'
Complete output from command .tox/dev/bin/python .tox/dev/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-acwhy2vs/normal --no-warn-script-location --no-binary :none: --
only-binary :none: -i https://pypi.org/simple -- flask>=1.0,<2.0 flask-sqlalchemy>=2.3,<3.0 psycopg2-binary>=2.7,<3.0 gunicorn>=19.9,<20.0 alembic>=1.0,<2.0 flask-migrate>=2.3,<3.0 sentry_sdk[flask]>=0.6.6,<0.7.0 flask-mail>=0.9.1,<0.10.0 eventslib>=0.1.1,<0.2.0 sqlalchemy>=1.2
,<2.0 marshmallow>=2.17,<3.0 python-dotenv>=0.10.1,<0.11.0 pymemcache>=2.0,<3.0 marshmallow-sqlalchemy>=0.15.0,<0.16.0 python-dateutil>=2.7,<3.0 passlib>=1.7,<2.0 kombu>=4.2,<5.0 flask-jwt-extended>=3.15,<4.0:
Collecting flask<2.0,>=1.0
Using cached https://files.pythonhosted.org/packages/7f/e7/08578774ed4536d3242b14dacb4696386634607af824ea997202cd0edb4b/Flask-1.0.2-py2.py3-none-any.whl
Collecting flask-sqlalchemy<3.0,>=2.3
Using cached https://files.pythonhosted.org/packages/a1/44/294fb7f6bf49cc7224417cd0637018db9fee0729b4fe166e43e2bbb1f1c8/Flask_SQLAlchemy-2.3.2-py2.py3-none-any.whl
Collecting psycopg2-binary<3.0,>=2.7
Using cached https://files.pythonhosted.org/packages/04/c3/fbf0ec416151ce082087bfbb42f236ec42c2c74d2d9f7a5b5cdf49cfc517/psycopg2_binary-2.7.7-cp37-cp37m-manylinux1_x86_64.whl
Collecting gunicorn<20.0,>=19.9
Using cached https://files.pythonhosted.org/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl
Collecting alembic<2.0,>=1.0
Collecting flask-migrate<3.0,>=2.3
Using cached https://files.pythonhosted.org/packages/93/f4/aca055d4f4cabb8e6aedf258dfe58100c264bfdf1d236ee821239e9d2b42/Flask_Migrate-2.3.1-py2.py3-none-any.whl
Collecting sentry_sdk[flask]<0.7.0,>=0.6.6
Using cached https://files.pythonhosted.org/packages/80/45/5ebcce089937310f9fa0f2f6847304fde6ad1ce17117e4cddd22baac3214/sentry_sdk-0.6.9-py2.py3-none-any.whl
Collecting flask-mail<0.10.0,>=0.9.1
Collecting eventslib<0.2.0,>=0.1.1
Could not find a version that satisfies the requirement eventslib<0.2.0,>=0.1.1 (from versions: )
No matching distribution found for eventslib<0.2.0,>=0.1.1
----------------------------------------
Command ".tox/dev/bin/python .tox/dev/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-acwhy2vs/normal --no-warn-script-location --no-binary :none: --only-binary :none: -i
https://pypi.org/simple -- flask>=1.0,<2.0 flask-sqlalchemy>=2.3,<3.0 psycopg2-binary>=2.7,<3.0 gunicorn>=19.9,<20.0 alembic>=1.0,<2.0 flask-migrate>=2.3,<3.0 sentry_sdk[flask]>=0.6.6,<0.7.0 flask-mail>=0.9.1,<0.10.0 eventslib>=0.1.1,<0.2.0 sqlalchemy>=1.2,<2.0 marshmallow>=2.1
7,<3.0 python-dotenv>=0.10.1,<0.11.0 pymemcache>=2.0,<3.0 marshmallow-sqlalchemy>=0.15.0,<0.16.0 python-dateutil>=2.7,<3.0 passlib>=1.7,<2.0 kombu>=4.2,<5.0 flask-jwt-extended>=3.15,<4.0" failed with error code 1 in None
install [--no-dev] [--dry-run] [-E|--extras EXTRAS] [--develop DEVELOP]
Exception trace:
.local/lib/python3.7/site-packages/cleo/application.py in run() at line 94
status_code = self.do_run(input_, output_)
.local/lib/python3.7/site-packages/poetry/console/application.py in do_run() at line 88
return super(Application, self).do_run(i, o)
.local/lib/python3.7/site-packages/cleo/application.py in do_run() at line 197
status_code = command.run(input_, output_)
.local/lib/python3.7/site-packages/poetry/console/commands/command.py in run() at line 77
return super(BaseCommand, self).run(i, o)
.local/lib/python3.7/site-packages/cleo/commands/base_command.py in run() at line 146
status_code = self.execute(input_, output_)
.local/lib/python3.7/site-packages/cleo/commands/command.py in execute() at line 107
return self.handle()
.local/lib/python3.7/site-packages/poetry/console/commands/install.py in handle() at line 89
self.env.run("pip", "install", "-e", str(setup.parent), "--no-deps")
.local/lib/python3.7/site-packages/poetry/utils/env.py in run() at line 492
return super(VirtualEnv, self).run(bin, *args, **kwargs)
.local/lib/python3.7/site-packages/poetry/utils/env.py in run() at line 354
raise EnvCommandError(e)
Simplest way to reproduce with our pyproject.toml
$ virtualenv testenv
$ source testenv/bin/activate
$ pip install pip -U
$ poetry run pip --version
pip 19.0.1 from testenv/lib/python3.7/site-packages/pip (python 3.7)
$ poetry install
Has there been any resolution for this? I am stuck with pip 18.1 until this is resolved.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.
Most helpful comment
Has there been any resolution for this? I am stuck with pip 18.1 until this is resolved.