Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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.

10 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
627 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'] ...
3
votes
1answer
66 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 ...
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 ...
2
votes
0answers
415 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 ...
2
votes
0answers
982 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 ...
2
votes
1answer
542 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
79 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
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 ...
1
vote
0answers
77 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 ...
0
votes
0answers
84 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", ...