morotti opened a new issue, #32842:
URL: https://github.com/apache/beam/issues/32842
### What happened?
Hello,
apache-beam cannot be installed on any recent python environment because it
is pinning an old version of dill from 2019.
```
pip install apache-beam>=2.57.0
...
The conflict is caused by:
apache-beam 2.59.0 depends on dill<0.3.2 and >=0.3.1.1
```
I have noticed apache-beam 2.57.0+ is required to allow pyarrow 15+, which
is required by other recent tools/libraries.
It is impossible to install apache-beam on a recent python environments
because all releases of `apache-beam` are pinning `dill==0.3.1.1`
dill 0.3.1.1 was released in September 2019, it's extremely old. the latest
python version at the time was python 3.7.
for reference the dill package did not provide official python wheel
packages before v0.3.4 in June 2021. It needs custom compilation to be used.
https://pypi.org/project/dill/#history
<img width="526" alt="image"
src="https://github.com/user-attachments/assets/925c2efb-42b5-4262-b8d6-cf5554e18fc4">
Could you please remove the pinning of dill?
Correct to `dill>=0.3.1.1` in this file
https://github.com/apache/beam/blame/master/sdks/python/setup.py#L348
The old comment is incorrect by the way. It was an early release 6 years ago
when that comment was written. The serialization has stabilized since then.
```
# Dill doesn't have forwards-compatibility guarantees within minor
# version. Pickles created with a new version of dill may not
unpickle
# using older version of dill. It is best to use the same version
of
# dill on client and server, therefore list of allowed versions is
# very narrow. See:
https://github.com/uqfoundation/dill/issues/341.
'dill>=0.3.1.1,<0.3.2',
```
Regards.
P.S. I am picking priority 1 total loss of function rating for the ticket,
as being unable to install and use apache-beam is a total loss of function.
### Issue Priority
Priority: 1 (data loss / total loss of function)
### Issue Components
- [X] Component: Python SDK
- [ ] Component: Java SDK
- [ ] Component: Go SDK
- [ ] Component: Typescript SDK
- [ ] Component: IO connector
- [ ] Component: Beam YAML
- [ ] Component: Beam examples
- [ ] Component: Beam playground
- [ ] Component: Beam katas
- [ ] Component: Website
- [ ] Component: Infrastructure
- [ ] 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]