mizmay

Newbie: Runtime error when importing arcpy

Discussion created by mizmay on Jul 6, 2011
Latest reply on Jul 6, 2011 by Dan_Patterson
Hi all,

Running ArcGIS 10.0, ArcView license, Windows 7

I am taking an initial stab at using arcpy in ArcGIS 10.0... but so far I can't get out of the gates. when I type "import arcpy" at the command line of the Python window, I get:

Runtime error <type 'exceptions.TypeError'>: cannot create weak reference to 'classobj' object

Other possibly relevant info:
- I installed Python 2.7.2 recently, completely separate from the 2.6 installation, to practice using Python outside of ArcGIS. I thought the paths might be messed up but none of my machine's environment variables make reference to either installation (under System Properties).
- arcpy exists at C:\Program Files\ArcGIS\Desktop10.0\arcpy

Any help appreciated.
S.

Outcomes