Opened 8 years ago

Closed 8 years ago

#51589 closed defect (fixed)

py-gdal does not match current gdal version

Reported by: ForTozs Owned by: petrrr
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: gnw3
Port: py-gdal

Description

The py-gdal port version (2.0.1) currently does not match the gdal port (2.1.0). I just wanted to let the maintainer know.

Attachments (1)

py27-gdal.diff (1.1 KB) - added by ForTozs 8 years ago.
py27-gdal.diff

Download all attachments as: .zip

Change History (7)

comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: petr@… removed
Owner: changed from macports-tickets@… to petr@…

comment:2 Changed 8 years ago by petrrr

Thanks a let for the headup, I currently have a quite busy period so my attention to MPorts is somewhat reduces.

Does this mismatch actually cause any problems or is it just a update request? Today I will be pretty busy, but will try to have a look at it over the weekend. If you could provide a working patch this would help to accelerate the process.

Changed 8 years ago by ForTozs

Attachment: py27-gdal.diff added

py27-gdal.diff

comment:3 Changed 8 years ago by ForTozs

Here's my patch. Keep in mind I've never done this before, so starting out on a subport may not have been best. It installed and imported in Python; however, I have not been able to test it extensively.

comment:4 in reply to:  description Changed 8 years ago by gnw3

Replying to JDTilley@…:

The py-gdal port version (2.0.1) currently does not match the gdal port (2.1.0). I just wanted to let the maintainer know.

Just to be clear, the version of the python source package doesn't necessarily have to match the version of the the GDAL library, but there should have been a rev bump to force rebuilding of the package, so in this case it is probably better to update py-gdal whenever gdal is updated. Using the binary py35-gdal package, I got the message:

ERROR 1: NUMPY driver was compiled against GDAL 2.0 but current library version is 2.1

The message isn't clear about whose "NUMPY driver" is complaining, but deactivating py35-gdal and doing

pip-3.5 install --user gdal

got rid of the message. I added py-gdal to a local Portfile repository, applied the patch, and installed the 3 subports without issues. Simple examples work for me.

comment:5 Changed 8 years ago by gnw3

Cc: gnwiii@… added

Cc Me!

comment:6 Changed 8 years ago by petrrr

Resolution: fixed
Status: newclosed

Done in r149440.

Note: See TracTickets for help on using tickets.