Go to C:\Python26\ArcGIS10.0\Lib\site-packages
Open Desktop10.pth with Notepad
Check if you have the following paths in there
C:\Program Files\ArcGIS\Desktop10.0\bin
C:\Program Files\ArcGIS\Desktop10.0\arcpy
C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Scripts
(assuming you are using ArcGIS 10)
Hi,
I'm attempting to run the CAD to Geodatabase tool (ArcCatalog -> ArcToolbox -> Conversion Tools -> to Geodatabase -> Cad to Geodatabase).
Whenever i try i get this error message:
Running script FeatureClassToGeodatabase...
<type 'exceptions.ImportError'>: No module named os
Failed to execute (FeatureClassToGeodatabase).
Failed at Fri Jul 13 14:24:19 2012 (Elapsed Time: 0.00 seconds)
Not sure what this means exactly. Tried Google but all I found was that it may have to do with my Python paths?
Any help would be appreciated.
Hi Robert,
I copied this from another forum post:This fault happens after installing a service pack for ArcGIS.
There is no need to set the PYTHONPATH variable
1. Save the numpy folder in c:\python26\Desktop10.0\Lib\site-packages, or reinstall it again later.
save the file from c:\python26\Desktop10.0\Lib\site-packages\Desktop10.pth
2. Remove Python and re-install python 2.6.6 in the standard location c:\python26
3. Reinstall Pythonwin with pywin32-216.win32-py2.6.exe
4. Copy the path file remaining that points to the arcpy module:
from
c:\python26\Desktop10.0\Lib\site-packages\Desktop10.pth
to
c:\python26\Lib\site-packages\Desktop10.pth
5. Reinstall numpy or move the numpy folder to c:\python26\Desktop10.0\Lib\site-packages
6. You can then delete the directory c:\python26\Desktop10.0 completely so that you only have one installation.
Test to see if Pythonwin opens with the correct version. Try opening the Python Help.
Test a script tool from ArcGIS using the os module.