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

error graph level ? #4629

Closed
lisonge opened this issue Feb 20, 2021 · 3 comments
Closed

error graph level ? #4629

lisonge opened this issue Feb 20, 2021 · 3 comments

Comments

@lisonge
Copy link

lisonge commented Feb 20, 2021

# a empty fold
# only pip and setuptools
pip install pipenv
pipenv shell
pipenv install httpx
pipenv graph

pipenv graph output

httpx==0.16.1
  - certifi [required: Any, installed: 2020.12.5]
  - httpcore [required: ==0.12.*, installed: 0.12.3]
    - h11 [required: ==0.*, installed: 0.12.0]
    - sniffio [required: ==1.*, installed: 1.2.0]
  - rfc3986 [required: >=1.3,<2, installed: 1.4.0]
  - sniffio [required: Any, installed: 1.2.0]
idna==3.1

why is idna at the same level as httpx ?

@lisonge lisonge changed the title why graph idna? error graph level ? Feb 20, 2021
@rkucsora
Copy link

I just bumped into something similar as well. It looks like idna is pulled in as an extra dependency of rfc3986 (see here). I found an older issue about how extras are handled in the graph (#1013). As mentioned there, this should be fixed in pipdeptree not in pipenv. They might have a promising PR over there, but I'm not sure how active that is. (I neither work on pipenv or pipdeptree.)

@matteius
Copy link
Member

Not an issue in pipenv==2021.5.29 or pipenv==2021.11.23

bash-3.2$ pipenv install httpx
Creating a virtualenv for this project...
Pipfile: /Users/mdavis/Projects/venv/Pipfile
Using /opt/homebrew/bin/python3.9 (3.9.9) to create virtualenv...
⠹ Creating virtual environment...created virtual environment CPython3.9.9.final.0-64 in 146ms
  creator CPython3Posix(dest=/Users/mdavis/.virtualenvs/venv-JZ8WeU2q, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/mdavis/Library/Application Support/virtualenv)
    added seed packages: pip==21.3.1, setuptools==59.2.0, wheel==0.37.0
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

✔ Successfully created virtual environment!
Virtualenv location: /Users/mdavis/.virtualenvs/venv-JZ8WeU2q
Installing httpx...
Adding httpx to Pipfile's [packages]...
✔ Installation Succeeded
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✔ Success!
Updated Pipfile.lock (74de6e)!
Installing dependencies from Pipfile.lock (74de6e)...
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/0 — 00:00:00
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
bash-3.2$ pipenv graph
httpx==0.21.1
  - certifi [required: Any, installed: 2021.10.8]
  - charset-normalizer [required: Any, installed: 2.0.9]
  - httpcore [required: >=0.14.0,<0.15.0, installed: 0.14.3]
    - anyio [required: ==3.*, installed: 3.4.0]
      - idna [required: >=2.8, installed: 3.3]
      - sniffio [required: >=1.1, installed: 1.2.0]
    - certifi [required: Any, installed: 2021.10.8]
    - h11 [required: >=0.11,<0.13, installed: 0.12.0]
    - sniffio [required: ==1.*, installed: 1.2.0]
  - rfc3986 [required: >=1.3,<2, installed: 1.5.0]
  - sniffio [required: Any, installed: 1.2.0]

@lisonge
Copy link
Author

lisonge commented Dec 21, 2021

ok, nice job, but i now use poetry, i will retry pipenv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants