Questions tagged [importerror]

ImportError is a built-in exception for Python, which is raised when an import statement fails to find the module definition or when a from ... import fails to find a name that is to be imported.

Filter by
Sorted by
Tagged with
23
votes
6answers
32k views

Getting ArcPy to work with Anaconda?

I am trying to follow the step-by-step directions in the answer to "how to separate Python installation with ArcGIS" but cannot find the path file, DTBGGP64.pth, in C:\Python27\ArcGIS10.2\Lib\site-...
6
votes
4answers
17k views

Fixing “ImportError: No module named qgis.core”?

First of all, I'm using Python 2.7.3, QGIS 1.8 (Lisboa) on Windows 7 pro 64 bits. Now let's go to the actual question: I have written some code (Python) that works well within the QGIS built in ...
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, ...
4
votes
1answer
3k views

Understanding qgis.core import error: no module named qgis.core?

I searched all the same questions, and none of them works for me, so i decided to ask this question in addition to those: I installed QGIS 2.18 via this downloaded setup 'QGIS-OSGeo4W-2.18.11-1-Setup-...
10
votes
1answer
3k views

Importing GDAL from Python window of ArcGIS for Desktop?

I am trying to run some Python code using the Python window in ArcGIS 10.1 that uses both the arcpy and gdal modules. However, when I try and import the gdal module I get an error: ImportError: No ...
6
votes
3answers
21k views

Why can't I import arcpy?

>>> import arcpy Traceback (most recent call last): File "<interactive input>", line 1, in <module> File "C:\Python27\lib\arcpy\__init__.py", line 21, in <module> ...
6
votes
1answer
5k views

How can I Setup Python to recognize QGIS

I want to use QGIS and work with Python out of the console, but I'm having troubles letting the system recognize the paths of some DLLs. Since I couldn't find a good answer on the web, I wonder if I ...
5
votes
2answers
9k views

Resolving ImportError: No module named arcgisscripting?

I am trying to run an ArcGIS python script from Eclipse and get the following message: ImportError: No module named arcgisscripting I can run this in IDLE... any ideas?
2
votes
1answer
564 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 ...
1
vote
1answer
447 views

Troubleshooting import arcpy gives ImportError: No module named numpy? [closed]

While I try to load the arcpy module in arcGIS 10.3.1 I get the following error message: Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> ...