Arcmap Crashes when I try to use scripting window.

403
2
06-01-2011 09:19 AM
SeanCook
New Contributor
This began out of nowhere...open arcmap, and regardless of what I try, the minute I touch any key on the keyboard with the cursor in the scripting window, arc crashes and creates an error report.

Any help would be very appreciated, as my work has been brought to almost a standstill. I have tried restarting and replacing the Python26 folder with a copy from a working computer. Any other ideas?
0 Kudos
2 Replies
KimOllivier
Occasional Contributor III
It is because the paths to Python26 are not set for Arcpy.

Even if you reinstall Python26 you have to make sure there is a Desktop10.pth file in
c:/Python26/Lib/site-packages

containing the paths to the package
C:\Program Files (x86)\ArcGIS\Desktop10.0\bin
C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy
C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox\Scripts


Also you might need to reinstall Numpy which resides in site-packages as a folder

Note that if you use the ArcGIS installer it will install another copy of python in
C:/Python26/Desktop10.0/Lib/....

so if you cleanup and reinstall Python yourself the configuration will be broken.

But on the other hand if you use the Esri installer, the Python install will be broken, you will not be able to open the Python help and other tools will fail.
0 Kudos
sobarim-amin
New Contributor
I have similar problem, but it crashes whenever I try to edit or create a new model.
Please advice

Regards,
Sobari
0 Kudos