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

pipenv graph fails with ModuleNotFoundError #2973

Closed
orn688 opened this issue Oct 9, 2018 · 2 comments
Closed

pipenv graph fails with ModuleNotFoundError #2973

orn688 opened this issue Oct 9, 2018 · 2 comments
Labels
Type: Duplicate This issue is a duplicate of an already-existing issue.

Comments

@orn688
Copy link
Contributor

orn688 commented Oct 9, 2018

Issue description

pipenv graph fails with the following output:

File "/usr/local/lib/python3.7/dist-packages/pipenv/vendor/pipdeptree.py", line 16, in <module>
    from pipenv.vendor.pip_shims import get_installed_distributions, FrozenRequirement
ModuleNotFoundError: No module named 'pipenv'

Expected result

Some dependency graph to be shown.

Actual result

(see above)

Steps to replicate

In the official Pipenv Docker image (docker run -it --rm kennethreitz/pipenv /bin/bash):

pipenv --python 3.7
pipenv graph  # fails

$ pipenv --support

Pipenv version: '2018.10.9'

Pipenv location: '/usr/local/lib/python3.7/dist-packages/pipenv'

Python location: '/usr/bin/python3.7'

Python installations found:

  • 3.7.0: /usr/bin/python3
  • 3.7.0: /usr/bin/python3.7
  • 3.7.0: /usr/bin/python3.7m
  • 3.6.6: /usr/bin/python3.6m
  • 3.6.6: /usr/bin/python3.6
  • 2.7.15rc1: /usr/bin/python2.7

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.7.0',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '4.9.93-linuxkit-aufs',
 'platform_system': 'Linux',
 'platform_version': '#1 SMP Wed Jun 6 16:55:56 UTC 2018',
 'python_full_version': '3.7.0',
 'python_version': '3.7',
 'sys_platform': 'linux'}

System environment variables:

  • LC_ALL
  • LS_COLORS
  • LESSCLOSE
  • LANG
  • HOSTNAME
  • PWD
  • HOME
  • DEBIAN_FRONTEND
  • TERM
  • SHLVL
  • PATH
  • LESSOPEN
  • _
  • PYTHONDONTWRITEBYTECODE
  • PIP_SHIMS_BASE_MODULE
  • PIP_PYTHON_PATH

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  • LANG: C.UTF-8
  • PWD: /app

Contents of Pipfile ('/app/Pipfile'):

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]

[dev-packages]

[requires]
python_version = "3.7"
@techalchemy techalchemy added the Type: Duplicate This issue is a duplicate of an already-existing issue. label Oct 10, 2018
@techalchemy
Copy link
Member

Please see #2952 and #2970 for discussion

@orn688
Copy link
Contributor Author

orn688 commented Oct 10, 2018

Oops, thanks! Sorry for the dupe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Duplicate This issue is a duplicate of an already-existing issue.
Projects
None yet
Development

No branches or pull requests

2 participants