Questions tagged [spyder]

The tag has no usage guidance.

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

Using jupyter_client version with ArcGIS API for Python

I am using ArcGIS API for Python. When I install Jupyter_client==7.1.0, I get error of arcgis 2.0.1 requires jupyter-client<=6.1.12, but you have jupyter-client 7.1.0 which is incomatible. When I ...
Samira Goodarzi's user avatar
0 votes
0 answers
162 views

GDAL retile "Error 4" only in certain working directories

I'm attempting to retile a large Tif files to sizes that can be used for training data in a Neural Network. I have GDAL installed and the gdal_retile.py (opens as txt file if I type gdal_retile.py ...
svollowork's user avatar
1 vote
1 answer
111 views

Script in ArcGIS Pro does not work in ArcMap

I wrote a script to rename and sort feature classes in a database into datasets based on a portion of the feature class name. It works without a hitch with ArcGIS Pro 2.9.1 when using Spyder 5.1.5 ...
Robert K M's user avatar
3 votes
1 answer
793 views

Import Qgis.core in Spyder

I'm currently trying to translate the tasks I performed using Qgis (3.16.5) into a Python (Spyder) script, such that I will be able to perform these tasks on multiple files more easily. However, I'm ...
Kris van den Berg's user avatar
0 votes
1 answer
675 views

Unable to import arcpy into Spyder with ArcGIS Pro 2.7

I am trying to import arcpy into Spyder. I saw ArcPy import arcgiscripting relating to this, but I'm using ArcGIS Pro 2.7, not ArcMap. My original Python is 3.8 but for the environment that I ...
anner.paldor's user avatar
0 votes
1 answer
319 views

IDE with Spyder to works with both ArcGIS Pro and ArcMap?

I am searching for an IDE with Spyder that works with both ArcGIS Pro and ArcMap. I did found a suggested answer Using spyder as Python IDE with ArcGIS Pro?, but would like to know if any more ...
Yogesh Chavan's user avatar
1 vote
2 answers
2k views

ECCODES ERROR when opening .GRIB file in Spyder/Visual Studio Code

I have accessed Anaconda Prompt for the environment that I will be working. Once there, I have changed the directory to the place where I have the grib files that I will be working with, in order to ...
Gonçalo Peres's user avatar
-2 votes
1 answer
393 views

Install pyModis on Anaconda/Spyder

I need to use pyModis on Spyder (Anaconda), but I'm not able to install it. Does anyone have a step by step or tutorial for Windows?
user163613's user avatar
1 vote
1 answer
765 views

RuntimeError when adding shapefiles using addDataFromPath in Python

I am attempting to take a SHAPEFILE, create separate shapefiles based on specific attributes via split by attributes, adding the separate shapefiles to the map and exporting them to PDF. I am stuck on ...
debugman's user avatar
3 votes
0 answers
1k views

Viewing GeoPandas Dataframe in VScode or PyCharm like Pandas Dataframes

I'm not sure if this is a missing feature or something that I couldn't figure out so I wanted to get some help; I started learning geopandas library, now I'm following some tutorials I realized that ...
puredata's user avatar
  • 481
1 vote
2 answers
62 views

Intercept incorrect entries Python [closed]

So I needed to create a script in Python that allows me to calculate distance from one point to another using coordinates. The first point had fixed coordinates and the coordinates to the second point ...
OSL's user avatar
  • 127
2 votes
0 answers
156 views

Integrating WinPython Spyder with QGIS?

I'm using Winpython 3.6.7 and I want to create a standalone application using QGIS 3.4.11. When I append the QGIS path using the sys module, nothing happens. import sys sys.path.append("C:\OSGeo4W64\...
Ash's user avatar
  • 1,156
0 votes
1 answer
68 views

Seeking Python API to assess accessibility to foodbank site?

The aim is to look at accessibility or lack thereof, in certain areas of the city, in order to inform future foodbank services. I have been working in Python/Spyder, and using OpenRouteService API to ...
Stuey17's user avatar
  • 199
1 vote
2 answers
1k views

Error sending request to OpenRouteService API from a set of client addresses to a foodbank site

I am sending a request to OpenRouteService API from a set of client addresses to a foodbank site: I am passing coordinates in the form ((x1,x2),(y1,y2)) where x coordinates are from a large csv file, ...
Stuey17's user avatar
  • 199
1 vote
1 answer
59 views

Create Query either using Select by Attributes or Python [closed]

I am working on something for my job, where I have a list of water/sewer service customers. Some customers have one service or the other, while others have both which is stored as two separate entries....
Mikhayla Beste's user avatar
1 vote
0 answers
428 views

Using Spyder (Anaconda) environment to execute GRASS Python script in Windows 10 [closed]

How can I set my spyder environment in order to use GRASS Python script in Spyder for Windows 10? I need to use some Python script from GRASS GIS. I am really new in Python and manipulate with scripts....
Wael's user avatar
  • 11
1 vote
2 answers
143 views

How to display a map from a script in Grass Gis 7.6.1

I am working with Grass Gis and spyder (IDE) and I am trying to display a map on "Spyder console" from the command line of spyder. I have a raster map call "elevation" and i tried this script: import ...
Pablo Sanhueza 's user avatar
0 votes
0 answers
90 views

Importing ArcPy into Spyder [duplicate]

I am trying to import ArcPy module into spyder and it does not work. import arcpy Traceback (most recent call last): File "", line 1, in import arcpy ModuleNotFoundError: No module ...
Philip Srnck's user avatar
0 votes
1 answer
956 views

arcgisscripting module not found in Python 3.5 in Spyder IDE

I am running ArcGIS Pro 2.2 and I have cloned my conda environment from Python command prompt. When I activate this environment and attempt to run Python 3.5 from the terminal, I can load arcpy as the ...
user44796's user avatar
  • 1,871
4 votes
1 answer
611 views

Cannot import qgis.gui into Spyder

I am trying to get the PyQGIS working with the Spyder installed as part of Anaconda. I first get the path to PyQGIS and dependent packages from QGIS console, typing: import sys sys.path After that ...
Jovid's user avatar
  • 71
1 vote
1 answer
447 views

arcpy SelectLayerByAttribute_management runs in the Python window in ArcGIS Pro, but fails to run from Spyder or PyCharm

I have this script for querying a feature layer and then copying to a geodatabase. It works when I run it in the ArcGIS Pro Python window, but not when I run it from Spyder or PyCharm. When I run in ...
KirkyLady's user avatar
2 votes
1 answer
811 views

Translating raster from GTiff to ASC format using GDAL Python package?

I tried using GDAL Translate as follows and encountered an error. OutTileName_tif = CH_14.tif OutTileName_asc = CH_14.asc gdal.Translate(OutTileName_tif, OutTileName_asc) Error message is ...
Ramesh K Banagar's user avatar
8 votes
0 answers
1k views

Getting Spyder IDE to work with QGIS?

I was hoping someone could help me get Spyder working with QGIS. I am finding the python editor limiting within QGIS as I would like to debug my code, use the variable explorer, and be able to run ...
owl7's user avatar
  • 81
3 votes
0 answers
99 views

Spyder 3.2.6 does not work with GRASS GIS 7.2.2

I've installed spyder 3.2.6 with pip from the OSGeo console. There is a spyder.exe file in ~\OSGeo4W64\apps\Python27\Scripts and the Spyder package directories show up in site-packages. If I run the ...
Lou-gazi's user avatar
2 votes
1 answer
634 views

How to use gdalwarp in Spyder?

I cliped images based on gdalwarp in cmd, the code is as following: gdalwarp -q -cutline G:\2016.06.MOD\MOD02\5Clip\Clip_Image_Shp\Clip_Image.shp -tr 1000.0 1000.0 -of GTiff G:\2016.06.MOD\MOD02\...
Falcon_Baikal's user avatar
1 vote
0 answers
528 views

Coding grass through spyder: "No module named 'grass.script'" error

I'm trying very hard to get spyder to run the grass module but have not succeeded. I tried the grass documentation and these Q&As: Using Spyder IDE to develop python for Grass GIS, get '...
asher's user avatar
  • 43
12 votes
2 answers
12k views

calling gdal_merge into python script

I am new to python and breaking my head on how to use gdal_merge in a (spyder) python script. I use Windows 10, Python 3.6 and have the gdal tool installed from osgeo4w. I realize many other posts ...
Carl's user avatar
  • 133
4 votes
1 answer
4k views

How to import qgis.core in spyder?

I used to use spyder as python IDE and was learning QGIS developing recently. But I cannot import qgis.core in spyder although the library can be imported in QGIS Desktop Console successfully. Here ...
bwbj's user avatar
  • 61
1 vote
0 answers
143 views

Error attempting to Run ArcPy Script in Anaconda's Spyder [closed]

I'm attempting to switch over from running ArcPy scripts in Idle to running ArcPy scripts in Anaconda's Spyder GUI. When I copy over the code and attempt to execute it, I get the following error: ...
gis_user's user avatar
1 vote
0 answers
825 views

Importing ArcPy in 64bit Python? [closed]

I have to use 64bit python. So, I install Background Processing 64bit and change the interpreter of Spyder into python 64bit in ArcGISx6410.3. but I can import successfully in ArcMap' python window ...
bwbj's user avatar
  • 61
0 votes
2 answers
817 views

Arcpy Search Cursor with Spatial Join

I would like to to iterate through polygon features in a shapefile and spatially join them with points. I am able to do this with model builder, as well as when the polygons are in separate shapefiles ...
woot's user avatar
  • 133
0 votes
1 answer
674 views

Using IPython if set ArcGIS's python as default kernel in spyder?

i install anaconda first then set the arcgis python 2.7.8 win32 as interpreter just like Importing arcpy in Spyder said,but why i cannot open my IPython then?
bwbj's user avatar
  • 61
7 votes
3 answers
15k views

Importing arcpy in Spyder to use with ArcMap

I can't import arcpy in spyder but I don't have any problem when using PyScripter. The error that I get is: ImportError: No module named 'arcpy' I would prefer using Spyder, if I can solve this, any ...
lia's user avatar
  • 83
0 votes
1 answer
317 views

Using search cursor with ArcPy and Spyder?

I recently installed ArcGIS 10.3.1 (previously had 10.1 installed) and I am trying to run a script in Spyder 2.7 that has always worked and getting the below error: "Traceback (most recent call last)...
help.me's user avatar
5 votes
1 answer
2k views

Using Spyder IDE to develop python for Grass GIS, get 'ImportError: No module named grass.script'

I am trying to use Spyder IDE to develop a python script using python library from grass-6.4.3. I run the script below, and get ImportError: No module named grass.script I am using python 2.7, ...
Poa Chui's user avatar
2 votes
1 answer
1k views

arcpy, CalculateField: 'geoprocessing sys.stdout object' object has no attribute 'flush'

Working with 10.2.2, 64bit geoprocessing arcpy installation. Getting this error from arcpy.CalculateField_management() command. From Spyder IDE in an ipython console, I get the error: [IPKernelApp] ...
nick_eu's user avatar
  • 195
1 vote
1 answer
623 views

Installing GDAL with HDF4 driver on Debian system [duplicate]

I am working on a Debian 7 Wheezy system using Anaconda and working from Spyder. I've had a hard time installing a version of GDAL that reads HDF4 drivers. Could someone walk me through the ...
Emily's user avatar
  • 749
3 votes
1 answer
1k views

Pymodis downloading?

I'm trying to download and process MODIS imagery using pymodis. I have Python 2.7.8 (Spyder), numpy 1.9.1 and gdal 1.11.1. I've also installed WXPython. I originally tried to use the modis_download....
Emily's user avatar
  • 749
20 votes
2 answers
8k views

Link QGIS to Anaconda Python Distribution: Spyder, iPython Notebook, pip, scikit-learn

I have Anaconda as my primary Python distro, and want to route Python related QGIS scripts through it. With Anaconda, I have Spyder, can easily install packages with pip, and can launch a iPython ...
user40318's user avatar
  • 221