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
3
votes
1answer
36 views

QGIS cannot import SciPy (QGIS 3.6 Noosa, Ubuntu 18.04, EnMapBox plugin)

I had been struggling to get QGIS installed because (currently) the ubuntugis repo seems to not be working well (couldn’t load Python at all). I got around that problem by installing QGIS using ...
0
votes
0answers
22 views

Import Arcpy error [duplicate]

I am having an issue with importing arcpy. Initially I thought that it might be that the version of the Anaconda software that I had been running was 64 bit, therefore I changed it to 32 bit to try ...
1
vote
1answer
131 views

Deprecation warning when importing Processing in pyQGIS 3

I use QGIS 3.4 with Python 3.7 and I have a warning message when importing Processing like this : import processing from processing.core.Processing import Processing Here is the message : Using or ...
1
vote
1answer
99 views

WPS fix import of org.geotools.util.factory.GeoTools

I need to import the org.geotools.util.factory.GeoTools import org.geotools.util.factory.GeoTools; but the compiler has issues finding the import. I set up my project using maven with the following ...
2
votes
0answers
80 views

can't import traceback in QGIS 3.2.2

I have compiled QGIS from branch QGIS-release-3.2 on bionic beaver (ubuntu 18.04), the ccmake step detects python 3.6 path (/usr/bin/python3.6) and all the compilation goes OK Starting QGIS 3.2.2 the ...
1
vote
1answer
118 views

QCoreApplication error

In 3.2 and now 3.2.1 I get a Python error: ImportError cannot import name 'QCoreApplication' I also see a yellow line highlighted as the problem line: from qgis.core import Any ideas?
2
votes
0answers
390 views

QGIS v3 ImportError: No module named builtins

I am trying to automate some tasks in QGIS, and I was initially going to use the model builder but I thought I would try some Python instead, using PyQGIS. I am using this as a quick start guide as ...
1
vote
0answers
76 views

Execution Error in Python when calling Clip tool

I have written a simple code in python for clipping. The code is : #Step 1 To clip the Study area import arcpy import os import sys from arcpy import env from arcpy....
1
vote
2answers
1k views

How to fix Import arcpy ImportError: cannot import name _remove_dead_weakref [closed]

When I try to import arcpy into the python window in ArcGIS Desktop and I am given this ImportError. >>>import arcpy Runtime error Traceback (most recent call last): File "<string>...
0
votes
0answers
76 views

In ArcMap, when I use PointsToLine in ArcToolbox, error appears

In ArcMap, I open the Python window and print some codes as followed: import arcpy arcpy.env.workspace = "C:/data" arcpy.PointsToLine_management("calibration_points.shp", ...
0
votes
1answer
227 views

Using IDRISI/TerrSet Python API gives ImportError: No module named win32com.client?

I am trying to use the Python API for TerrSet (formerly Idrisi) to run some tests. According to the downloadable API documentation (https://clarklabs.org/download/idrisi-applications-programming-...
1
vote
0answers
34 views

Importing Python GPRas package returns ModuleNotFoundError

I am trying to use Benny Chins GPRas Package: https://bitbucket.org/wcchin/gpras/src/master/ When I try to import the Package, I get: ...\GPRas\__init__.py", line 3, in <module> from GPRa ...
2
votes
1answer
5k views

Got “ImportError: No module named osgeo” in gdal_calc but not in main script [closed]

I could import gdal without any problem in my main Python script with: from osgeo import gdal I could also use gdalwarp, gdal_translate with no issue. But when it comes to gdal_calc, I got the error:...
6
votes
2answers
6k views

GDAL ImportError: DLL load failed: The specified module could not be found

I'm running Python 3.5.4 on Anaconda and i'm trying to install geopandas. I've followed the instructions to install geopandas here - http://geoffboeing.com/2014/09/using-geopandas-windows/ - but ...
0
votes
1answer
604 views

arcpy DLL load failed in standalone script

I have python 2.7 x64 bit and I have ARCGIS 10.5 x32 bit on windows 10. I try to build standalone arcpy scripts but I take all time : ImportError: DLL load failed: % is not a valid Win32 ...
4
votes
1answer
2k 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-...
2
votes
1answer
1k views

How to avoid updating PATH by copying SIP module to appropriate directory

I continue to have very time-consuming problems with import statements in the Python scripts that I attempt to write. In this particular script, I want to use QGIS functionality, and so it begins: ...
2
votes
3answers
758 views

QGIS 2.18.9 pluggin DXF2SHP

Again, Super new here. I downloaded the DXF2SHP plugin, just to import the full characteristics of my files, but whenever I try to actually convert from a simple DXF file to SHP as I´m supposed to ...
1
vote
1answer
217 views

QGIS 2.99 dev python import processing fails with ImportError

I've just installed one of the nightly build versions of QGIS 3.0 to have a play with, but on start-up, it's complaining that: Python error: Couldn't load plugin 'processing' See message log (Python ...
4
votes
4answers
3k views

“ImportError: cannot import name uic” error in QGIS

I've just updated to the current version (2.18.5 on Windows) of QGIS, in the hope of getting rid of the above error, without success. Some time ago I tried to install the QField Sync plugin, which I ...
2
votes
1answer
530 views

gdal_merge.py cannot import gdal in Windows 7 Anaconda GDAL Installation

I have an installation of GDAL through Anaconda that is mostly working, but it throws an ImportError whenever I run gdal_merge.py: Traceback (most recent call last): File "C:\Users\xxx\AppData\...
1
vote
0answers
72 views

Cannot import pyqgis into PythonWin

I'm new to pyqgis so I may be headed in the wrong direction on this. I imported qgis on python consolde in qgis, no problem. However when I try to do this in PythonWin, I get an error saying the ...
1
vote
1answer
205 views

Troubleshooting “import arcpy” command? [closed]

This is the first time im using python/arcpy. I keep getting an error with import arcpy command. Can anyone help me find out why? import arcpy Runtime error Traceback (most recent call last): ...
4
votes
1answer
260 views

import anaconda-installed modules from arcgis's python

How can I import anaconda-installed modules from arcgis's python shell? I have tried the method described in https://sites.google.com/site/advancedgisprog/other-resources/arcgis-anaconda-packages. ...
4
votes
0answers
610 views

DLL load error calling 64 bit arcpy from subprocess

I have script that imports arcpy, then calls a python subprocess which also imports arcpy: call.py: import arcpy import subprocess cmd = [r'C:\Python27\ArcGISx6410.4\python', 'test.py'] ...
0
votes
1answer
418 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> ...
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
0answers
965 views

Installing pygame or Tkinter for QGIS Python?

I have downloaded pygame and installed it. Now i want to write scripts and run them through the QGIS console that implement methods of pygame but when the console reads "import pygame" i get a ...
3
votes
2answers
39k views

How to fix python ImportError: DLL load failed: The specified module could not be found?

During import fiona, I am getting following error. Error is different from other user so I asked this question may be it is repeated. import fiona Traceback (most recent call last): File "D:/...
22
votes
6answers
30k 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-...
1
vote
0answers
166 views

Arcpy and pyqgis on same IDE [closed]

I have question: is it possible to set up arcpy and pyqgis on the same IDE (I use Pycharm). I have some problem with running my pyqgis scripts from pycharm. When I first configure Pycharm to recognize ...
1
vote
1answer
740 views

Import arcpy using PyScripter or IDLE gives No module named RuntimeError?

I'm trying to figure out this problem. Yesterday I installed PyScripter and since then, scripts doesn't work. When I run any script (in PyScripter or IDLE) which uses "import arcpy", I get this error ...
7
votes
2answers
2k views

Conflict between ArcPy and GDAL/OGR?

TL;DR I can't get an installation free version of GDAL/OGR to work from within ArcMap 10.0. I get an ImportError: DLL load failed on _mod = imp.load_module('_gdal', fp, pathname, description). ...
11
votes
2answers
2k views

Writing scripts that can call on both Arcpy and PyQGIS?

I have spent quite a bit of time looking for a clear answer this topic and have still been unable to really accomplish my goal of accessing PyQGIS in a stand alone script. Parts of answers have been ...
8
votes
6answers
9k views

Fiona ImportError: DLL load failed

I've been using the great Shapely/Fiona combo successfully on Linux, but now i need to create a kind of production environment on windows and theres only one problem. When i try to import fiona, i get ...
-5
votes
1answer
452 views

Installing GDAL and fiona module in ArcMap? [closed]

I am getting message like this: <font color="#ff0000" face="courier new"> <br> Traceback (most recent call last): File "<interactive input>", line 1, in <module> File "C:\...
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 ...
2
votes
1answer
555 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 ...
6
votes
4answers
16k 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 ...
1
vote
1answer
2k views

Getting ImportError no module named arcpy when importing into PythonWin?

Here is the error i get when i use the import arcpy command in pythonwin: Traceback (most recent call last): File "", line 1, in ImportError: No module named arcpy Can any one tell me how to ...
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 ...
5
votes
2answers
8k 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?