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: No such file or directory #6385

Closed
MaxDragonheart opened this issue Sep 3, 2022 · 3 comments
Closed

Poetry: No such file or directory #6385

MaxDragonheart opened this issue Sep 3, 2022 · 3 comments
Labels
kind/bug Something isn't working as expected

Comments

@MaxDragonheart
Copy link

  • OS version and name: Ubuntu 22.04
  • Poetry version: 1.2.0
  • Link of a Gist with the contents of your pyproject.toml file: pyproject.toml

Issue

Yesterday I've formatted the laptop and I've installaed Ubuntu 22.04; previously I was on Ubuntu 20.04, probably with poetry 1.1.0(I don't rember).
Using directly curl -sSL https://install.python-poetry.org | python3 - I've the same problem of #6371.
So, I've installed Python's stuff: sudo apt install python3-pip python3-venv.
After this step I've cleaned the cache: rm -rf ~/Library/Caches/pypoetry.
Then I've tried to install poetry again: curl -sSL https://install.python-poetry.org | python3 -

Retrieving Poetry metadata

# Welcome to Poetry!

This will download and install the latest version of Poetry,
a dependency and package manager for Python.

It will add the `poetry` command to Poetry's bin directory, located at:

/home/max/.local/bin

You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.

Installing Poetry (1.2.0): Done

Poetry (1.2.0) is installed now. Great!

To get started you need Poetry's bin directory (/home/max/.local/bin) in your `PATH`
environment variable.

Add `export PATH="/home/max/.local/bin:$PATH"` to your shell configuration file.

Alternatively, you can call Poetry explicitly with `/home/max/.local/bin/poetry`.

You can test that everything is set up by executing:

`poetry --version`

When I try to check the version using poetry --version I see this message:

-bash: /usr/bin/poetry: No such file or directory

Searching into my folders I see that poetry is here: /home/max/.local/share/pypoetry/venv/bin/poetry

How I can solve?

@MaxDragonheart MaxDragonheart added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Sep 3, 2022
@MaxDragonheart
Copy link
Author

It is a my misunderstanding. I've forgot to use export PATH="/home/max/.local/bin:$PATH".

@mkniewallner mkniewallner removed the status/triage This issue needs to be triaged label Sep 18, 2022
@srikanth-kumar
Copy link

I had a similar issue which got fixed with the following:

  • source /home/kumar/.cache/pypoetry/virtualenvs/geoips-OIax34WL-py3.9/bin/activate
  • /home/kumar/.local/bin/poetry env use /home/kumar/.cache/pypoetry/virtualenvs/geoips-OIax34WL-py3.9/bin/python

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
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

3 participants