Unable to import Python module in ArcMap

Discussion created by philmorefield on Oct 14, 2010
Latest reply on Jun 25, 2013 by joshjones75
Summary: I can import a Python module in PythonWin or IDLE. I am not able to import the same module using the Python window in ArcMap.

I'm working with a Python module that handles NetCDF files (netCDF4-0.9.win32-py2.6.exe from

The installer for this module is a little different than most. For example instead of dumping all of the files into:


it just dumps them in the "site-packages" directory. Now, when I try to import the netCDF4 module in PythonWin or IDLE, it works fine, because that directory is part of sys.path so Python knows to look there when you import something.

But when I do this using the Python window in ArcGIS, I get an error:

Runtime error <type 'exceptions.ImportError'>: DLL load failed: The specified procedure could not be found.

Can somebody from ESRI please look into this?