Skip to content

Pipenv shell hangs indefinitely in macOS #3914

Closed
@faulnegx

Description

@faulnegx

Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Pipenv.

Check the diagnose documentation for common issues before posting! We may close your issue if it is very similar to one of them. Please be considerate, or be on your way.

Make sure to mention your debugging experience if the documented solution failed.

Issue description

Trying to use pipenv for the first time in macOS. Followed https://docs.python-guide.org/starting/install3/osx/ and https://docs.python-guide.org/dev/virtualenvs/#virtualenvironments-ref

I am able to install and run things like pipenv install requests and pipenv run python main.py (following https://pipenv.readthedocs.io/en/latest/install/#installing-pipenv).

Expected result

Expect to be activated in virtual environment shell.

Actual result

Commands and results

09:59:36 user1@admins-MacBook-Pro:~/PyProjects/telloproject $ pipenv shell
Launching subshell in virtual environment…
 . /Users/user1/.local/share/virtualenvs/telloproject-DFQhE6_G/bin/activate

exit

Pipfile content

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

[dev-packages]

[packages]

[requires]
python_version = "2.7"

$ pipenv --support

Pipenv version: '2018.11.26'

Pipenv location: '/Users/user1/Library/Python/3.7/lib/python/site-packages/pipenv'

Python location: '/usr/local/opt/python/bin/python3.7'

Python installations found:

  • 3.7.4: /usr/local/bin/python3
  • 3.7.4: /usr/local/bin/python3.7m
  • 2.7.16: /usr/local/bin/python
  • 2.7.16: /usr/local/bin/pythonw
  • 2.7.10: /usr/bin/python
  • 2.7.10: /usr/bin/pythonw
  • 2.7.10: /usr/bin/python2.7

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.7.4',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '17.7.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 17.7.0: Sun Jun  2 20:31:42 PDT '
                     '2019; root:xnu-4570.71.46~1/RELEASE_X86_64',
 'python_full_version': '3.7.4',
 'python_version': '3.7',
 'sys_platform': 'darwin'}

System environment variables:

  • TERM_PROGRAM
  • TERM
  • SHELL
  • CLICOLOR
  • TMPDIR
  • Apple_PubSub_Socket_Render
  • TERM_PROGRAM_VERSION
  • OLDPWD
  • TERM_SESSION_ID
  • USER
  • COMMAND_MODE
  • SSH_AUTH_SOCK
  • __CF_USER_TEXT_ENCODING
  • PATH
  • PWD
  • LANG
  • ITERM_PROFILE
  • XPC_FLAGS
  • PS1
  • XPC_SERVICE_NAME
  • SHLVL
  • HOME
  • COLORFGBG
  • ITERM_SESSION_ID
  • LOGNAME
  • SECURITYSESSIONID
  • COLORTERM
  • _
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PYTHONDONTWRITEBYTECODE
  • PIP_SHIMS_BASE_MODULE
  • PIP_PYTHON_PATH
  • PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

Debug–specific environment variables:

  • PATH: /Users/user1/Library/Python/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Wireshark.app/Contents/MacOS
  • SHELL: /bin/bash
  • LANG: en_US.UTF-8
  • PWD: /Users/user1/PyProjects/telloproject/Tello-Python-master

Contents of Pipfile ('/Users/user1/PyProjects/telloproject/Pipfile'):

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

[dev-packages]

[packages]

[requires]
python_version = "2.7"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions