POST
|
The issue seems to have fixed itself and how it did is unknown. Thanks everyone for the help!
... View more
02-12-2018
12:50 PM
|
0
|
1
|
839
|
POST
|
Oddly enough, this does indeed work. However importing arcpy via my IDE (using a virtual environment with a .pth file), or even the arcgis python install python executable it will not work... Nothing at all has been touched in my python install. This is my zzArcGIS.pth file which has also not been modified at all and matches up with all directories listed. # zzArcGIS.pth
# Path to ArcGIS arcpy modules
# Place in folder ...\<path to your virtual environment>\lib\site-packages\
C:\\Windows\\SYSTEM32\\python27.zip
C:\\Python27\\ArcGIS10.4\\DLLs
C:\\Python27\\ArcGIS10.4\\lib
C:\\Python27\\ArcGIS10.4\\lib\\plat-win
C:\\Python27\\ArcGIS10.4\\lib\\lib-tk
C:\\Python27\\ArcGIS10.4
C:\\Python27\\ArcGIS10.4\\lib\\site-packages
C:\\Program Files (x86)\\ArcGIS\\Desktop10.4\\bin
C:\\Program Files (x86)\\ArcGIS\\Desktop10.4\\ArcPy
C:\\Program Files (x86)\\ArcGIS\\Desktop10.4\\ArcToolBox\\Scripts
... View more
02-09-2018
02:28 PM
|
0
|
1
|
839
|
POST
|
Yeah, I read your thread earlier in search of a solution to the issue. AFAIK, my license is a single use license for ArcGIS for Desktop Basic version 10.4 and is a permanent license (check the below image) It's just odd to me because it had been working all day and as I said all of the last month and just randomly stopped. I just removed a new import I had previously been using for arcpy.mapping even though that import was never even reached in my code, and the import for arcpy itself continues to hang.
... View more
02-09-2018
01:49 PM
|
0
|
3
|
839
|
POST
|
For context this is ArcGIS 10.4.1 for Desktop using arcpy python 2.7 module. So I have been working all day messing around with arcpy to modify some shapefiles I have with no issues at all. About an hour ago, I ran the same script as I had previously been running, but this time instead of ~20 seconds to import arcpy, it wouldn't even import after 30+ minutes. I've tried restarting my IDE (PyCharm) and debugging the import code. What I found is that at the line below, the import hangs and nothing happens after this line is reached. envset = (set(env for env in self._gp.listEnvironments())) In the _base.py file. I'm not sure if this is an issue on ESRI's side with validation of my license, but this problem has persisted for over an hour so far for what seems like no reason. I made absolutely no changes to my development environment and this is the first issue with importing since I got it to work about a month ago.
... View more
02-09-2018
01:15 PM
|
0
|
8
|
1256
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|