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

Protobuf Issue #22

Closed
nmaas87 opened this issue Mar 20, 2023 · 2 comments
Closed

Protobuf Issue #22

nmaas87 opened this issue Mar 20, 2023 · 2 comments

Comments

@nmaas87
Copy link

nmaas87 commented Mar 20, 2023

Dear all,
I think there is an issue with the requirements for python-yamcs-client:

"protobuf>=3.8,<4",

The current protobuf history cannot satisfy these requirements, there is no version "protobuf>=3.8,<4" - only 3.20.3 and then some 4.0.0rc versions and up...

https://pypi.org/project/protobuf/#history

@fqqb
Copy link
Member

fqqb commented Mar 20, 2023

but 3.20.3 matches that specification doesn't it?
are you getting a specific error? Maybe some conflict with another dependency?

@nmaas87
Copy link
Author

nmaas87 commented Mar 21, 2023

Yeah, pip3 gave me following error, while trying to install if offline on another machine:

Could not find a version that satisfies the requirement protobuf<4,>=3.8 (from yamcs_client->-r requirements.txt (line 1)) (from versions: )
No matching distribution found for protobuf<4,>=3.8 (from yamcs_client->-r requirements.txt (line 1))

You're right, I mixed up the versioning schema, so it turned out that the machine I downloaded the pip packages with was a Debian 11 with python 3.9 - and the one I tried to play the packages back was a Debian 10 with python 3.7 - so what happend was that it had downloaded the protobuf-3.20.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl wheel which did not install on the offline machine - and hence the error came up.

I got around it by creating a own download for the protobuf repo and forced it to use python 3.7.x as target system:

requirements_protobuf.txt
protobuf==3.20.3

pip3 download --python-version "37" --only-binary=:all: -r requirements_protobuf.txt

Then i offline installed protobuf before all the rest

pip3 install --no-index --find-links ./ -r requirements_protobuf.txt

... and with that the error was gone and the yamcs python api successfully installed.

Sorry for the confusion! :)

@nmaas87 nmaas87 closed this as completed Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants