Select to view content in your preferred language

ArcGIS 10 with Python 2.6.5. and Windows 7 64 bit

6658
12
01-03-2011 02:41 AM
OmerSarikaya
Deactivated User
Dear ESRI users,
Last week I installed ArcInfo 10 with the standard Python version that comes with ArcGIS 10 DVD (Python 2.6.5.) I am running these on a Windows 7 64 bit OS. I am trying to add sequential numbers to a long field of a point feature class with a Python script posted by ESRI (Kent Martin). See link below;
http://forums.arcgis.com/threads/2937-auto-sequential-numbers-with-python

During the calculation I am getting the following error in the results window;
Error 000574 = Python 2.5 not installed

Did anyone experience such a problem? And what is the solution to this? I am running the same script on a Windows Vista 32-bit computer (with the same software) and it works perfectly. Any assistance would be appreciated.

Omer Sarikaya
GIS Specialist
Turkish National Research Institue - Earth Sciences Institute
Tags (2)
0 Kudos
12 Replies
OscarIrusta
Deactivated User

I think that if you erase the old python.dll file from system32 and syswow64 folders, (keep a copy of these files to revert the proces just in case) and then install again python from the installation dvd, this could fix your problem.

I took the python.dll file from the other computer were Argis+python were working fine, but if you don't have another computer with arcgis running, try to do what I say in the text above.

References:

-NOT WORKING python.dll ----->creation date 11/april/2012------->size 2918KB------> REMOVED

-WELL WORKING python.dll----->creation date 10/april/2012------->size 2250KB ----->PASTED TO SYSTEM32 FOLDER

0 Kudos
NICOLAPEDDIS
Deactivated User

add these strings

PYTHONHOME=C:\Python\ or C:\Python25\

PYTHONPATH=C:\Python\Lib;C:\Python\DLLs;C:\Python\Lib\lib-tk;C:\Python\Lib\site-packages

at your system environment path and python should work fine

Check your correct python folder the modify these paths above.

0 Kudos
V_StuartFoote
MVP Frequent Contributor

PYTHONHOME=C:\Python\ or C:\Python25\

If setting a PYTHONHOME environment variable, it will need to match the actual installed instance of Python you are attempting to use.  For most, with Python as installed with ArcGIS 10.2 or 10.3 that would be C:\Python27\ArcGIS10.x  (the x version installed).  ArcGIS 9.3 used Python25, ArcGIS 10.0 and 10.1 used Python26.

PYTHONPATH=C:\Python\Lib;C:\Python\DLLs;C:\Python\Lib\lib-tk;C:\Python\Lib\site-packages

With a PYTHONHOME set, the PYTHONPATH environment variable could also be %PYTHONHOME%\Lib;%PYTHONHOME%DLLs;%PYTHONHOME%\Lib\lib-tk;%PYTHONHOME%\Lib\site-packages.  That allows changing from one Python install to another--trivial--just change the PYTHONHOME.

Windows is a strange beast in that the Python installation will place pythonxx.dll into the C:\Windows\System32 on a 32-bit OS--but on a 64-bit OS the 32-bit library goes into the C:\Windows\SysWOW64 folder, not the System32.

And if you elect to install the Esri 64-bit background geoprocessing extension--an additional 64-bit Python is installed, then a 64-bit python27.dll will be installed to System32. The two DLLs have different date/time stamps and sizes, don't mix them.

0 Kudos