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

Cannot Uninstall Poetry on #644

Closed
3 tasks done
gloc-mike opened this issue Nov 19, 2018 · 11 comments
Closed
3 tasks done

Cannot Uninstall Poetry on #644

gloc-mike opened this issue Nov 19, 2018 · 11 comments

Comments

@gloc-mike
Copy link

gloc-mike commented Nov 19, 2018

  • 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: macOS High Sierra 10.13.6
  • Poetry version: 0.12.8
  • Link of a Gist with the contents of your pyproject.toml file: Not relevant to uninstall

Issue

I originally installed Poetry using curl (release 0.12.4). It has successfully been upgraded to 0.12.8. I have decided to uninstall it now because I am suffering similar problems to others where Poetry ignores pyenv local 3.7.1 and picks up the brew installed version of python 2.7.15. Anyway, when I try to uninstall Poetry using python get-poetry.py --uninstall I get /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'get-poetry.py': [Errno 2] No such file or directory.

This is also the problem if I attempt to use a different version of python.

Is there another way to uninstall it?

@sdispater
Copy link
Member

You need to download the get-poetry.py file and execute:python get-poetry.py --uninstall or execute POETRY_UNINSTALL=1 bash -c 'curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python'.

There is also a self:uninstall command in the works but it's not ready yet.

@ekhaydarov
Copy link

ekhaydarov commented Feb 9, 2019

The above command throws the warning of what it will do but doesnt actually do it.

I think its not just poetrys fault but also pyenvs fault. Not a great start to being an alternative to pipenv

Actually having ran those commands on all my python versions poetry still exists somewhere. Where does it live? Why does it continue to pick up the wrong python version?

edit: I had to set pyenv version to system

@bersace
Copy link

bersace commented Apr 25, 2019

@sdispater get-poetry.py state about self:uninstall but there running poetry self:uninstall spit CommandNotFound.

@bersace
Copy link

bersace commented Apr 25, 2019

Note that curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | POETRY_UNINSTALL=1 python is enough.

@GinnerskovRIF
Copy link

GinnerskovRIF commented Jun 27, 2019

@bersace When running your code it only returns :
# We are sorry to see you go!

This will uninstall Poetry.

It will remove the `poetry` command from Poetry's bin directory, located at:

$HOME/.poetry/bin

This will also remove Poetry from your system's PATH.

But it doesn't actually do anything.

edit: Doh. Like ekhaydarov I used the wrong python installation. Works like a charm 👍

@stale
Copy link

stale bot commented Nov 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 13, 2019
@stale
Copy link

stale bot commented Nov 20, 2019

Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.

@stale stale bot closed this as completed Nov 20, 2019
@jaepil-choi
Copy link

Check out this issue if the above instruction is not working.

#2245

@acalvino4
Copy link

I ran this with my the installer with the --uninstall flag via my system python on ubuntu 20 and it did nothing

@vluzrmos
Copy link

vluzrmos commented Aug 9, 2022

curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | POETRY_UNINSTALL=1 python

I removed it manually:

rm -rf ~/.local/share/pypoetry
rm -rf ~/.poetry

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
None yet
Projects
None yet
Development

No branches or pull requests

8 participants