Skip to main content

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
0 votes
0 answers
49 views

Error when trying to import a .dwg file in QGIS 3.34.2

I'm trying to import a .dwg file from a client into QGIS using Import/Export -> Import layers from DWG/DXF. Then I'm selecting the correct source drawing & target package, however when I press ...
Harry's user avatar
  • 1
0 votes
0 answers
27 views

Problem with Python / Multiple Ring Buffer

I can't open any Tools that use Python script - and I have no idea about these things. I get the following error note: I don't know anything about the "IT" side of things. Last line of text ...
MarkusV's user avatar
0 votes
0 answers
34 views

Error when running LecoS Plugin in QGIS (Query raster values- Point): NameError: name 'QMessageBox' is not defined

This error message comes up when I try to run the LecoS Plugin in QGIS for querying landcover raster values at coordinate points of Bluetit birds on my map: QGIS version: 3.32.3-Lima QGIS code ...
Maria Chiara Horne's user avatar
0 votes
0 answers
61 views

Import error 'It seems your QField project was not set to offline editing'

It was my first time using QField for a survey project and I hadn't realised that when I configured my QField package I should have set it to 'offline editing' instead of 'copy'. I have now collected ...
Emma's user avatar
  • 1
1 vote
0 answers
106 views

Having issues trying to plot SPC outlook in Anaconda

My code works perfectly until I go to run this cell panel = MapPanel() panel.title = 'SPC Day 1 Convective Outlook (Valid 12z Mar 31 2023)' panel.plots = [geo] panel.area = [-120, -75, 25, 50] ...
Andrew Clouse's user avatar
2 votes
1 answer
124 views

ImportError when importing QgsCoordinateReferenceSystem

I'm trying to import QgsCoordinateReferenceSystem for a QGIS plugin but it keeps complaining about either trying the Core, Gui, or Widget modules. The import line reads: from PyQt5.QtCore import Qt, ...
afernandezody's user avatar
0 votes
0 answers
24 views

Correcting 'ImportError: No module named arcpy' without admin rights using Wing IDE 101 8 [duplicate]

Error: 'ImportError: No module named arcpy' I am new to Python programming (or any programming) and basically teaching myself. I'm using Wing IDE 101 8 (recommendation from a previous coworker who ...
ExplainLikeIm5's user avatar
2 votes
0 answers
131 views

No module name qgis in QGIS 3.22

I recently upgraded to QGIS 3.22 For plugin development I am using PyCharm. after upgrading QGIS to this version PyCharm is not able to read the pyqt, QGIS modules. I am running PyCharm with the ...
Velugoti Venkateswarlu's user avatar
1 vote
4 answers
2k views

Setting up ArcGIS Pro 3.0 Python env in PyCharm - Can´t import arcpy module

I'm trying to set up PyCharm to work with the Python environment (Python 3.9.13) installed with ArcGIS Pro 3.0 on a new computer (Win 11). I've tried cloning the environment both from within ArcGIS ...
Emanuelv's user avatar
1 vote
1 answer
790 views

Error message when loading Geopandas package

I downloaded the latest version of Anaconda and installed Geopandas through the navigator. When I import the package the following error message is displayed: --------------------------------------...
Oalvinegro's user avatar
2 votes
1 answer
5k views

ImportError when importing Linestring from shapely.geometry [closed]

With this code I tried to import shapely.geometry: import shapely as shp import geopandas as gpd from shapely.geometry import Polygon, Linestring However, I faced the following error: ImportError: ...
yasser abd's user avatar
0 votes
1 answer
364 views

Adding a CSV with GPS coordinates points and bathymetry data to Google Earth Engine

I'm trying to construct a bathymetry point map on GEE, and I want to import a CSV that contains bathymetry data. The CSV that I'm about to import to GEE has the following columns: Latitude, Longitude ...
Joji's user avatar
  • 11
2 votes
0 answers
680 views

arcgis to_featurelayer() crashes kernel with ImportError: PyCapsule_Import could not import module "datetime" [closed]

My python kernel and ArcGIS both crash when I try to export a spatially enabled DataFrame to a featurelayer or featureclass in one of my virtual environments. In addition to the python and ArcGIS ...
CGP's user avatar
  • 21
0 votes
0 answers
2k views

Can’t import any python modules in Jupyter notebook with newly created environment, ImportError: DLL load failed: specified module could not be found

(base) C:\WINDOWS\system32>conda activate agrodss (agrodss) C:\WINDOWS\system32>python Python 3.7.7 (default, May 6 2020, 11:45:54) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32 Type &...
Abhilash Singh Chauhan's user avatar
1 vote
0 answers
610 views

ImportError: No module named osgeo

I'm running a .bat script (included) in the cmd prompt. I get the error "ImportError: No module named osgeo" when it tries to call the gdal_merge.py command. I think this has something to do ...
gpatkinson's user avatar
4 votes
2 answers
21k views

ModuleNotFoundError: No module named '_gdal'

I am using Python 3.6 and still having this problem,, although I have tried to uninstall both numpy and GDAL and installed them again in the order numpy then GDAL I am using Windows 10. This was my ...
python_3's user avatar
2 votes
1 answer
2k views

ImportError: cannot import name 'CRS' from 'pyproj'?

I have installed pyproj version 1.9.6. using the command prompt window. However, when trying to import CRS (from pyproj import CRS), I receive the following ImportError: ImportError: cannot import ...
Sadhana's user avatar
  • 21
1 vote
0 answers
629 views

ImportError: DLL load failed when running a script tool in ArcGIS Pro

I created a multiprocessing script that runs perfectly when running in an IDE (Spyder) but is giving me errors when running through the script tool in ArcGIS Pro. Here is the traceback: Running ...
debugman's user avatar
2 votes
2 answers
2k views

ModuleNotFoundError: No module named 'colour' in QGIS Python Console

I'm trying to run a Python script in QGIS which imports the colour module. However, when I run it via the Python console in QGIS, I receive the ModuleNotFoundError: Python Console Use iface to access ...
Josh.s's user avatar
  • 41
5 votes
2 answers
1k views

Installing Fiona into cloned conda environment in ArcGIS Pro gives ImportError

I am trying to install Fiona into a cloned conda environment in ArcGIS Pro. I have cloned the default environment and tried to install it both through ArcGIS and through the conda prompt (through ...
jeff-diz's user avatar
0 votes
1 answer
837 views

PyQGIS in standalone scripts on Mac, import error

Following the PyQGIS Developer Cookbook to use PyQGIS in standalone scripts. Fixed the initial errors by setting the PYTHONPATH and DYLD_PYTHON_PATH to the appropriate folders but am now faced with ...
Rob's user avatar
  • 189
0 votes
1 answer
138 views

Import ArcPy in ArcMap

I am facing this problem how to fix it. How can I fix it? I already uninstall and reinstall numpy but that did not work.
Mumtaz Ali's user avatar
4 votes
1 answer
590 views

ArcPy Cannot import name metadata

I am using ArcGIS 10.5 and i am trying to get metadata information of a featureclass by calling following statement from arcpy within the ArcGIS Environment. import arcpy from arcpy import metadata ...
user4906240's user avatar
  • 1,078
0 votes
0 answers
159 views

Since installing QGIS 3.10.1-A Coruña I can't get Python script to work in IDLE: ImportError: No module named qgis.core

I have tried adding sys.path.append and under cmd.exe set Python Path but am still getting the dreaded ImportError: No module named qgis.core. I set PythonPath to C:\OSGeo4W64\apps\qgis\python I ...
Todd's user avatar
  • 45
2 votes
1 answer
2k views

QGIS plugin - NameError: name 'iface' is not defined while importing class from other file

Here is my class class aClassName(): def __init__(self): #do something... iface.setActiveLayer(QgsProject.instance().mapLayersByName('someName')[0]) #do something ......
Pete's user avatar
  • 355
0 votes
0 answers
171 views

Import error with Mapnik in Anaconda 2

I'm using Anaconda to write geographic programs, so I need to use packages like Mapnik. After installing Mapnik in Anaconda2, it started to error. First about Mapnik itself and after do some actions ...
saman's user avatar
  • 1
2 votes
1 answer
3k views

ModuleNotFoundError: No module named '_gdal' ... but I have GDAL

I'm really at my wit's end with this. I'm on a Macbook running Sierra 10.12, so I used the KyngChaos installation of QGIS 3.8. I followed the instructions in the ReadMe (added the PATH variable), and ...
vastava's user avatar
  • 125
2 votes
2 answers
3k views

QGIS Python ImportError: No module named builtins

When I am executing a python script for doing a geoprocessing task using QGIS Desktop 3.8.3 (executed using a windows .bat file), I am getting an import error. from builtins import zip ImportError: ...
Sreeraj's user avatar
  • 729
7 votes
2 answers
1k 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 ...
Javi_Navarro's user avatar
3 votes
1 answer
3k views

ImportError: No module named qgis.core on Windows 10

I am trying to execute the following code on my Windows 10 with QGIS 2.18.20. from qgis.core import * from qgis.utils import * import os, sys QgsApplication.setPrefixPath("C:/Program Files/QGIS 2.18/...
Taras's user avatar
  • 33k
1 vote
1 answer
979 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 ...
dmjf08's user avatar
  • 1,273
1 vote
1 answer
395 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 ...
Leo.1906's user avatar
  • 477
2 votes
0 answers
118 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 ...
Jorge Mendes's user avatar
2 votes
1 answer
342 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?
Pretsky's user avatar
  • 21
2 votes
0 answers
465 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 ...
ohh_danielson's user avatar
1 vote
0 answers
137 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....
Paria's user avatar
  • 19
1 vote
2 answers
3k 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>...
Flora Day's user avatar
0 votes
0 answers
150 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", ...
Yanglan Wang's user avatar
0 votes
1 answer
447 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-...
Oskar Karlsson's user avatar
1 vote
0 answers
40 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 ...
KyrosGeo's user avatar
4 votes
1 answer
8k 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:...
Kevin's user avatar
  • 531
14 votes
4 answers
24k 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 ...
joseph's user avatar
  • 141
0 votes
1 answer
2k 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 ...
Chris Papas's user avatar
6 votes
1 answer
5k 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-...
Ash's user avatar
  • 1,210
3 votes
1 answer
2k 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: ...
james's user avatar
  • 93
2 votes
3 answers
3k 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 ...
Mari C's user avatar
  • 21
1 vote
1 answer
292 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 ...
weiji14's user avatar
  • 1,751
4 votes
4 answers
4k 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 ...
marcp's user avatar
  • 915
2 votes
1 answer
1k 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\...
Hub45's user avatar
  • 21
1 vote
0 answers
100 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 ...
geoJshaun's user avatar
  • 1,535