Exception: `No module named 'virtualenv.activation.nushell'`
See original GitHub issue- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- OS version and name: python:3.9 Docker container (Debian GNU/Linux 11 (bullseye))
- Poetry version: 1.1.8
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/shahinism/c24445184019d5568dac4717dd7253a5
Issue
Hi,
Starting yesterday afternoon, on our Gitlab CI runners, poetry install
and poetry run
commands are failing with the following error:
ModuleNotFoundError
No module named 'virtualenv.activation.nushell'
at <frozen importlib._bootstrap>:984 in _find_and_load_unlocked
I suspect this is related to yesterday’s release of the pypa/virtualenv#2170 release which added nutshell support.
However, the reason I report it here, is that I can’t reproduce it with normal virtualenv creation commands when this version of virtualenv is installed. I tried to resolve this issue by setting SHELL
environment variable to bash
(as expected to inform poetry
about the desired shell), and failed. However, running poetry
commands like:
bash -c poetry install
bash -c poetry run ...
Works with no problem. You can find a more detailed log output on this gist.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:30
- Comments:6 (1 by maintainers)
Top Results From Across the Web
No module named nushell? - venv - Raspberry Pi Forums
Trying to create a venv on a Pi Zero 2 ... pi@raspberrypi:~ $ virtualenv flaskenv ImportError: No module named nushell
Read more >pixel2svgpkg - PyPI
Exception : No module named 'virtualenv.activation.nushell' issue. Run poetry self update to update Poetry (to version 1.1.11). VS Code:.
Read more >virtualenv(1) — Arch manual pages
virtualenv is a tool to create isolated Python environments. Since Python 3.3, a subset of it has been integrated into the standard library...
Read more >Release History — virtualenv 20.17.2.dev2+g6845f6f ...
Change Nushell activation script to be a module meant to be activated as an overlay. ... In POSIX virtual environments, try alternate binary...
Read more >pipenv Documentation - Read the Docs
You no longer need to use pip and virtualenv separately. They work together. ... NOTE: If you install binary packages required for a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I had the same problem, but it was fixed simply updating
poetry
to the latest version with:I was getting the same issue. Rolling back
virtualenv
to the previous version fixed this for me…pip install virtualenv==20.7.2