This content has been marked as final. Show 4 replies
The problem is that a separate python 2.6 is installed in the arcmap directory. You need to go into a file and change or add a path to make it work. Im not sure since I am still at 9.3.1 but I know its come up a few times so if you do a search you should be able to find a solution.
You might try to add the path to the import prior to import. I have had funky stuff with python and arcgis.
My new rule is to install python 2.6 prior to install any arcgis stuff. I think 2.6 is the flavor for arcgis 10 and you will also need numpy module installed as well.
Re: the two replies so far...
I installed Python and numpy before ArcGIS. So ArcGIS is using my Python installation instead of the other way around. The path to all the netCDF4 stuff was already in sys.path. Re-appending it did not fix the problem.
I'm not sure the netCDF4 installer is totally stable, so I'm checking into some stuff there that might resolve this. But it still seems very odd that the module imports correctly outside of the ArcGIS Python window.
Did you ever figure out what your problem was? I am having a very similar problem, but I have no extra packages. I am simply trying to import the arcpy package into the Python window in ArcMap or ArcCatalog , or run any processes that utilize numpy (Raster Calculator for instance), and I will get the error "ImportError: No module named numpy". I can run/import these same processes/packages in IDLE and they work fine. I'm not sure what the problem is.
Thanks in advance for any help.