-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
pipenv install fails due to packages not matching hashes from requirements file #5466
Comments
@rolandjitsu You have both of the hashes from pypip, there are only two packages, but the thing I wonder about, why is it searching also in |
@rolandjitsu Actually going to pipwheels.org answered my first question, so I think the issue is that you need to set your primary source in the pipfile as:
Perhaps make this the default section and just remove pypi altogether? You would then need to relock. |
Just tried your suggestion and got:
Using
Then removed the lock file, did a I've spent a few days thinking this is an issue with the way I install pyenv + pipenv and tried different ways to do it 🤦 Do you have a document or something with recommendations on how to install pyenv + pipenv on Linux (debian) while the system python is also installed? E.g, do I use a system pip to install pipenv or should I first activate a pyenv python version and install pipenv there? |
@rolandjitsu The StopIteration thing and having to remove the lock file first was a different bug #5456 which I did a fix for two nights ago -- it will be in the next release then the lock file would have updated normally.
Must be something on Raspbian telling pip to use piwheeels.org as an extra source? I noticed it was trying to install the binaries from piwheels.org which are wheel files intended for the arm processor of Raspberry Pi.
I think you would install pipenv with
|
Ok, got it. I think the workaround is also fine as long as it works. But it's good to know it's been fixed!
It could be, yes. The suggestion you provided is good enough. Could be worth mentioning somewhere in the troubleshooting guide if others encounter the same issue.
Ok. I'll use the same approach then. Thanks for sharing. I guess the issue can be closed now. Thanks for the quick response and help! |
Dear @rolandjitsu , I face the same issue on a Raspberry pi 4B+ v1.4 with Raspberry Pi OS Lite 64-bits (Release date: September 22nd 2022). My Pipfile project file is:
On the piwheels.org homepage state that they use the file The commands:
More info about my system:
|
@MefhigosetH thanks for the suggestion. I'll give that a try as well. |
@matteius I am now facing a different issue when installing pipenv using the system python but trying to init a pipenv env using a pyenv python:
$ pipenv --supportPipenv version: Pipenv location: Python location: OS Name: User pip version: user Python installations found:
PEP 508 Information:
System environment variables:
Pipenv–specific environment variables: Debug–specific environment variables:
Contents of [[source]]
url = "https://www.piwheels.org/simple"
verify_ssl = true
name = "pywheels"
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
robotframework = "5.0.x"
robotframework-requests = "0.9.x"
[requires]
python_version = "3.10"
Removing system wide pipenv and installing in the pyenv context seems to work: $ pipenv --supportPipenv version: Pipenv location: Python location: OS Name: User pip version: user Python installations found:
PEP 508 Information:
System environment variables:
Pipenv–specific environment variables:
Debug–specific environment variables:
Contents of [[source]]
url = "https://www.piwheels.org/simple"
verify_ssl = true
name = "pywheels"
[dev-packages]
robotframework = "5.0.x"
robotframework-requests = "0.9.x"
[requires]
python_version = "3.10"
Contents of {
"_meta": {
"hash": {
"sha256": "12be8d857ca64115ab9e634dad9259d39b73fcad2a0e9de5565069ff63582680"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.10"
},
"sources": [
{
"name": "pywheels",
"url": "https://www.piwheels.org/simple",
"verify_ssl": true
}
]
},
"default": {},
"develop": {
"certifi": {
"hashes": [
"sha256:70fa284520b2a9be47502025d8a755e6bdb06327baaa9097fe59759c236ade4b"
],
"markers": "python_version >= '3.6'",
"version": "==2022.9.24"
},
"charset-normalizer": {
"hashes": [
"sha256:9ff357cacd4163b3a6aa343bc166533cd0cf173323b885b7ea2094a7fa1cec24"
],
"markers": "python_full_version >= '3.6.0'",
"version": "==2.1.1"
},
"idna": {
"hashes": [
"sha256:bcac1132a4eadea8321490704e2349b752e29c6ec2f1c27d372010e76ebd3fa1"
],
"markers": "python_version >= '3.5'",
"version": "==3.4"
},
"requests": {
"hashes": [
"sha256:f598c2ccf6521aa5a214a537caf4aa57d359d0a9040a62f9e23f1d973512c0b8"
],
"markers": "python_version >= '3.7' and python_version < '4'",
"version": "==2.28.1"
},
"robotframework": {
"hashes": [
"sha256:f44f89d72fc95c1e0a9bb454cc04589ecbdc9bb561a7629344e5eecf789f7e35"
],
"index": "pywheels",
"version": "==6.0.1"
},
"robotframework-requests": {
"hashes": [
"sha256:fa839318b298da3468ca3575f2ed72efd61cb780136b9fa1a24ddcb7eb66caad"
],
"index": "pywheels",
"version": "==0.9.4"
},
"urllib3": {
"hashes": [
"sha256:45b4bf2512fa6778e7c89c307a03af193251de4b6ad6ac2705fed3fb19b2ade1"
],
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' and python_version < '4'",
"version": "==1.26.12"
}
}
}
|
@rolandjitsu Sorry just saw this -- I don't think that is the right way to pass |
Hello from 2024, this solved my problem :D |
Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Pipenv.
Check the diagnose documentation for common issues before posting! We may close your issue if it is very similar to one of them. Please be considerate, or be on your way.
Make sure to mention your debugging experience if the documented solution failed.
Issue description
Running
pipenv install
on a Raspberry Pi results in the following error:Expected result
I should be able to install packages using pipenv.
Actual result
Steps to replicate
I've installed pipenv using the following steps:
pipenv shell
pipenv install --dev
$ pipenv --support
Pipenv version:
'2022.11.5'
Pipenv location:
'/home/pi/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv'
Python location:
'/home/pi/.local/pipx/venvs/pipenv/bin/python'
OS Name:
'posix'
User pip version:
'22.3'
user Python installations found:
3.10.8
:/home/pi/.local/share/virtualenvs/test-pipenv-VvuyqbGz/bin/python
3.10.8
:/home/pi/.local/share/virtualenvs/test-pipenv-VvuyqbGz/bin/python3
3.10.8
:/home/pi/.local/share/virtualenvs/test-pipenv-VvuyqbGz/bin/python
3.10.8
:/home/pi/.local/share/virtualenvs/test-pipenv-VvuyqbGz/bin/python3
3.10.8
:/home/pi/.pyenv/versions/3.10.8/bin/python
3.7.3
:/usr/bin/python3.7m
3.7.3
:/usr/bin/python3
3.7.3
:/usr/bin/python3.7
3.7.3
:/bin/python3.7m
3.7.3
:/bin/python3
3.7.3
:/bin/python3.7
2.7.16
:/usr/bin/python2.7
2.7.16
:/usr/bin/python2
2.7.16
:/usr/bin/python
2.7.16
:/bin/python2.7
2.7.16
:/bin/python2
2.7.16
:/bin/python
2.7.13
:/usr/bin/pypy
2.7.13
:/bin/pypy
PEP 508 Information:
System environment variables:
SHELL
PYENV_SHELL
PIPENV_ACTIVE
NO_AT_BRIDGE
GOBIN
PWD
LOGNAME
XDG_SESSION_TYPE
PIP_PYTHON_PATH
HOME
LANG
LS_COLORS
VIRTUAL_ENV
GOROOT
PYTHONFINDER_IGNORE_UNSUPPORTED
XDG_SESSION_CLASS
TERM
USER
PIP_DISABLE_PIP_VERSION_CHECK
SHLVL
XDG_SESSION_ID
PYTHONDONTWRITEBYTECODE
LC_CTYPE
XDG_RUNTIME_DIR
PS1
LC_ALL
PATH
DBUS_SESSION_BUS_ADDRESS
MAIL
SSH_TTY
OLDPWD
GOPATH
TEXTDOMAIN
_
Pipenv–specific environment variables:
PIPENV_ACTIVE
:1
Debug–specific environment variables:
PATH
:/home/pi/.local/share/virtualenvs/test-pipenv-VvuyqbGz/bin:/home/pi/.local/bin:/home/pi/bin:/home/pi/.pyenv/shims:/home/pi/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/usr/local/go/bin:/home/pi/go/bin
SHELL
:/bin/bash
LANG
:en_GB.UTF-8
PWD
:/home/pi/test-pipenv
VIRTUAL_ENV
:/home/pi/.local/share/virtualenvs/test-pipenv-VvuyqbGz
Contents of
Pipfile
('/home/pi/test-pipenv/Pipfile'):Contents of
Pipfile.lock
('/home/pi/test-pipenv/Pipfile.lock'):The text was updated successfully, but these errors were encountered: