A free, open-source Python development tool for Windows PCs.

learn more… | top users | synonyms

2
votes
1answer
46 views

How to add “Edit with Pyscripter” back to the Windows context menu?

Using Windows 10 64 Bit, ArcGIS for Desktop Advanced, ArcGIS Pro 1.2 I use PyScripter pretty extensively, and after I installed ArcGIS Pro (which installs Python 3), I noticed that I can no longer ...
2
votes
2answers
82 views

Python script runs in ArcCatalog and ArcToolbox, but not in PyScripter

I have a script that imports a custom toolbox, copies data from an sde to a file/personal gdb, removes custom feature class extensions, etc. The script runs fine in Catalog, but I receive the ...
0
votes
0answers
48 views

Adding a Field to a Feature Class using Python

I'm trying to create a script that adds an integer field to a File GDB, calculates it, buffers it, then clips it to a different GDB featureclass. Can anyone help me, I'm stuck so far!? I'll provide my ...
2
votes
0answers
48 views

How do I speed up testing debugging when I am loading a large module as part of my program? [closed]

I'm using PyScripter to do some python geocoding automation and I'm coming across the situation where I am waiting several tens of seconds for a large module to be imported. This is very inconvenient ...
1
vote
1answer
436 views

Using PyScripter with ArcPy: “import error, no module named _base”

I'm trying to use ArcPy in PyScripter. I don't have admin privileges on this computer (it's my work computer) so I have to use a portable version of PyScripter. I'm sure my boss would let me install ...
1
vote
1answer
47 views

Append tool snippet not working in Pyscripter?

I need to append two shapefiles together. The append tool works within the ArcMap toolboxes AND Python window, but it does not work when copying over the python snippet to PyScripter. It'll completely ...
6
votes
1answer
424 views

Getting QGIS python modules to work from PyScripter in Windows 10?

Been trying lots of "solutions" from net research but nothing seems to work. I have the current versions of QGIS from OSGEO and PyScripter 2.5 Based on one of the solutions I tried... import sys ...
2
votes
1answer
68 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
1answer
96 views

Print rasters count in Python

I'm trying to print raster batch count number in PyScripter and ArcGIS 10.3 I'm using the next code: import arcpy carpeta = arcpy.env.workspace = r"C:\Base_de_datos\Cuencas_raster" for raster in ...
1
vote
0answers
44 views

PyScripter auto-complete pop-up help?

How do I get the pop-up help window that's part of the auto-complete to show more definitions of the tool being used? For example in the attached image the definitions of "Buffer_analysis" inputs ...
0
votes
0answers
104 views

How to go about buffering different values in a field separately?

I have a clip of urban areas where the names are all messy with hyphens, apostrophe's etc so have decided to use the number value for each name to populate a list. My aim is to do analysis on each ...
1
vote
1answer
110 views

pyscripter : add a legend to my vector layer

I work on PyScripter, i managed to display a vector layer from Postgresql with a symbology. But I have a difficulty to display a legend. def main(): def init(): # appel de l'application et ...
1
vote
0answers
80 views

Trouble importing qgis.core python module

I am having issues loading the qgis Python modules in the osgeo4w shell. Ultimately I want to work with the modules in pyscripter. I tried the solution mentioned in Problem with import qgis.core when ...
2
votes
1answer
333 views

What is the word for “Bar” progress and write it in python script?

I am a beginner in python and have written a few scripts and I am wondering if there is a term for python to call and show the progress of the bar telling you from start to finish like you see in ...
1
vote
0answers
34 views

What is the correct way to write the code for getting layers from the server?

I'm writing a script to call raster from the server to load them to my MXD file. It is just like when you add the data in Arcmap. Problem is that the raster I have is on the server. Is this correct ...
0
votes
1answer
681 views

Pyscripter and arcpy not working together

I have installed pysripter on my machine and am not able to run any arcpy scripts from it despite being able to import arcpy. Models that work in model builder do not transition to pyscripter here is ...
1
vote
1answer
654 views

Python IDEs (PyScripter,PythonWin) crashing when installed with ArcGIS for Desktop?

I am learning Python, so here is a real newbie question! Everything writen in ArcGis Python's windows is working fine. The same lines, correctly writen in an IDE, when run, are crashing it. Working ...
-2
votes
1answer
248 views

Cause of KeyError in Python Toolbox of ArcPy?

This question arises from Performing Point Distance analysis using Basic level license of ArcGIS for Desktop?. I basically copied and pasted PolyGeo's answer and formatted it into a python toolbox ...
1
vote
1answer
233 views

Problem writing list of features to text file

I am attempting to write / run a simple script that list all the points within a directory, and the subdirectories contained within. Here is the code: import arcpy, os workspace = r'c:\Users\...
1
vote
1answer
289 views

ArcPy function works in ArcMap Python window but not from standalone script?

So I think I'm running into a data/schema lock issue, but I have no idea how to tell, or how to fix it for that matter. Here's the setup: I have this chain of gp functions: #extract elevations to ...
0
votes
2answers
349 views

Same python code works in arcgis python window, but fails in pyScripter

This code works in the arcgis python window but in PyScripter, this warning message had been written: Traceback (most recent call last): File "", line 16, in File "C:\Program Files (x86)\...
0
votes
0answers
55 views

ArcPy PointToRaster memory locking error solution?

RasterToPolygon ArcPy tool fails on generated raster (PointToRaster) with large(?) dataset. Not sure the size threshold, but fails on 78559 x 33544 raster, completes on smaller datasets so I know ...
1
vote
1answer
237 views

ERROR 000824 while trying to run IsNull Method outside ArcGIS?

I am trying to perform IsNull function to a raster using PyScripter. This is the code I use: import arcpy import arcinfo InRaster = "C:\\data\InRaster" IsNullRa = "C:\\data\IsNullRa" arcpy.gp....
1
vote
1answer
483 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 ...
3
votes
2answers
2k views

ArcPy Data Access Insert Cursor not writing geometries to feature class?

I'm using PyScripter and running ArcGIS 10.2.1. I am having troubles with the Insert Cursor in the arcpy module. I have an empty feature class in my geodatabase and have created the short script ...
0
votes
1answer
78 views

Updatecursor returns with 'variable not defined'

I am fighting a bit with the cursor function since this morning. Thanks to the help of the people here and some tutorials I found I got this far import arcpy arcpy.env.workspace = "C:\\Users\\...
1
vote
1answer
66 views

SearchCursor returns strange value

my searchCursor look like this. arcpy.env.workspace = "C:\\Users\\Documents\\Scoring\\Ecodis_clip_split" #set workspace to folder with values eco = arcpy.SearchCursor ("NAME.shp", "", "", "area_ha", ...
2
votes
1answer
407 views

PyScripter crashes at “import processing”

I set up PyScripter latest version, 2.7) to work with QGIS (2.2, OSGeo4W install) following http://chelahmy.blogspot.ca/2011/02/setting-up-pyscripter-for-quantum-gis.html. It generally works well. I'm ...
1
vote
1answer
341 views

Python.dll could not be loaded with PyScripter

I'm trying to configure PyScripter with QGIS. I've installed it using OSGeo4W and I'm following instructions to setup a pyscripter.bat file by copying content of qgis.bat file. I have the following ...
1
vote
1answer
166 views

How to get replaceDataSource to work with personal geodatabase?

I am having trouble using the arcpy.mapping's replaceDataSource with a personal geodatabase. The script runs, but does nothing if I run the script in the python window of ArcMap. If I run it in ...
3
votes
0answers
4k views

How to use replaceDataSource to replace data source for multiple layers? [closed]

I appear to be having difficulty with using 'replaceDataSource'. ESRI has atrocious documentation on updating and fixing data sources, and almost everything I have read on the subject is almost what I ...
0
votes
1answer
228 views

Running Buffer_analysis in PyScripter fails to execute

For some reason, I can't get Buffer_analysis to run successfully from PyScripter(2.5.3.0) for a particular shapefile. It fails to complete and exits with error 999999. I can run the exact same ...
4
votes
3answers
360 views

pyscripter out of memory

I'm running a loop that create feature classes at a geodatabase. After creating 221 datasets I get the error message "pyscripter out of memory". Is there a way to clear the physical memory of computer ...
5
votes
3answers
2k views

Issue on using Pyscripter with ArcGIS 10.2

Can someone please let me know how I can set the Pyscripter 2.5.3.0 x64 works with Python 2.7.3 which comes with ArcGIS? what I did was: 1- I installed the ArcGIS 10.2 2- I installed Pyscripter 2.5.3....
0
votes
0answers
690 views

Setting up Pyscripter for QGIS dev

I have been trying to set up PyScripter so that I can make use of code completion for QGIS python code. So far, I have been unable to get things to work. PyScripter when set up as per instructions ...
1
vote
0answers
509 views

Arc10.1: intermittent Error using arcpy.Delete() on temporary rasters

I've been pulling my hair out with an intermittent error when running from either the MS-DOS prompt, PyScripter, or WingIDE. Haven't bothered to check w/in Desktop apps (but a colleague says it's the ...
0
votes
0answers
83 views

Pyscripter hangs on spatial join?

I've got a script which loops through a series of FC layers (tracker points). Using a FOR loop, they're reprojected then joined to a streets layer. Sometimes it works fine, then other times it never ...
1
vote
0answers
901 views

Python script for running ArcGIS10 Area Solar Radiation tool [closed]

I am trying to run the Area Solar Radiation tool using a Python script, because I want to run it on several DEMs at once. I am using a server with Windows 7, ArcGIS 10 and PyScripter. I am a beginner ...