-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 1.1.12 : can't install flask-admin #4840
Comments
Hey @rachmadaniHaryono, unfortunately I'm not able to reproduce your issue. Can you please clear poetry's cache by fin swimmer |
still the same result > poetry cache clear --all pypi
Delete 965 entries? (yes/no) [no] yes
> poetry add flask-admin -vvv
Using virtualenv: /home/r3r/.cache/pypoetry/virtualenvs/temp--3d1chu2-py3.9
PyPI: 37 packages found for flask-admin *
Using version ^1.5.8 for Flask-Admin
Updating dependencies
Resolving dependencies...
1: fact: temp is 0.1.0
1: derived: temp
1: fact: temp depends on Flask-Admin (^1.5.8)
1: selecting temp (0.1.0)
1: derived: Flask-Admin (>=1.5.8,<2.0.0)
PyPI: 1 packages found for flask-admin >=1.5.8,<2.0.0
PyPI: Getting info for flask-admin (1.5.8) from PyPI
PyPI: No dependencies found, downloading archives
PyPI: Downloading sdist: Flask-Admin-1.5.8.tar.gz
1: fact: flask-admin (1.5.8) depends on Flask (>=0.7)
1: fact: flask-admin (1.5.8) depends on wtforms (*)
1: selecting flask-admin (1.5.8)
1: derived: wtforms
1: derived: Flask (>=0.7)
PyPI: Getting info for wtforms (3.0.0) from PyPI
1: fact: wtforms (3.0.0) depends on MarkupSafe (*)
1: selecting wtforms (3.0.0)
1: derived: MarkupSafe
PyPI: Getting info for flask (2.0.2) from PyPI
1: fact: flask (2.0.2) depends on Werkzeug (>=2.0)
1: fact: flask (2.0.2) depends on Jinja2 (>=3.0)
1: fact: flask (2.0.2) depends on itsdangerous (>=2.0)
1: fact: flask (2.0.2) depends on click (>=7.1.2)
1: selecting flask (2.0.2)
1: derived: click (>=7.1.2)
1: derived: itsdangerous (>=2.0)
1: derived: Jinja2 (>=3.0)
1: derived: Werkzeug (>=2.0)
PyPI: Getting info for markupsafe (2.0.1) from PyPI
PyPI: No dependencies found, downloading archives
PyPI: Downloading sdist: MarkupSafe-2.0.1.tar.gz
1: selecting markupsafe (2.0.1)
PyPI: Getting info for click (8.0.3) from PyPI
1: fact: click (8.0.3) depends on colorama (*)
1: selecting click (8.0.3)
1: derived: colorama
PyPI: Getting info for itsdangerous (2.0.1) from PyPI
PyPI: No dependencies found, downloading archives
PyPI: Downloading wheel: itsdangerous-2.0.1-py3-none-any.whl
1: selecting itsdangerous (2.0.1)
PyPI: Getting info for jinja2 (3.0.3) from PyPI
1: fact: jinja2 (3.0.3) depends on MarkupSafe (>=2.0)
1: selecting jinja2 (3.0.3)
PyPI: Getting info for werkzeug (2.0.2) from PyPI
1: selecting werkzeug (2.0.2)
PyPI: Getting info for colorama (0.4.4) from PyPI
PyPI: No dependencies found, downloading archives
PyPI: Downloading wheel: colorama-0.4.4-py2.py3-none-any.whl
1: selecting colorama (0.4.4)
1: Version solving took 75.361 seconds.
1: Tried 1 solutions.
Finding the necessary packages for the current system
Package operations: 1 install, 0 updates, 0 removals, 8 skipped
• Removing colorama (0.4.4): Pending...
• Removing colorama (0.4.4): Skipped for the following reason: Not currently installed
• Installing markupsafe (2.0.1): Pending...
• Installing markupsafe (2.0.1): Skipped for the following reason: Already installed
• Installing click (8.0.3): Pending...
• Installing click (8.0.3): Skipped for the following reason: Already installed
• Installing itsdangerous (2.0.1): Pending...
• Installing itsdangerous (2.0.1): Skipped for the following reason: Already installed
• Installing jinja2 (3.0.3): Pending...
• Installing jinja2 (3.0.3): Skipped for the following reason: Already installed
• Installing werkzeug (2.0.2): Pending...
• Installing werkzeug (2.0.2): Skipped for the following reason: Already installed
• Installing flask (2.0.2): Pending...
• Installing flask (2.0.2): Skipped for the following reason: Already installed
• Installing wtforms (3.0.0): Pending...
• Installing wtforms (3.0.0): Skipped for the following reason: Already installed
• Installing flask-admin (1.5.8): Pending...
• Installing flask-admin (1.5.8): Failed
RuntimeError
Invalid hashes (sha256:e7e11ee8bf67ad176dd1224c137e860f5d387357d7331fc650f0a9eef03cdc83) for flask-admin (1.5.8) using archive Flask-Admin-1.5.8.tar.gz. Expected one of sha256:eb06a1f31b98881dee53a55c64faebd1990d6aac38826364b280df0b2679ff74.
at ~/.poetry/lib/poetry/installation/executor.py:627 in _download_link
623│ )
624│ )
625│
626│ if archive_hashes.isdisjoint(hashes):
→ 627│ raise RuntimeError(
628│ "Invalid hashes ({}) for {} using archive {}. Expected one of {}.".format(
629│ ", ".join(sorted(archive_hashes)),
630│ package,
631│ archive_path.name,
Failed to add packages, reverting the pyproject.toml file to its original content. |
Same |
should the title be changed, because it is happen not only on flask-admin ?
|
How did you install poetry? |
curl -sSL https://install.python-poetry.org | python3 - |
Hm, really strange. I still cannot reproduce it. Neither on ArchLinux nor in a fresh Ubuntu 21.10 docker container. :( |
if you install from pip, which hash do you get? wizard and i got different result from poetry e: or i assume you get what poetry expected flask-admin virtualenv |
|
I reinstalled Poetry today, and the |
Make also sure, that you really have only on installation of poetry. As you can install by |
uninstalling > poetry --version
Poetry version 1.1.12
> which poetry
/home/r3r/.poetry/bin/poetry
> curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 - --uninstall
# 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.
> poetry --version
poetry: command not found
> which poetry
poetry not found installing > curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
Retrieving Poetry metadata
This installer is deprecated. Poetry versions installed using this script will not be able to use 'self update' command to upgrade to 1.2.0a1 or later.
# 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/.poetry/bin
This path will then be added to your `PATH` environment variable by
modifying the profile files located at:
$HOME/.profile
$HOME/.zshrc
$HOME/.bash_profile
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing version: 1.1.12
- Downloading poetry-1.1.12-linux.tar.gz (66.70MB)
Poetry (1.1.12) is installed now. Great!
To get started you need Poetry's bin directory ($HOME/.poetry/bin) in your `PATH`
environment variable. Next time you log in this will be done
automatically.
To configure your current shell run `source $HOME/.poetry/env`
> poetry --version
Poetry version 1.1.12
> which poetry
/home/r3r/.poetry/bin/poetry installing flask-admin > poetry add flask-admin
Using version ^1.5.8 for Flask-Admin
Updating dependencies
Resolving dependencies... (0.2s)
Package operations: 1 install, 0 updates, 0 removals
• Installing flask-admin (1.5.8): Failed
RuntimeError
Invalid hashes (sha256:e7e11ee8bf67ad176dd1224c137e860f5d387357d7331fc650f0a9eef03cdc83) for flask-admin (1.5.8) using archive Flask-Admin-1.5.8.tar.gz. Expected one of sha256:eb06a1f31b98881dee53a55c64faebd1990d6aac38826364b280df0b2679ff74.
at ~/.poetry/lib/poetry/installation/executor.py:627 in _download_link
623│ )
624│ )
625│
626│ if archive_hashes.isdisjoint(hashes):
→ 627│ raise RuntimeError(
628│ "Invalid hashes ({}) for {} using archive {}. Expected one of {}.".format(
629│ ", ".join(sorted(archive_hashes)),
630│ package,
631│ archive_path.name,
Failed to add packages, reverting the pyproject.toml file to its original content. still the same result |
installing poetry with pipx > curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 - --uninstall
# 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.
> pipx install poetry
installed package poetry 1.1.12, Python 3.10.0
These apps are now globally available
- poetry
done! ✨ 🌟 ✨
> poetry --version
Poetry version 1.1.12
> poetry add flask-admin
Creating virtualenv temp--3d1chu2-py3.10 in /home/r3r/.cache/pypoetry/virtualenvs
Using version ^1.5.8 for Flask-Admin
Updating dependencies
Resolving dependencies... (0.3s)
Package operations: 8 installs, 0 updates, 0 removals
• Installing markupsafe (2.0.1)
• Installing click (8.0.3)
• Installing itsdangerous (2.0.1)
• Installing jinja2 (3.0.3)
• Installing werkzeug (2.0.2)
• Installing flask (2.0.2)
• Installing wtforms (3.0.0)
• Installing flask-admin (1.5.8) other info > python --version
Python 3.9.7
> pipx --version
0.16.4
> which python
/home/r3r/.pyenv/shims/python
> which pipx
/home/r3r/.local/bin/pipx i notice pipx install different python in comparison to my default python |
this issue is fixed with poetry 1.1.13 |
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. |
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:ubuntu 21.10
Poetry version: 1.1.12
Link of a Gist with the contents of your pyproject.toml file:
pyproject.toml
Issue
how to reproduce
temp
pyproject.toml
poetry add flask-admin
it will raise following error
if i run it with -vvv flag
i tried downloading flask-admin and checking the actual hash
current poetry.lock content
poetry.lock
this issue previously have other blocking issue #4701 (comment)
e:
similar issue:
The text was updated successfully, but these errors were encountered: