6👍
You just need to re-install poetry
# install
curl -sSL https://install.python-poetry.org | python3 -
# update
poetry self update
# uninstall
curl -sSL https://install.python-poetry.org | python3 - --uninstall
5👍
This command fixed it for me (OSX):
rm -rf ~/.poetry
I think it gets your local files in a muddle!
Be careful running this in your user folder!
- What is the usage of `FilteredRelation()` objects in Django ORM (Django 2.X)?
- Consumer Connection error with django and celery+rabbitmq?
2👍
To add to this, I am using zsh
on WSL and I had to:
Uninstall poetry
curl -sSL https://install.python-poetry.org | python3 - --uninstall
Remove poetry executables (I used which poetry
to find these)
rm /home/<username>/.local/bin/poetry
sudo rm /usr/bin/poetry
Reinstall poetry
curl -sSL https://install.python-poetry.org | python3 -
Export PATH to shell config
# Open .zshrc
nano ~/.zshrc
# Add 'export PATH="/home/tristannew/.local/bin:$PATH"' to file
# Reload zsh
source ~/.zshrc
Finally, check poetry version
poetry --version
This worked for me so I am posting it here in case the other people require the same solution.
- Adding custom fields to auth_user table in Django
- Django: How to call management custom command execution from admin interface?
- Monolithic or microservice concept
- Deploying existing Django app on Heroku
0👍
I needed a combination of the existing answers to get it working
# uninstall poetry
curl -sSL https://install.python-poetry.org | python3 - --uninstall
# remove the existing poetry cache(?) from your home directory
rm -rf /home/<username>/.poetry
# reinstall poetry
curl -sSL https://install.python-poetry.org | python3 -
See this Github issue for more info
-2👍
poetry self update 1.0.10
then poetry install
.
As mentioned here. Two separate errors, both caused by poetry version.
- Django admin search: how to override the default handler?
- Starting Django with docker unexpected character
Source:stackexchange.com