Skip to main content

Questions tagged [pyscripter]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
257 views

Cannot Edit ArcPy Script That is Within a Toolbox Using PyScriptor

There is a script within an ArcGIS toolbox (.tbx). The script must be within this toolbox due to company practices. I wish to edit a python (arcpy) script therein, Script1.py. I must use PyScripter ...
acolls_badger's user avatar
1 vote
0 answers
210 views

Making PyScripter to work with QGIS Python modules

I have been reading several other solutions, none of them seems to work and I don't know if it is because I am doing something wrong, or because they are for an older version. I have unistalled ...
Ricardo's user avatar
  • 11
3 votes
1 answer
266 views

Error with PyScripter and QGIS 3.22, can't find DLL

Since using the new installer for the x64 only version OSGeo4W/QGIS (new 3.22 LTR), I can't no longer use PyScripter with the bundled PyQt5. When I try to import QSettings for example, PyScripter can'...
Andreas Müller's user avatar
1 vote
1 answer
912 views

Running ArcPy on PyScripter with ArcGIS Pro

Having PyScripter 4.0.0.6 x64 installed with ArcGIS Pro 2.5 I have set the I have add/set the arcgispro-py3-clone to Python Path like below but I am still getting this error message Traceback (most ...
Suffii's user avatar
  • 588
1 vote
1 answer
53 views

arcpy.CheckExtension() Works in ArcMap but not in PyScripter

I've had no trouble with using similar licensing in Python scripts previously, so I'm wondering if a recent upgrade/replacement of my PyScripter environment may have caused it to stop working. I'm ...
Son of a Beach's user avatar
1 vote
1 answer
203 views

Download zip file from ArcGIS Online

from arcgis.gis import GIS import sys import urllib.request as req from pathlib import Path from zipfile import ZipFile import os import trace import urllib.request as req Zip_Loc = r'C:\Folder' ...
Mr_gemini's user avatar
  • 113
2 votes
1 answer
4k views

No module named 'arcgis' for import GIS

I have ArcGIS API for Python installed and when I use below line, am getting error as ModuleNotFoundError: No module named arcgis from arcgis.gis import GIS Please refer to Image
Mr_gemini's user avatar
  • 113
0 votes
1 answer
117 views

Python- Make use table from a MDB with name changes every week (name+date)

I have been trying to make a script to automate some steps in a process that uses tables from different databases. One of them changes its name every week - name+date eg: "MegaDataBase_16062019.mdb" ...
FTeixeira's user avatar
2 votes
2 answers
2k 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? ...
Pfalbaum's user avatar
  • 911
4 votes
3 answers
6k views

Getting PyScripter to recognize Python installed with ArcGIS Pro

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 ...
Rosemary's user avatar
  • 140
1 vote
0 answers
58 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 ...
jesuiselysee's user avatar
1 vote
1 answer
324 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)\...
Jeppe Olsen's user avatar
2 votes
2 answers
1k 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 ...
mmoore's user avatar
  • 1,011
1 vote
1 answer
306 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....
Daniel's user avatar
  • 31
0 votes
0 answers
113 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 ...
recurvata's user avatar
  • 2,290
3 votes
1 answer
616 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 ...
Jason Miller's user avatar
  • 1,460
2 votes
2 answers
294 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 ...
Bert Hatchell's user avatar
4 votes
1 answer
88 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 ...
Jas's user avatar
  • 115
1 vote
1 answer
5k 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 ...
ale19's user avatar
  • 462
1 vote
1 answer
126 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 ...
gfrederick's user avatar
8 votes
1 answer
3k 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 ...
GeorgeC's user avatar
  • 8,258
3 votes
1 answer
847 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,...
Andes's user avatar
  • 41
3 votes
1 answer
359 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 ...
jpdelped's user avatar
3 votes
1 answer
533 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 ...
SamO87's user avatar
  • 31
1 vote
1 answer
248 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 ...
Nora 27's user avatar
  • 81
1 vote
0 answers
151 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 ...
kflaw's user avatar
  • 1,416
2 votes
1 answer
434 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 ...
PROBERT's user avatar
  • 4,131
1 vote
0 answers
38 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 ...
PROBERT's user avatar
  • 4,131
0 votes
1 answer
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 ...
risail's user avatar
  • 1,318
1 vote
1 answer
2k 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 ...
PMessager's user avatar
  • 407
-2 votes
1 answer
1k 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 ...
MjonesGEO's user avatar
  • 791
1 vote
1 answer
1k 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\...
Adam Thom's user avatar
  • 1,512
1 vote
1 answer
626 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 ...
GISUser9's user avatar
  • 825
1 vote
2 answers
1k 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)\...
Julia Jiang's user avatar
1 vote
1 answer
334 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....
ahoosh's user avatar
  • 245
1 vote
1 answer
903 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 ...
david_p's user avatar
  • 1,783
5 votes
2 answers
4k 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 ...
David's user avatar
  • 135
0 votes
1 answer
147 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\\...
four-eyes's user avatar
  • 3,420
1 vote
1 answer
93 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", ...
four-eyes's user avatar
  • 3,420
2 votes
1 answer
623 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 ...
Anders's user avatar
  • 141
1 vote
1 answer
776 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 ...
M Omayr's user avatar
  • 313
2 votes
1 answer
325 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 ...
Adam Thom's user avatar
  • 1,512
3 votes
0 answers
6k 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 ...
Adam Thom's user avatar
  • 1,512
0 votes
1 answer
462 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 ...
jger's user avatar
  • 137
4 votes
3 answers
844 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 ...
mahmoud hageer's user avatar
5 votes
4 answers
7k 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 ...
user1106951's user avatar
  • 1,498
0 votes
0 answers
1k 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 ...
AndrewM's user avatar
  • 565
2 votes
1 answer
628 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 ...
GeorgeC's user avatar
  • 8,258