Closed jmontrose closed 7 years ago
Thanks for opening the issue, I get the same thing on my mac.
Are you able to do a PR to fix this?
On Mon, Feb 13, 2017 at 1:35 PM, Jesse Montrose notifications@github.com wrote:
Looks like the gdal swig binary is out of sync with newer python bindings? I'm running this inside the non-gpu docker image. I gather the GNM bits are relatively new, so it makes sense that they'd get hit.
root@f059367028e3:/DeepOSM# python ./bin/create_training_data.py Traceback (most recent call last): File "./bin/create_training_data.py", line 6, in
from src.training_data import download_and_serialize File "/DeepOSM/src/training_data.py", line 10, in from osgeo import gdal File "/usr/local/lib/python2.7/dist-packages/osgeo/gdal.py", line 86, in from gdalconst import * File "/usr/local/lib/python2.7/dist-packages/osgeo/gdalconst.py", line 148, in OF_GNM = _gdalconst.OF_GNM AttributeError: 'module' object has no attribute 'OF_GNM' ā You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/trailbehind/DeepOSM/issues/74, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbzf9vWKHguYxl-XUzWPWm6r_ygLzZTks5rcMyigaJpZM4L_wHu .
I don't know how to fix it yet, still finding my way around. Any guidance? I'm happy to poke around some more!
Fixed just now with dc89093
That fixed it, thanks! š
Looks like the gdal swig binary is out of sync with newer python bindings? I'm running this inside the non-gpu docker image. I gather the GNM bits are relatively new, so it makes sense that they'd get hit.
Also, I've tried going straight to https://hub.docker.com/r/homme/gdal/ and I can't reproduce there.
I'm wondering if one of the apt-get installs brought along an out-of-date gdal binary?
Here are a few more files: