You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the next Fedora cycle all packaged python packages are currently being tested against a preliminary version of python 3.10.0.
The build is performed in a mock sandbox environment. During this testing it was found that the pyproj package release 3.1.0 fails to build in this environment.
The cause has been tracked down to the pyproj/enum.py module. This one sub-classes enum.IntFlag to create GeodIntermediateFlag, and it seems it is no longer allowed to define this sub-class using a non-consecutive range of bits.
This is an intended change in python 3.10, and was introduced with this commit: python/cpython@7aaeb2a but it seems not well documented yet.
If you wish I can provide a pull request that fixes the issue, but as stated in the bugzilla bug report, this seems a backwards incompatible change in Python, so it could as well be reverted before he final python 3.10.0 release. So maybe it is better to wait for that one to happen before modifying the pyproj code here on github.
The text was updated successfully, but these errors were encountered:
Not myself, but my fedora colleague Miro Hrončok did. See his bug-report: https://bugs.python.org/issue44242
As I understand from the discussion in this topic, the behavior change was reverted again.
So if we are lucky no change is needed in pyproj afterall.
Problem description
For the next Fedora cycle all packaged python packages are currently being tested against a preliminary version of python 3.10.0.
The build is performed in a mock sandbox environment. During this testing it was found that the pyproj package release 3.1.0 fails to build in this environment.
For details of the reported crash see: https://bugzilla.redhat.com/show_bug.cgi?id=1964955
The cause has been tracked down to the pyproj/enum.py module. This one sub-classes enum.IntFlag to create GeodIntermediateFlag, and it seems it is no longer allowed to define this sub-class using a non-consecutive range of bits.
This is an intended change in python 3.10, and was introduced with this commit:
python/cpython@7aaeb2a but it seems not well documented yet.
A possible solution is to define additional constants that fill the gap between the 3 defined groups of bits in this class.
This patch has been submitted now for Fedora to let the pyproj build pass again. For details see: https://src.fedoraproject.org/rpms/pyproj/blob/rawhide/f/pyproj-enums.patch
If you wish I can provide a pull request that fixes the issue, but as stated in the bugzilla bug report, this seems a backwards incompatible change in Python, so it could as well be reverted before he final python 3.10.0 release. So maybe it is better to wait for that one to happen before modifying the pyproj code here on github.
The text was updated successfully, but these errors were encountered: