You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "jhoareau (via GitHub)" <gi...@apache.org> on 2023/02/06 10:29:57 UTC

[GitHub] [beam] jhoareau opened a new issue, #25328: [Bug]: Overly restrictive Protobuf version in PyPI repository

jhoareau opened a new issue, #25328:
URL: https://github.com/apache/beam/issues/25328

   ### What happened?
   
   When installing Apache Beam with Poetry, if any other package requires some version of protobuf, for example 3.20.0, then the dependency resolution fails.
   
   This is because Poetry uses the PyPI definition for its dependency resolution, this definition can be found at https://pypi.org/pypi/apache-beam/2.44.0/json for the current version.
   
   The issue appeared in Beam 2.43 (it worked well with 2.42), and in particular this block of code:
   https://github.com/apache/beam/blob/aee2c844ad8f583dc161219f4ea0988d5a8860e9/sdks/python/setup.py#L183
   
   We can see, in this JSON, that the requirement is the tight bound for the quite particular case of Python 3.10 + macOS, rather than the wide general requirement `<4`. Since I don't think the PyPI repository definition supports dependency setting per environment, it would make more sense to have the wide requirement than the narrow requirement in PyPI, and let the setup script take care of failing installation if the proper protobuf is not installed.
   
   See discussion in #23982 @tvalentyn @AnandInguva
   
   ### Issue Priority
   
   Priority: 2 (default / most bugs should be filed as P2)
   
   ### Issue Components
   
   - [X] Component: Python SDK
   - [ ] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] tvalentyn closed issue #25328: [Bug]: Overly restrictive Protobuf version in PyPI repository

Posted by "tvalentyn (via GitHub)" <gi...@apache.org>.
tvalentyn closed issue #25328: [Bug]: Overly restrictive Protobuf version in PyPI repository
URL: https://github.com/apache/beam/issues/25328


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] AnandInguva commented on issue #25328: [Bug]: Overly restrictive Protobuf version in PyPI repository

Posted by "AnandInguva (via GitHub)" <gi...@apache.org>.
AnandInguva commented on issue #25328:
URL: https://github.com/apache/beam/issues/25328#issuecomment-1423450230

   Hi, I am working on updating protobuf. I will tackle this issue as part of that effort(early next week). 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org