2

I install FWTools in Windows7 and run FWTools Shell,after type gdal2tiles,but give error 'no module named osgeo' . enter image description here

also i installed OSGEO4W ,but another error to happen

enter image description here

4

It's simply because FWTools is so old that it does not use osgeo Python namespace as illustrated at the bottom of the GDAL Python section about import

You should install GDAL via OSGEO4W or GIS internal instead of using the outdated FWTools

  • Did you try manually Python by doing python, then in the command import osgeo? You need to install gdal python executables with the OSGEOW4 and also need to run the command not via the classic DOS command but through the "OSGEO4W Shell" – ThomasG77 Jan 13 '16 at 7:48
  • MR Thomas,OSGeo4W also give gdal error. – mhkyazd Jan 13 '16 at 7:50
  • And how did you proceed to install GDAL in OSGEO4W? How did you run gdal2tiles? Can't help without more info – ThomasG77 Jan 13 '16 at 7:55
  • I use osgeo4w-setup-x86.exe for install osgeo4w,also checked gdal and gdal_python,run OSGeo4W Shell and write gdal2tiles,but error ImportError: No module named gdal – mhkyazd Jan 13 '16 at 8:07
  • Did you go in "Advanced install" and installed the "gdal-python"? If not, run again the osgeo4w-setup-x86.exe and do it – ThomasG77 Jan 13 '16 at 8:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.