Delay in starting stand-alone python scripts

2307
1
09-30-2013 05:48 PM
DustinEdge
Occasional Contributor
Greetings All

I've noticed that running stand-alone python scripts using the IDLE or PyScripter seems to take forever to initialise. It's quite obvious that the import arcpy statement is what's causing it as I tried basic variable math without the import and the script processing is instantaneous!

I'm running 10.1 on a 64bit Win7 and even I tried checking out a licence in the hope that it would speed it up, but that doesn't make a difference.

I included a simple print time before & after the import arcpy line and found that it took minutes to move past the import line.

Now, it could be related to the fact that ArcGIS itself takes many minutes to initialise its licence and start.

This is quite frustrating...especially when I'm writing & testing code...

I've included screenshots of the Python paths....is it something there?

Any thoughts?
Thanks in advance
0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: mzcoyle

Have you tried it on a different computer? Or a complete uninstall and reinstall of ArcGIS and Python? That is definitely not typical behaviour.
0 Kudos