Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [idle]

Use for questions involving the IDLE Integrated Development Environment (IDE) for Python

10
votes
0answers
88 views

Python Script Performance as an ArcGIS Tool Versus Stand-Alone

Has anyone studied the difference in running a Python script in ArcToolbox versus as a stand-alone script? I had to write a quick-and-dirty script to convert a set of RGB images to single band by ...
1
vote
1answer
64 views

Question about running python in QGIS3

I have 5 python scripts in the following folders : .\Signal_Slot_Example\main.py .\Signal_Slot_Example\ProgressDialog\init.py .\Signal_Slot_Example\ProgressDialog\Progress.py .\Signal_Slot_Example\...
0
votes
0answers
13 views

Writing and testing python code using existing OSGeo4W Python3 install?

Looking for a development environment, like idle, for Python 3.6.1 that I can install and use with my existing python3 installation from the OSGeo4W. I am trying to learn python for use with QGIS and ...
1
vote
2answers
56 views

Taking parameters from users in ArcPy via IDLE?

I wonder if we can use arcpy.GetParameterAsText(0) in Python IDLE to get a parameter from a user? I am using ArcGIS Desktop 10.4 and Python 2.7.10 that comes with ArcGIS. Actually I want to know how ...
0
votes
1answer
53 views

in cursor.updateRow(row) RuntimeError: Object invalid or no longer set

I'm running an arcpy code in IDLE that update a field in shapefile. After updating it get the following error: Traceback (most recent call last): File "C:/Users/10/Desktop/test.py", line 21, in ...
1
vote
0answers
40 views

batch georeference based on link file, output raster too big and in wrong place

I have a set of images that I need to georeference. All images have the exact same geographical coverage. I have used the georeferenceing tool bar to create a link file. I then used the script ...
3
votes
1answer
329 views

Adding Layers to a opened Qgis project via Python IDLE

I have a project opened in Qgis "qgis_training.qgs" and I am trying to add a layer to it via python2.7.6 IDLE using the following code: from qgis.core import * from qgis.utils import iface from ...
2
votes
0answers
283 views

Troubleshooting pythonw.exe has stopped working with Trace Geometric Network? [closed]

I have not yet pulled this down to a code snippet that has just enough in it to reproduce the error below that I am getting when I run my code in IDLE. pythonw.exe has stopped working Windows is ...
0
votes
2answers
451 views

Qgis: work in pyqgis from an external idle

I'm writing a python script but, at the moment, I do everything from the Qgis python console. Is there a way to write and run a pyqgis script externally from Qgis? I'm using Qgis 2.18 and python 2.7....
1
vote
1answer
282 views

Editing validation code for Python script tool in ArcGIS Pro using IDLE?

I created and successfully tested a Python script tool, for which I included some validation code, in ArcGIS Pro 1.3.1. To write the validation code I right-clicked on the Python script tool in its ...
2
votes
3answers
2k views

Differences between Python window and IDLE for Scripting with ArcGIS Desktop?

I'm making a power point presentation about the differences between Python window and IDLE for my coworkers. I only use the python window to get feedback from my custom toolbars. I tried using it once ...
1
vote
1answer
831 views

IDLE (Python GUI) Will Not Open

I recently went through a lengthy process of installing GDAL and think that something may have gone awry as my IDLE is not opening. I cannot edit files in IDLE either. The only thing that works is ...
1
vote
3answers
690 views

Does Python IDLE install automatically when QGIS is installed?

I have read in different gis.stackexchange posts that the python IDLE is located in Python27>Lib>idlelib, and if I had ArcGIS, it would be Python27>ArcGIS10.x>Lib>idlelib But in my case, I can't find ...
0
votes
1answer
254 views

Debugging Error 000725 for buffer and parameter not being valid?

I am very new to Python. I built a model in the ModelBuilder in a toolbox in ArcCatalog 10.3.1. I keep getting the following error about my buffer not being able to be executed and that my parameters ...
6
votes
2answers
2k views

Starting Python Shell Window of IDLE for use with ArcGIS Pro?

Prior to installing ArcGIS Pro 1.3 (I am now at 1.3.1), on Windows 7 SP1, I have been starting IDLE in a Python Shell Window from the Windows Start Menu using IDLE (Python GUI) in the Python 3.4 ...
0
votes
0answers
27 views

Cannot Edit Python Script from ArcMap/ArcCatalog with IDLE? [duplicate]

I'm trying to set my Script Tool Editor in the Geoprocessing Options dialog so that I can edit a script tool within ArcMap. Currently, whenever I right-click on my script and select "Edit..." from the ...
2
votes
0answers
341 views

Use QGIS with script only without opening QGIS first

I would like to use the QGIS algorithms without opening QGIS. I would like to use a script to automate processing with a Windows computer from IDLE (python GUI).
1
vote
1answer
341 views

Calculating distances with SciPy and subsequently join identifiers

I have lots of start points and a handful of destination points. Using 'Point Distance' from the toolbox takes ages to calculate and write the results. Hence, I was looking for alternatives and went ...
4
votes
1answer
1k views

Select IDLE 2.7 (not 3.4) as default script tool editor for ArcPy with ArcGIS for Desktop? [closed]

I'm trying to set my default editor in ArcMap (10.3) to IDLE 2.7, but despite using the 2.7 path, when I right-click on a script tool and select Edit, it opens IDLE 3.4:
3
votes
1answer
168 views

Only Black & White text in Python editor in ArcGIS for Desktop?

When opening IDLE or Pyscripter in ArcGIS by right clicking on a toolbox and Edit... the specified editor opens with the code - BUT all text is only black and white not the context colors of blue, red,...
2
votes
2answers
2k views

Script runs in ArcMap Python window but not in standalone PythonWin or IDLE?

I am attempting to automate some basic geoprocessing for a web map service. I am using ArcGIS 10.1 for Desktop. This code was built in ModelBuilder and exported to python. This runs perfectly in ...
3
votes
3answers
631 views

Syntax error running script in PythonWin after success in ArcPy

I am building a script to automate a water outage map(I'm new to Python). In the ArcGIS Desktop 10.1 window the script runs fine. However in Pythonwin and IDLE I get syntax errors(In Pythonwin reads: ...
9
votes
3answers
3k views

Distinguishing Python version when using IDLE with ArcGIS Pro and ArcGIS 10.x for Desktop architecture?

I have just started to work with Python 3.4.1 which comes with ArcGIS Pro 1.0.0, on my laptop, which also has Python 2.7.8 which comes with ArcGIS 10.3 for Desktop installed, and I would like to ...
1
vote
1answer
408 views

How can I show a label for a certain field in an attribute table for a shapefile?

names = ["Schools"] layers = arcpy.mapping.ListLayers(mxd, "*", df) for layer in layers: if layer.name == "Schools": layer.showLabels = True My code labels the default field in the attributes ...
0
votes
1answer
389 views

Using AddJoin_management gives ERROR 000840? [duplicate]

While i'am trying to execute this code IN IDLE, i got error : import arcpy import math import arcview from arcpy import env arcpy.env.workspace = "D:/Users/saadiya/Documents/ArcGIS/Default.gdb" ...
1
vote
1answer
232 views

Why does the python editor “Idle” reference two Python installations? [closed]

I have installed python 2.6 with ArcGIS 10.0 but also Python 2.7 for use with gdal. I have a problem at the moment with the editor "IDLE". When I right-click on a .py script, the idle editor ...
2
votes
0answers
371 views

Clip Management won't work outside of ArcMap/Catalog [closed]

Okay so I have a short script that works great when copied into the python window in ArcMap or ArcCatalog, but refuses to work in an IDE for whatever reason. The error that is thrown is: Start Time: ...
9
votes
2answers
10k views

Altering label styles (font, color, size, etc.) using ArcPy?

I am trying to write a python macro for ArcGIS 10.2 that will automate the process of labeling points in a layer based on different types of apartments. For example, one style of apartments would ...
3
votes
2answers
2k views

ArcPy script stops running randomly with no error returned

I am doing a batch watershed and analysis process on 135 points. This script worked great the first time I ran it. Ever since the first time, however, I have had the script stop at random moments. ...
1
vote
1answer
731 views

Import arcpy using PyScripter or IDLE gives No module named RuntimeError?

I'm trying to figure out this problem. Yesterday I installed PyScripter and since then, scripts doesn't work. When I run any script (in PyScripter or IDLE) which uses "import arcpy", I get this error ...
1
vote
1answer
1k views

Optimizing arcpy script to batch generate OD cost matrix in road networks [closed]

Following the question I asked in this thread, I wrote a python script designed to compute an OD cost matrix given a road network and origins/destinations locations. I am completely new to python, so ...
6
votes
7answers
27k views

Debugging ImportError: No module named arcpy?

I have written a script and am trying to run it in Python IDLE 2.7.6. I first try to import arcpy, but I get an error message saying: ImportError: No module named arcpy Why does it not work? I ...
4
votes
1answer
1k views

Getting ArcPy autocomplete to work in IDLE?

I want to write scripts in IDLE, but I love how the built in python window in ArcGIS 10.2 automatically fills in the module names as you start typing them. For example, if I type arcpy.Lis..., the ...
5
votes
2answers
634 views

Running Python 2.6 and 2.7 in ArcGIS Desktop?

I figure that there must be a way for me to run python 2.6 and 2.7 on the same computer. I've got a program that requires 2.7, but ArcGIS 10.0 requires 2.6. I'd like to be able to run both programs ...
3
votes
1answer
362 views

Dynamically viewing Python script results in ArcMap? [closed]

I want to view the output of ArcPy scripts (run in Python IDLE) in ArcMap. I tried refreshing the ArcMap data frame after I run the script. This does not work. Please advise me on this?
9
votes
1answer
13k views

issues importing arcpy in Python IDLE

I would want to use arcpy in my python code. I am able to import it through the ARCGIS desktop python console. But I am not able to import it into Python IDLE. I get the following error Traceback (...
11
votes
4answers
16k views

Avoiding import arcpy error (RuntimeError: NotInitialized) when using IDLE?

ArcGIS Version: ArcGIS 10, Python 2.6.5 Machine: Windows 7 64bit (Intel) I'm receiving the following error when importing arcpy using the the IDLE (gui and cmd prompt) and when using pythonwin. I ...
3
votes
1answer
378 views

Geoprocessor AddMessage issue in Eclipse

I wrote the following code as a wrapper around messages pushed during the running of the script. Using Python IDLE this works fine, but in Eclipse I get the following output: def ESRIP(gp,message): ...