Python 3.4 will be supported with ArcGIS for Professionals
I know this is a couple months old by now but I just upgraded to 10.3 and am getting a similar error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\__init__.py", line 21, in <module>
from arcpy.geoprocessing import gp
File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\geoprocessing\__init__.py", line 14, in <module>
from _base import *
File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\geoprocessing\_base.py", line 598, in <module>
env = GPEnvironments(gp)
File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\geoprocessing\_base.py", line 595, in GPEnvironments
return GPEnvironment(geoprocessor)
File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\geoprocessing\_base.py", line 551, in __init__
self._refresh()
File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\geoprocessing\_base.py", line 553, in _refresh
envset = (set(env for env in self._gp.listEnvironments()))
RuntimeError: NotInitialized
I am working off a concurrent license server so not sure if that could be the issue or not. Also I was utilizing PythonWin prior to the upgrade, which I prefer, however once my system was upgraded PythonWin no longer functions. Pretty much a noob at Python so please respond with as much laymans terminology as possible.
Thanks!
Hi Jessica,
Yes the problem is that ArcGIS10.3 installs the python libraries to C:\Python27\ArcGIS10.3\Lib\
Uninstalling pywin and re-installing pywin32 (pywin32-218.win32-py2.7.exe)
The pythonwin.exe is now in the ArcGIS10.3 folder at the location below and everything works
C:\Python27\ArcGIS10.3\Lib\site-packages\pythonwin\Pythonwin.exe
John
Same problem, I am getting our IT group to look at this, but wondered if you had an answer. I assume it is because the ArcGIS libraries have moved to C:\Python27\ArcGIS10.3\Lib\site-packages\ but can't get PyWin to work to get to this....
File "pywin\framework\startup.py", line 49, in <module>
__import__(moduleName)
File "C:\Python27\ArcGIS10.2\Lib\site-packages\pythonwin\pywin\framework\intpyapp.py", line 3, in <module>
import win32con
ImportError: No module named win32con
Hi All-
I just installed ArcGIS 10.3 and now pythonwin is giving me an error message:
Python Traceback
File "C:\Python27\ArcGIS10.2\Lib\site-packages\Pythonwin\pywin\framework\startup.py", line 49, in <module>
File "C:\Python27\ArcGIS10.2\Lib\site-packages\Pythonwin\pywin\framework\intpyapp.py", line 3, in <module>
Any ideas on how to fix this??? Google is not helping...
Jessica
This is a great thread, had a lot of info I was wondering about. I have a further question though. There were a couple of small differences in the way tool parameters were implemented between 10.0 and 10.1/10.2, specifically the way multivalue parameters were handled using the GetParameter... method. (Used to be they were acquired as valuetables, which was a little cumbersome.) I have a toolbox I wrote for 10.0 which I just upgraded to work with 10.1/10.2. I assume that all of the code itself will be compatible, but are there any small differences (like the multivalue parameter) between how scripts and tools will work in 10.1/10.2 and 10.3?
Jason Scheirer comments are correct.
Python is an optional install. If you don't install full Python installation, there will be "Python runtime" version where you've referenced (ArcGIS Pro\bin\Python). There is no exe for you to use in this case that, and you will only be available to use Python from within the app.
The full installation will be at c:\Python34 and includes the python.exe
My understanding from Esri reps is that 10.x will continue to use Python 2.7.
Confirmed ArcGIS Pro will use Python 3.4:
Python 3 migration—ArcPy Get Started | ArcGIS for Professional
(With most current build as at writing)
Installation dir is quoted as C:\Python34, which sounds more like a full installation than a runtime (per Jason Scheirer), but in practise it is not there and is installed as ArcGIS Pro\bin\Python. There is no python.exe which seems to support Jason's comment.
Numpy version included is 1.8.0
Hi Kevin, is that option for importing layer files (*.lyr) 100% compatible, and especially will the display of all feature symbolization and feature labelling be 100% the same in both ArcGIS for Desktop and Pro? It is a real nightmare for cartographers to have to redesign loads of layer files, so it is vital to have truly good compatibility and transfer of properties to the maximum extent possible.
Layerfiles (.lyr) can be imported into Pro. You cannot save a lyr file. Pro will save lyrx files which are not backwards compatible to 10.x
For the most part, arcpy is largely moving forward to Pro intact. -Dave
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.