-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 shows astroid
has two dependencies while pip says there's four
#2728
Comments
|
Try |
➜ mypackage IN-3484-functional-tests ✗ poetry show -a astroid
name : astroid
version : 2.4.2
description : An abstract syntax tree for Python with inference support.
dependencies
- lazy-object-proxy >=1.4.0,<1.5.0
- typed-ast >=1.4.0,<1.5 Seems to show the same. Have meanwhile reverted back to ➜ mypackage IN-3484-functional-tests ✗ poetry show six
name : six
version : 1.15.0
description : Python 2 and 3 compatibility utilities
dependencies
¯\_(ツ)_/¯
required by
- fixedwidth *
- isodate *
- packaging *
- python-dateutil >=1.5
- zeep >=1.9.0 So it seems that the problem is specific to |
It might have to do with something in your environment. I am unable to reproduce this using $ poetry debug
Poetry
Version: 1.1.0b2
Python: 3.8.3
Virtualenv
Python: 3.6.11
Implementation: CPython
Path: /path/to/venv
Valid: True
System
Platform: linux
OS: posix
Python: /usr
$ poetry show astroid
name : astroid
version : 2.4.2
description : An abstract syntax tree for Python with inference support.
dependencies
- lazy-object-proxy >=1.4.0,<1.5.0
- six >=1.12,<2.0
- wrapt >=1.11,<2.0
- typed-ast >=1.4.0,<1.5 This was using the following: [tool.poetry]
name = "temp"
version = "0.1.0"
description = ""
authors = ["Foo Bar <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.6"
astroid = "^2.4.2"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api" |
I'm seeing the same thing. Only I'm seeing even less dependencies, that could be because 3.8 though.
|
I'm also having this issue.
When I try and run |
The root cause of this issue is the parsing of package requirements for My comment above was with poetry development installation using a development branch with The parsing issue was resolved with python-poetry/poetry-core#55 and python-poetry/poetry-core#56. |
Cool, thanks @abn. When can we expect the next preview version please? |
This was resolved with |
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. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Ubuntu 18.04.4 LTS x86_64
Python version: 3.6.11 (
pyenv
)Poetry version: 1.1.0.b2
Link of a Gist with the contents of your pyproject.toml file: Same as in this issue
Issue
Tried running
pylint
, it failed because it's dependencyastroid
could not find its dependencywrapt
installed. Found thatpoetry show astroid
doesn't listwrapt
as its dependency, whilepip show
does.Step by step (these all got run sequentially):
Install a fresh venv (I destroyed it to check whether I can replicate this in a fresh one).
➜ mypackage IN-3484-functional-tests ✗ poetry install Creating virtualenv service-mypackage-4v1lnku2-py3.6 in /home/snejus/.cache/pypoetry/virtualenvs Installing dependencies from lock file Package operations: 54 installs, 0 updates, 0 removals ... - Installing pydantic (1.6.1) - Installing pylint (2.5.3) - Installing pytest-cov (2.10.0) - Installing pytest-randomly (3.4.1) - Installing python-dateutil (2.8.1) - Installing safety (1.9.0) Installing the current project: service-mypackage (4.4.0) /1m-3.2s
try running pylint
poetry show
pip show
Looks like
poetry
skipped wrapt and six.and poetry version just for completeness
The text was updated successfully, but these errors were encountered: