Questions tagged [spyder]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
47 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 ...
1
vote
2answers
47 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, ...
1
vote
1answer
22 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....
1
vote
0answers
44 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....
1
vote
2answers
45 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 ...
0
votes
0answers
32 views

import qgis.core in Spyder- DLL load failed

First off, I'm working with QGIS 3.4.5, Spyder 3.6 installed through ArcGIS Pro (2.3.2) python package manager on Windows 10. I can't get the qgis.core module to load and I need some help. I'm ...
0
votes
0answers
39 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 ...
0
votes
1answer
117 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 ...
1
vote
0answers
122 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 ...
0
votes
1answer
105 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 ...
2
votes
1answer
130 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 ...
3
votes
0answers
503 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 ...
3
votes
0answers
71 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 ...
1
vote
1answer
263 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\...
1
vote
0answers
401 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 '...
9
votes
1answer
3k 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 ...
3
votes
1answer
2k 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 ...
1
vote
0answers
117 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: ...
1
vote
0answers
624 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 ...
0
votes
2answers
448 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 ...
0
votes
1answer
555 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?
5
votes
2answers
7k views

Importing arcpy in Spyder

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 ...
0
votes
1answer
259 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)...
4
votes
1answer
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, ...
2
votes
1answer
931 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] ...
1
vote
1answer
421 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 ...
3
votes
1answer
526 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....
20
votes
2answers
5k 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 ...