Opened 16 years ago

Closed 16 years ago

#9008 closed (fixed)

'lib_name' is not defined error on Windows when `GDAL_LIBRARY_PATH` is set

Reported by: kitlycol@… Owned by: jbronn
Component: GIS Version: 1.0
Severity: Keywords: lib_name GDAL_LIBRARY_PATH gdal gis
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by jbronn)

43 if os.name == 'nt':
44    from ctypes import WinDLL
45    lwingdal = WinDLL(lib_name)


'lib_name' is not defined

Attachments (1)

gdal_win32_lib_path.diff (420 bytes ) - added by jbronn 16 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by anonymous, 16 years ago

43 if os.name == 'nt':
44 from ctypes import WinDLL
45 lwingdal = WinDLL(lib_name)

'lib_name' is not defined

comment:2 by jbronn, 16 years ago

Description: modified (diff)
Keywords: GDAL_LIBRARY_PATH gdal gis added
Owner: changed from nobody to jbronn
Summary: libgdal/__init__.py name 'lib_name' is not defined on windows'lib_name' is not defined error on Windows when `GDAL_LIBRARY_PATH` is set
Triage Stage: UnreviewedAccepted

by jbronn, 16 years ago

Attachment: gdal_win32_lib_path.diff added

comment:3 by jbronn, 16 years ago

I'll commit that patch later; it should fix the problem. Another workaround is to not use GDAL_LIBRARY_PATH -- just add the GDAL directory to your Windows PATH.

comment:4 by terry, 16 years ago

It seems both GEOS_LIBRARY_PATH, GDAL_LIBRARY_PATH variable not use on windows. just add GEOS, GDAl directory to Windows PATH. that worked well

comment:5 by jbronn, 16 years ago

Resolution: fixed
Status: newclosed

(In [9036]) Fixed #9008 -- now use the correct library path for loading the WinDLL instance of the GDAL library.

Note: See TracTickets for help on using tickets.
Back to Top