Error message when converting DWG to GDB

1675
4
07-13-2012 11:37 AM
RobertOravec
New Contributor
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.
Tags (2)
0 Kudos
4 Replies
SolomonPulapkura
Occasional Contributor III
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)
0 Kudos
RobertOravec
New Contributor
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)


Yes, they're all there, and I am using arc 10, sorry for neglecting to mention that.
0 Kudos
AnantThunuguntla
New Contributor III
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.
0 Kudos
RobertOravec
New Contributor
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.

I don't even have the Desktop 10.0 directory.  Would I have to install python from scratch?
0 Kudos