question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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).

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:closed
  • Created 2 years ago
  • Reactions:30
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

38reactions
garciparedescommented, Sep 22, 2021

I had the same problem, but it was fixed simply updating poetry to the latest version with:

poetry self update
15reactions
linzwattcommented, Sep 22, 2021

I was getting the same issue. Rolling back virtualenv to the previous version fixed this for me… pip install virtualenv==20.7.2

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found