Skip to content
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

nushell: poetry shell does not activate virtualenv #7228

Closed
4 tasks done
dead10ck opened this issue Dec 20, 2022 · 2 comments · Fixed by #7919
Closed
4 tasks done

nushell: poetry shell does not activate virtualenv #7228

dead10ck opened this issue Dec 20, 2022 · 2 comments · Fixed by #7919
Labels
area/shell Related to `poetry shell` kind/bug Something isn't working as expected status/confirmed Issue is reproduced and confirmed version/1.3.1

Comments

@dead10ck
Copy link
Contributor

  • Poetry version: Poetry (version 1.3.1)
  • Python version:
    ❯ : poetry debug info
    Poetry
    Version: 1.3.1
    Python:  3.11.0
    
    Virtualenv
    Python:         3.11.0
    Implementation: CPython
    Path:           /home/dead10ck/.cache/pypoetry/virtualenvs/mastodon-ansible-SPRg-5UF-py3.11
    Executable:     /home/dead10ck/.cache/pypoetry/virtualenvs/mastodon-ansible-SPRg-5UF-py3.11/bin/python
    Valid:          True
    
    System
    Platform:   linux
    OS:         posix
    Python:     3.11.0
    Path:       /usr
    Executable: /usr/bin/python3.11
    
  • OS version and name: Fedora Workstation 37
  • pyproject.toml:
    [tool.poetry]
    name = "mastodon-ansible"
    version = "1.0.0"
    description = ""
    authors = ["Skyler Hawthorne"]
    
    [tool.poetry.dependencies]
    python = "^3.10"
    ansible = "^6.1.0"
    boto3 = "^1.24.42"
    
    [tool.poetry.dev-dependencies]
    
    [build-system]
    requires = ["poetry-core>=1.0.0"]
    build-backend = "poetry.core.masonry.api"
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

After doing poetry install, when running poetry shell, a new shell launches, but it does not activate the overlay of the virtualenv. e.g.

mastodon-ansible/ansible on  main [!] is 📦 v1.0.0 via 🐍 v3.11.0 on ☁  strln-prod
❯ : poetry shell
Spawning shell within /home/dead10ck/.cache/pypoetry/virtualenvs/mastodon-ansible-SPRg-5UF-py3.11

mastodon-ansible/ansible on  main [!] is 📦 v1.0.0 via 🐍 v3.11.0 on ☁  strln-prod
❯ : ansible
Error: nu::shell::external_command (link)

  × External command failed
   ╭─[entry #1:1:1]
 1 │ ansible
   · ───┬───
   ·    ╰── did you mean 'ansi'?
   ╰────
  help: No such file or directory (os error 2)
@dead10ck dead10ck added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Dec 20, 2022
@neersighted
Copy link
Member

28d0175 made a bad change and needs a partial revert.

cc @Secrus as you have worked in/reviewed in this area

@neersighted neersighted added status/confirmed Issue is reproduced and confirmed area/shell Related to `poetry shell` version/1.3.1 and removed status/triage This issue needs to be triaged labels Dec 21, 2022
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/shell Related to `poetry shell` kind/bug Something isn't working as expected status/confirmed Issue is reproduced and confirmed version/1.3.1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants