Stack Exchange Network

Stack Exchange network consists of 174 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 [pyscripter]

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

1
vote
2answers
25 views

replaceDataSource() works in ArcMap but not as stand-alone script

I have one script (and one alternative) that I want to use to replace a broken data source. Neither is working outside of the ArcMap Python Window. Has it something to do with the MapDocument object? ...
0
votes
0answers
23 views

Seeing results of arcpy.ListUsers() in PyScripter without using print statement?

I originally was using PyScripter version 2.6 and updated to 3.4. One of the functions I was using in PyScripter was arcpy.ListUsers to see the current connected users to our database. After ...
2
votes
1answer
800 views

How do I get PyScripter to recognize Python installed with ArcGIS Pro 2.1?

I am trying to get PyScripter 3.3 64-bit to run on my desktop computer. I was successful in getting PyScripter 32-bit to run, but I require the 64-bit version. It seems that it is unable to ...
1
vote
0answers
22 views

Pyscripter crashes with EOFError timed out

I am not sure whether someone ran into similar problem. I've been using PyScripter with Arcpy for the past two years and I have been happy with it most of the time. Yesterday I ran into a kind of ...
1
vote
1answer
169 views

pyscripter reclassify error

I am new to python, so bear with me. Trying running reclassify in pyscripter returns the error: Message File Name Line Position Traceback 21 Reclassify C:\Program Files (x86)\...
2
votes
1answer
319 views

Error in response to “import arcpy” - RuntimeError: NotInitialized

I am setting up a new computer and installed ArcGIS 10.4 with Python 2.7.10. I then downloaded PyScripter to use as an editor. When I try import arcpy, I get the following error: Traceback (most ...
1
vote
1answer
97 views

Batch JSON to Features script needed [closed]

I have a folder on my local drive with 1,500+ JSON files (lines) that I need converted to shapefiles. I've tried creating a batch model in Python and ModelBuilder without success. I'm using ArcGIS 10....
0
votes
0answers
64 views

Geocoding fails in script with Acces violation error

I'm trying to run geocoding in a python script with arcpy. However, I'm always getting an application error: I've run the script in PyScripter, ArcMap Python window and Idle, and on several different ...
3
votes
1answer
297 views

Adding Edit with Pyscripter back to 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
183 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 ...
4
votes
1answer
79 views

Speeding up test debugging when loading large module (ArcPy) as part of program?

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
3k 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
93 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 ...
7
votes
1answer
2k 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 ...
3
votes
1answer
159 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,...
3
votes
1answer
174 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 ...
3
votes
1answer
157 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 ...
1
vote
1answer
175 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
118 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
415 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
37 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
2k 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 ...
0
votes
1answer
1k 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
545 views

Cause of KeyError in Python Toolbox of ArcPy? [closed]

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
867 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
453 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 ...
1
vote
2answers
743 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)\...
1
vote
1answer
282 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
695 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 ...
5
votes
2answers
3k 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
113 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
77 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
529 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
621 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 ...
2
votes
1answer
284 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
5k 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
368 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
587 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
4k views

Using PyScripter with ArcGIS for Desktop?

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: I installed the ArcGIS 10.2 I installed PyScripter 2.5.3.0 x64 ...
0
votes
0answers
937 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
603 views

Intermittent Error using arcpy.Delete() on temporary rasters? [closed]

I have an intermittent error with ArcGIS 10.1 for Desktop 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 ...
2
votes
1answer
512 views

gdal.py as part of bat script in windows 7

I need to run the following bat file from a MS4W shell which has gdal_retile.py as the final option. I have added C:\ms4w\python\gdal to my pythonpath but within a pyscripter shell I can not import ...
1
vote
0answers
1k 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 ...