Questions tagged [spyder]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
33 views

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

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
42 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
25 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
87 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
102 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
93 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
114 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
446 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
242 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
396 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
113 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
601 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
440 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
539 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
255 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
911 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
411 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
510 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....
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 ...