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

poetry shell runs "source" on wrong location #5832

Closed
3 tasks done
cemsbr opened this issue Jun 11, 2022 · 2 comments
Closed
3 tasks done

poetry shell runs "source" on wrong location #5832

cemsbr opened this issue Jun 11, 2022 · 2 comments
Labels
kind/bug Something isn't working as expected

Comments

@cemsbr
Copy link

cemsbr commented Jun 11, 2022

  • 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

As you can see below, the activation scripts are in local/bin/, not in bin/:

cmoreira@cuda ~/repos> poetry new myproject
Created package myproject in myproject
cmoreira@cuda ~/repos> cd myproject/
cmoreira@cuda ~/r/myproject> poetry shell
Creating virtualenv myproject-ohGvOqxB-py3.10 in /home/cmoreira/.cache/pypoetry/virtualenvs
Spawning shell within /home/cmoreira/.cache/pypoetry/virtualenvs/myproject-ohGvOqxB-py3.10
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
# The source command below is executed by poetry:
cmoreira@cuda ~/r/myproject> source /home/cmoreira/.cache/pypoetry/virtualenvs/myproject-ohGvOqxB-py3.10/bin/activate.fish
source: Error encountered while sourcing file “/home/cmoreira/.cache/pypoetry/virtualenvs/myproject-ohGvOqxB-py3.10/bin/activate.fish”:
source: No such file or directory
cmoreira@cuda ~/r/myproject [1]> ls /home/cmoreira/.cache/pypoetry/virtualenvs/myproject-ohGvOqxB-py3.10/bin
ls: cannot access '/home/cmoreira/.cache/pypoetry/virtualenvs/myproject-ohGvOqxB-py3.10/bin': No such file or directory
cmoreira@cuda ~/r/myproject [2]> ls /home/cmoreira/.cache/pypoetry/virtualenvs/myproject-ohGvOqxB-py3.10/local/bin
activate      activate.fish  activate.ps1      deactivate.nu  pip3*      pip3.10*  python3@     wheel*   wheel-3.10*
activate.csh  activate.nu    activate_this.py  pip*           pip-3.10*  python@   python3.10@  wheel3*  wheel3.10*
cmoreira@cuda ~/r/myproject>
@cemsbr cemsbr added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jun 11, 2022
@cemsbr
Copy link
Author

cemsbr commented Jun 14, 2022

Caused by pypa/setuptools#3278. Workaround is to set the env var SETUPTOOLS_USE_DISTUTILS=stdlib.

@cemsbr cemsbr closed this as completed Jun 14, 2022
@mkniewallner mkniewallner removed the status/triage This issue needs to be triaged label Jun 16, 2022
Copy link

github-actions bot commented Mar 1, 2024

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 Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants