gdal-python is only built for Python 2. There's a note that Python 3 should be supported since 1.7, which depending on versions was 4-5 years ago. Please add support for Python 3, which is aimed to be the default soon(ish). Version-Release number of selected component (if applicable): gdal-1.11.2-1.fc21.x86_64 gdal-python-1.11.2-1.fc21.x86_64
Created attachment 1016671 [details] Add Python 3 support Here is a patch that seems to work for Fedora at least: https://github.com/QuLogic/rpmbuild-specs/commit/7d3af0906f07aa6fe6cb873a45ed14952cc6b526 Build: https://copr.fedoraproject.org/coprs/qulogic/SciTools/build/87243/
Any progress? From the patch proposed by Elliott I was able to launch a build on copr today: https://copr.fedoraproject.org/coprs/jujens/gdal/build/105098/ It fails to build on rawhide and on ppc64le (all versions). I am afraid that I won't be of much help to find out why. My SRPM is here: http://jenselme.perso.centrale-marseille.fr/visible/SRPMS/gdal-1.11.2-5.fc22.src.rpm if you are interested.
I started working on it, but it takes quite a bit more work.
Any updates? The patch appears to work on Fedora 23+Rawhide when using the updated 2.0.0 package: https://copr.fedoraproject.org/coprs/qulogic/SciTools/package/gdal/ (The failure is just ppc64le.)
Hi, Any progress on python3 support with gdal 1 or 2?
This message is a reminder that Fedora 21 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 21. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '21'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 21 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Created attachment 1094296 [details] Add Python 3 support You were correct; there was a problem with the dependencies for the Python 3 package where it also depended on the Python 2 interpreter. It was caused by the sample scripts in the documentation portion of the subpackage. I have uploaded a new patch that corrects the shebang on the samples for both the Python 2 and Python 3 subpackages.
Can you please add support for python or tell me what I can do to help? I have been using gdal with python3 from patches from this bugs for months without any problems. Anyway, here is an updated patch for gdal 2.0.2.
Created attachment 1127422 [details] Python 3 support
Created attachment 1127769 [details] Python 3 support The patch you attached is based on the old patch; it does not contain the corrections for dependencies. Attached is a patch with the correct dependencies.
Created attachment 1128375 [details] Python 3 support Fix the typo on NumPy requires.
Patch looks fine from my point of view. I don't see any issue that should be fixed before commit. I have pushed it into rawhide.
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle. Changing version to '24'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase
Thanks!