-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Running pipenv gives TypeError: 'module' object is not callable #2871
Comments
Oh! The environment had an in-development version of pip. 🙈 |
pip 18.1 was released several minutes ago and now pipenv doesn't work for me too, so I had to pin pip to 18.0 as a quick workaround. |
This affected me too on Python 3.6. Upgrading pip and pipenv brings them to
|
I'm having a similar problem. I'm trying to create a new environment, using python 3.6
The Pipfile has the following content
No Pipfile.lock was produced. But I'm able to use |
New issue created for this: #2924 |
This is a workaround for locking the pip version to 18.0 pip install pipenv
pipenv run pip install pip==18.0
pipenv install |
This workaround doesn't work to me. |
@joao-geru And do you want help? You'll need to give us more than that. What commands are you running? Output? Error messages? |
The above didn't quite work for me, what did was:
|
Hi Williams, I did update of pip and pipenv:
So, I was to execute pipenv:
|
@joao-geru look at your pip install
As stated, you need pip-18.0 not 18.1 |
For me i had to install not in the pipenv, i installed in my python specific version python3.5 -m pip install pip=18.0 |
Affected also Pypy3 (python 3.5). (logged in into shell, than made: |
I'm having a similar problem |
It work fine for my docker |
I'm having a simlar problem.
|
@yuji38kwmt make sure that pip is 18.0 in your virtualenv |
Thanks for flagging this everyone! Please refrain from commenting here and provide your comments over at #2924. The reason for the issue has been identified and the fix should be available in the near future with a new release of pipenv. |
This solution might not effect immediately that's why it would be great that exit and activate shell again. FYI. |
For me this was fixed by moving to the most recent version of pipenv ( |
Ubuntu 16.04 LTS
|
it works thanks! |
This workaround works on Linux Mint 18.3 "Sylvia" (based on Ubuntu Xenial) with Python 3.7 installed from deadsnakes PPA: pipenv shell No need to change pipenv. That is, no need to run this command: Just install pip in your virtual environment (not in your main OS). That is: activate your virtual environment with: |
for now |
Seems to be fixed with #2924.
|
maybe this issue should be opened again |
Yeah no, this is resolved. If you have a bug with the most recent release open an issue. Don’t post with 0 context saying we should reopen something. |
Issue description
I just installed pipenv on a pyenv installed Python 3.7.0 interpreter. Starting in a clean directory resulted in an exception.
Expected result
pipenv
to not crash.Actual result
Steps to replicate
$ pipenv --support
Pipenv version:
'2018.7.1'
Pipenv location:
'/Users/pradyunsg/.pyenv/versions/3.7.0/lib/python3.7/site-packages/pipenv'
Python location:
'/Users/pradyunsg/.pyenv/versions/3.7.0/bin/python3.7'
Other Python installations in
PATH
:2.7
:/Users/pradyunsg/.pyenv/shims/python2.7
2.7
:/Users/pradyunsg/.pyenv/shims/python2.7
2.7
:/usr/local/bin/python2.7
2.7
:/usr/bin/python2.7
2.7
:/Users/pradyunsg/.pyenv/shims/python2.7
3.4
:/Users/pradyunsg/.pyenv/shims/python3.4m
3.4
:/Users/pradyunsg/.pyenv/shims/python3.4
3.4
:/Users/pradyunsg/.pyenv/shims/python3.4
3.5
:/Users/pradyunsg/.pyenv/shims/python3.5m
3.5
:/Users/pradyunsg/.pyenv/shims/python3.5
3.5
:/Users/pradyunsg/.pyenv/shims/python3.5
3.6
:/Users/pradyunsg/.pyenv/shims/python3.6m
3.6
:/Users/pradyunsg/.pyenv/shims/python3.6
3.6
:/Users/pradyunsg/.pyenv/shims/python3.6
3.7
:/Users/pradyunsg/.pyenv/versions/3.7.0/bin/python3.7m
3.7
:/Users/pradyunsg/.pyenv/versions/3.7.0/bin/python3.7
3.7
:/Users/pradyunsg/.pyenv/shims/python3.7
3.7
:/usr/local/bin/python3.7
3.7
:/Users/pradyunsg/.pyenv/shims/python3.7
3.7.0
:/Users/pradyunsg/.pyenv/versions/3.7.0/bin/python
3.7.0
:/Users/pradyunsg/.pyenv/shims/python
2.7.15
:/usr/local/bin/python
2.7.10
:/usr/bin/python
3.7.0
:/Users/pradyunsg/.pyenv/shims/python
2.7.15
:/Users/pradyunsg/.pyenv/shims/python2
2.7.15
:/usr/local/bin/python2
2.7.15
:/Users/pradyunsg/.pyenv/shims/python2
3.7.0
:/Users/pradyunsg/.pyenv/versions/3.7.0/bin/python3
3.7.0
:/Users/pradyunsg/.pyenv/shims/python3
3.7.0
:/usr/local/bin/python3
3.7.0
:/Users/pradyunsg/.pyenv/shims/python3
PEP 508 Information:
System environment variables:
RBENV_VERSION
TERM_PROGRAM
VIRTUALENVWRAPPER_SCRIPT
PYENV_ROOT
TERM
SHELL
ZPLUG_LOADFILE
TMPDIR
Apple_PubSub_Socket_Render
TERM_PROGRAM_VERSION
FPATH
PYENV_VERSION
DEFAULT_RBENV
ZPLUG_USE_CACHE
USER
ZPLUG_ERROR_LOG
ZPLUG_PROTOCOL
SSH_AUTH_SOCK
PYENV_DIR
__CF_USER_TEXT_ENCODING
VIRTUAL_ENV_DISABLE_PROMPT
_ZPLUG_VERSION
_ZPLUG_PREZTO
PERIOD
_ZPLUG_AWKPATH
VIRTUALENVWRAPPER_PYTHON
PATH
PYENV_VIRTUALENVWRAPPER_PYENV_VERSION
PWD
LANG
PYENV_HOOK_PATH
_ZPLUG_CONFIG_SUBSHELL
XPC_FLAGS
_ZPLUG_OHMYZSH
ZPLUG_BIN
VIRTUALENVWRAPPER_VIRTUALENV
_ZPLUG_URL
RBENV_SHELL
HISTIGNORE
HISTCONTROL
XPC_SERVICE_NAME
GPG_TTY
ZPLUG_CACHE_DIR
SHLVL
PYENV_SHELL
HOME
_VIRTUALENVWRAPPER_API
ZPLUG_THREADS
ZPLUG_REPOS
LOGNAME
VIRTUALENVWRAPPER_VIRTUALENV_CLONE
ZPLUG_FILTER
ZPLUG_HOME
ZPLUG_ROOT
SECURITYSESSIONID
VIRTUALENVWRAPPER_LAZY_SCRIPT
HISTFILE
PYTHONDONTWRITEBYTECODE
PIP_PYTHON_PATH
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/Users/pradyunsg/.pyenv/versions/3.7.0/bin:/usr/local/Cellar/pyenv/1.2.7/libexec:/Users/pradyunsg/.rbenv/shims:/Users/pradyunsg/.pyenv/shims:/usr/local/Cellar/zplug/2.4.2/bin:/usr/local/opt/zplug/bin:/Users/pradyunsg/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/pradyunsg/.rbenv/shims:/Users/pradyunsg/.pyenv/shims:/Applications/Visual Studio Code.app/Contents/Resources/app/bin
SHELL
:/usr/local/bin/zsh
LANG
:en_US.UTF-8
PWD
:/Users/pradyunsg/Projects/csi-18/polling
Contents of
Pipfile
('/Users/pradyunsg/Projects/csi-18/polling/Pipfile'):Contents of
Pipfile.lock
('/Users/pradyunsg/Projects/csi-18/polling/Pipfile.lock'):The text was updated successfully, but these errors were encountered: