Repository navigation
Open
Labels
questionFurther information is requested
Description
I'm using Ubuntu 22.04.2 on an AWS server.
virtualenvwrapper was installed the same way I have done for years.
But now when I try to create a virtualenv I get the error:
ubuntu@ip-172-31-36-200:~$ mkvirtualenv bot
created virtual environment CPython3.10.12.final.0-64 in 1039ms
creator CPython3Posix(dest=/home/ubuntu/.virtualenvs/bot, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/ubuntu/.local/share/virtualenv)
added seed packages: pip==24.1, setuptools==70.1.0, wheel==0.43.0
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
virtualenvwrapper.user_scripts creating /home/ubuntu/.virtualenvs/bot/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/ubuntu/.virtualenvs/bot/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/ubuntu/.virtualenvs/bot/bin/preactivate
virtualenvwrapper.user_scripts creating /home/ubuntu/.virtualenvs/bot/bin/postactivate
virtualenvwrapper.user_scripts creating /home/ubuntu/.virtualenvs/bot/bin/get_env_details
ERROR: Environment '/home/ubuntu/.virtualenvs/bot' does not contain an activate script.
Metadata
Metadata
Assignees
Labels
questionFurther information is requested
Activity
dhellmann commentedon Jun 27, 2024
Which version of virtualenv are you using?
quantitative-technologies commentedon Jun 30, 2024
Hello,
This is occurring with 20.26.3:
dhellmann commentedon Jun 30, 2024
Does
/home/ubuntu/.virtualenvs/bot/bin/activateexist and is it a file?quantitative-technologies commentedon Jul 4, 2024
Correct:
dhellmann commentedon Sep 2, 2024
Do you have any other overrides or shell aliases for commands like
lsorfind? What other virtualenvwrapper settings do you have configured?jvernonc commentedon Nov 10, 2025
I received this message in a very different environment: using Windows python from an msys2/ucrt64 shell. The VIRTUALENVWRAPPER_ENV_BIN_DIR was not set correctly because UCRT64 is not considered in the cases for the MSYSTEM variable. Everything seems to work properly now that I added that test.
It would/could be helpful to dump all VIRTUALENVWRAPPER environment variables in cases like this.