|
POST
|
Do I need to edit something in the sys.path or someplace else?
... View more
04-12-2019
07:42 AM
|
0
|
1
|
1720
|
|
POST
|
That is how I installed Spyder; I have since uninstalled Spyder and ArcGIS Desktop.
... View more
04-12-2019
07:33 AM
|
0
|
9
|
1720
|
|
POST
|
Unfortunately if I have Python 2.7 installed then my Python 3.6 installation tries to initialize with 2.7.
... View more
04-12-2019
06:37 AM
|
0
|
11
|
1720
|
|
POST
|
Do it turns out if I uninstall ArcGIS Desktop then Python 3.6 works. If I reinstall ArcGIS Desktop then PyCharm and Spyder try to use the Python 2.7 installation.
... View more
04-12-2019
06:01 AM
|
0
|
13
|
1720
|
|
POST
|
I think python is messed up on the entire computer now. Any ideas on how to completely remove Python? I'll start by completely removing ArcGIS products.
... View more
04-10-2019
11:59 AM
|
0
|
15
|
2501
|
|
POST
|
I’ve been using the portable version of PyCharm and then pointing it to the Python environment that is installed on whichever computer I’m using. I was able to install Spyder in a Python 3.6 environment and later I also installed it in a Python 2.7 environment. They were both successful and then I started getting the errors.
... View more
04-04-2019
08:30 AM
|
0
|
0
|
2501
|
|
POST
|
I did set the interpreter to point to the ArcGIS Pro Python environment. I think when it tries to initialize it is using the Python.exe that is in the Python27 ArcGIS 10.6.1 folder. This seems to be a deeper Python issue than the IDE settings.
... View more
04-04-2019
07:37 AM
|
0
|
2
|
2501
|
|
POST
|
Right, it is using the ArcGIS Pro installation; that’s where I think the problem is because cloned environments also have the same problem. And when I try to install Spyder to a cloned environment it uses Python 2.7 packages instead of 3.6.
... View more
04-04-2019
06:20 AM
|
0
|
22
|
2501
|
|
POST
|
I am having some major Python issues. When I try to start PyCharm using the ArcGIS Pro Python environment it tries to initialize using the Python 2.7 ArcGIS 10.6 installation. Somehow my Python installations got crossed up. I've tried uninstalling ArcGIS Pro and reinstalling it but that has no effect. Is there any way to solve this?
... View more
04-03-2019
12:17 PM
|
0
|
24
|
6092
|
|
POST
|
Is that the same as this feature in ArcMap: That's what I was asking about in the 2.2 release. Thanks, Mark
... View more
09-04-2018
12:59 PM
|
0
|
1
|
2552
|
|
POST
|
Has the option to convert marker symbols to polygons been included in the newest ArcGIS Pro release? Thanks,
... View more
09-04-2018
12:00 PM
|
2
|
4
|
3095
|
|
POST
|
That did the trick. I combined both if statements into one if statement though.
... View more
07-19-2018
02:11 PM
|
0
|
0
|
1487
|
|
POST
|
Having a default filename worked but I'm not sure that I would like to go that route.
... View more
07-19-2018
02:10 PM
|
0
|
0
|
1487
|
|
POST
|
I am developing a Python Toolbox to take some user inputs before creating an output that gets saved as an Excel file. I'm trying to have it add the '.xls' extension after the user enters a file name but then it shows errors in the dialog box: The errors go away once the file name is entered and it does automatically add the file extension. How do I write the code so that there are no errors to begin with? This is my first attempt at a Python Toolbox but I think I will be developing more so I'm willing to take any help that I can get. Here is my source code: import arcpy
def getList():
planList=['Greentree', 'Sunset','Sherwood']
return planList
class Toolbox(object):
def __init__(self):
"""Define the toolbox (the name of the toolbox is the name of the
.pyt file)."""
self.label = "Toolbox"
self.alias = ""
# List of tool classes associated with this toolbox
self.tools = [Tool]
class Tool(object):
def __init__(self):
"""Define the tool (tool name is the name of the class)."""
self.label = "Tool"
self.description = ""
self.canRunInBackground = False
def getParameterInfo(self):
"""Define parameter definitions"""
planBuff=arcpy.Parameter(
name='planBuff',
displayName='Buffer Distance',
direction='Input',
datatype='GPDouble',
parameterType='Required')
planBuff.value=50
units=arcpy.Parameter(
name='units',
displayName='Units',
direction='Input',
datatype='GPString',
parameterType='Required')
units.filter.type = "ValueList"
units.filter.list = ['feet','meters']
units.value='feet'
plan=arcpy.Parameter(
name='plan',
displayName='Plan Name',
direction='Input',
datatype='GPString',
parameterType='Required')
plan.filter.type='ValueList'
plan.filter.list=getList()
folder=arcpy.Parameter(
name='folder',
displayName='Folder to save file',
direction='Input',
datatype='DEFolder',
parameterType='Required')
fileName=arcpy.Parameter(
name='fileName',
displayName='Excel file name',
direction='Input',
datatype='GPString',
parameterType='Required')
params = [planBuff,units,plan,folder,fileName]
return params
def isLicensed(self):
"""Set whether tool is licensed to execute."""
return True
def updateParameters(self, parameters):
"""Modify the values and properties of parameters before internal
validation is performed. This method is called whenever a parameter
has been changed."""
if not parameters[4].valueAsText.endswith('xls'):
parameters[4].value=parameters[4].valueAsText+'.xls'
return
def updateMessages(self, parameters):
"""Modify the messages created by internal validation for each tool
parameter. This method is called after internal validation."""
return
def execute(self, parameters, messages):
"""The source code of the tool."""
return
... View more
07-19-2018
10:53 AM
|
0
|
4
|
1716
|
|
POST
|
I'm using 2.1.0. I imported an mxd file into ArcGIS Pro so it should show the sde connections from that.
... View more
05-08-2018
12:34 PM
|
0
|
0
|
869
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-08-2023 10:12 AM | |
| 2 | 03-22-2023 11:10 AM | |
| 1 | 09-14-2020 08:13 AM | |
| 1 | 09-01-2017 11:10 AM | |
| 1 | 08-21-2020 10:50 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-01-2025
08:07 AM
|