Questions tagged [idle]
Use for questions involving the IDLE Integrated Development Environment (IDE) for Python
55 questions
1 vote
0 answers
264 views
Import arcpy in Python IDLE not working
I've installed ArcGIS Pro 3.4 (annual license for personal use) and Python IDLE 3.11.9. When I try to import arcpy in the IDLE I get the following error message: import arcpy Traceback (most recent ...
0 votes
0 answers
77 views
Using Python IDLE with Notebooks
I've written a script in Python IDLE and in Notebook, both accesed within ArcGIS Pro, v2.9.5, umbrella in Start. I was trying to add the code from the Notebook into the IDLE script and was getting ...
1 vote
1 answer
1k views
IDLE keeps restarting (RESTART: Shell) when running arcpy.CopyRaster_management
I am trying to get a script to run to batch resample some TIFF files. I've used an almost identical script to resample GRID files with no issues. When I try to run it with a group of TIFF files the ...
1 vote
1 answer
166 views
Moving Python script 10.3 to Pro. How do I know the script ran in Pro and not 10.3?
I have inherited a Python script that mosaics many files in 10.3. I normally run using IDLE outside 10.3. I don't code at all but am trying to learn so I can move the code to ArcGIS Pro to ensure we ...
0 votes
0 answers
48 views
Calling help for ArcPy function from within IDE
In IDLE (for Python v2.7.2 within my ESRI path), when I type: help(arcpy.gp.Slope_sa) I get: Help on function <lambda> in module arcpy.geoprocessing._base: <lambda> lambda *args which ...
2 votes
0 answers
119 views
Importing processing from QGIS into IDLE
I have been trying to make a program that creates a virtual raster based on the files that are input. Whenever I run my code it says. Traceback (most recent call last): File "C:/Users/Zach/...
0 votes
0 answers
78 views
Shapfile attribute data processing using ArcPy in IDLE
I am working on shapefile data using ArcPy in IDLE environment. How can I access/read two attributes of a shapefile and create a scatter plot using ArcPy? This is what I am getting: This is what I ...
1 vote
0 answers
6k views
Installing GDAL for Python 3.8 IDLE
I'm using IDLE. GDAL command works in QGIS' Python console but not Python 2.7 (ArcMap) and 3.8 (separate install) IDLEs. So far, I have tried Downloading this (GDAL/OGR IN PYTHON) and following the ...
0 votes
0 answers
176 views
Since installing QGIS 3.10.1-A Coruña I can't get Python script to work in IDLE: ImportError: No module named qgis.core
I have tried adding sys.path.append and under cmd.exe set Python Path but am still getting the dreaded ImportError: No module named qgis.core. I set PythonPath to C:\OSGeo4W64\apps\qgis\python I ...
2 votes
1 answer
2k views
"RuntimeError: Invalid Pointer" error when trying to export raster
I am trying to create an NDVI image from a Landsat 8 tif image, but I'm having trouble figuring out how to export the NDVI image without getting the "Invalid Pointer" error. I'm working with IDLE (...
1 vote
2 answers
417 views
Re-projecting shapefiles (with different projections) to the projection of a specified shapefile: Error 000628
I am trying to write a script to make a tool that will run in Arcmap 10.7.1. I have a file with multiple different shapefiles with multiple different projections. Basically, it has to take the ...
1 vote
1 answer
467 views
IDLE keeps restarting when running the arcpy.Clip_management geoprocess
I am trying to run an IDW on some precipitation points, but when I try to clip the IDW raster to a polygon boundary, it keeps restarting the IDLE shell. This happens when I run it in the shell, and as ...
0 votes
1 answer
80 views
ERROR 000732: Cannot clip IDW product to boundary file with Python script
I am writing a Python script to try to clip a raster generated by Idw_3d interpolation, but it's throwing the infamous 000732 error. I've looked at my file path, and it does exist there. I've opened ...
1 vote
1 answer
571 views
Using for loop to print last messages from multiple processes?
Is there a way to use a "for" loop to print the success messages for all of the following geoprocesses? In this example, I am clipping the entire river system of Kansas to a pre-selected ecoregion, ...
1 vote
1 answer
172 views
Generating list of feature classes from .gdb file using ArcPy Idle script: Error thrown
I'm new to ArcPy and Python and have a very simple question. I'm trying to write a Python script in idle to extract the number of feature class files from a geodatabase. I can do it just fine in the ...