Hey All,
I have multiple python scripts that work on my SDE. Has been working well for some time.
Just recently I have noticed that if I import arcpy in one python console, it works great, but if I then try to import arcpy again in another window or another script, it just hangs, not throwing any errors.
The only way I can get my machine to run any import arcpy again is to reboot completely.
I am running Python 2.7.12 from C:\Python27\ArcGIS10.3
Anyone else seeing arcpy play up like this?
Cheers
Solved! Go to Solution.
Hi Dan, you are correct on most fronts... since I posted this morning I bit the bullet and upgraded from 10.3 to 10.5, which has indeed fixed my issue.
I was using pycharm, but I then went bare basics by running python.exe, which had the same issue. I narrowed it down to the arcpy module, and it was only on this PC, not my other backup machine, so I thought a repair was in order, and like I said, I did the upgrade instead of a simple repair.
All seems to be working now, but I do thank you for your comments and time in replying to my question.
Can you confirm that you are trying to use more than one IDE? And which ones are they? (I found Pycharm a drain for some reason. Pythonwin is clean as are IPython and Spyder IDEs...
I use several python IDE's all the time and have no issue importing arcpy in any.
Here is what may differ from your situation to see if you can narrow it down
I use
I suspect you are going to say that you are working on a memory and video starved laptop. If it is not a laptop, and using you are using arcmap, you are limited to 4 Gb of ram and everything else that you run will steal any ram above that and when that runs out, it will eat into the 4 Gb, often leaving you memory starved (you may see your hard drive light flashing wildly showing caching to disk during processing.
Anymore details might get some other opinions and things to check on to hopefully rectify your situation.
Hi Dan, you are correct on most fronts... since I posted this morning I bit the bullet and upgraded from 10.3 to 10.5, which has indeed fixed my issue.
I was using pycharm, but I then went bare basics by running python.exe, which had the same issue. I narrowed it down to the arcpy module, and it was only on this PC, not my other backup machine, so I thought a repair was in order, and like I said, I did the upgrade instead of a simple repair.
All seems to be working now, but I do thank you for your comments and time in replying to my question.