Stack Exchange Network

Stack Exchange network consists of 175 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
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [spyder]

The tag has no usage guidance.

0
votes
1answer
45 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 ...
0
votes
0answers
33 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
63 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
80 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
342 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 ...
0
votes
0answers
48 views

GRASS GIS - Entry point error for r.in.gdal

I am trying to run GRASS GIS 7.4.0 in Spyder (Python 2.7) - Windows 10 The simple code I am trying to run is as follows: import os import sys GISBASE = os.environ['GISBASE'] = 'C:\\Program Files\\...
3
votes
0answers
63 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
220 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
379 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 '...
8
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
98 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: ...
2
votes
0answers
558 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
423 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
515 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
6k 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
249 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
1k 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
864 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
403 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 ...
4
votes
1answer
466 views

pymodis download issues

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....
19
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 ...