-
-
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
ImportError: No module named basecommand #3218
Comments
Accidentally stumbled on this, but I have had similar troubles lately! |
@skytect @dennisverspuij Thanks for reporting, can you verify the issue against #3217 ? |
@frostming I am not sure whether that is relevant, it is the distutils package bundled in the standard library with Python, that behaves differently according to PYTHON_INSTALL_LAYOUT. I don't think pipenv can do anything about it. Imho the layout does not really matter as long as it is used consistently, if not these troubles arise. Imho it should never be set through a global shell init script, because these are not loaded when run through cron, wsgi, etcetera, causing problems when during those invocations environments are mutated. |
So it is very bad that AMI linux sets it, if you pip install something before/after |
I deleted the script in question before the current release, and there is no code in pipenv that operates this way anymore. Also, There is a whole lot of text here talking about a lot of environment variables and distro specific paths which as far as I can tell have nothing to do with pipenv, for example I have no clue what the various environment variables you describe do and I don't really have the bandwidth to spend learning that. If this isn't fixed in the current release let me know and we can try to simplify the conversation and distill it down to "the problem" and "the solution" in a new issue sorry for the annoyance, for now the solution is to upgrade |
I had a problem importing json, I have solved it just deleting virtual env folder from |
Issue description
Whenever I type in any pipenv command including
pipenv
itself, I encounter an import error.Expected result
pipenv
to return a list of pipenv commandsActual result
Steps to replicate
OS: Amazon Linux 2 on an ec2 instance
pipenv version:
Successfully installed pipenv-2018.10.13
(I can't runpipenv -V
)pip -V
:pip 18.1 from /home/ec2-user/.local/lib/python3.7/site-packages/pip (python 3.7)
I tried both in an empty directory and one with the following pipfile:
I am unable to run
pipenv --support
as it also returnsImportError: No module named basecommand
The text was updated successfully, but these errors were encountered: