Questions tagged [importerror]

Ask Question

Refers to errors that result from attempting to import a module or library into one's code

3,434 questions
12 votes 1 answer 2k views

Cannot use import statement outside a module when importing modules in a web worker

I'm trying to import a module in a web worker that imports another module and getting the following error Uncaught SyntaxError: Cannot use import statement outside a module. My web worker is importing ... zoran404's user avatar zoran404
  • 1,802
-1 votes 0 answers 18 views

ImportError: cannot import name 'Autoreg' from 'statsmodels.tsa.ar_model

I'm using python 3.10.2 and statsmodels 0.14.1. from statsmodels.tsa.ar_model import Autoreg It is showing ImportError: cannot import name 'Autoreg' from 'statsmodels.tsa.ar_model' I've tried pip ... John Gordon's user avatar John Gordon
  • 30.5k
0 votes 0 answers 23 views

h5py: DLL load failed while importing defs: The specified procedure could not be found [duplicate]

I'm using Conda env and jupyter notebook to run my Python program. So I just want to save the model of semantic segmentation as followed by a youtube tutorial. These are the packages that I'm using. ... Christoph Rackwitz's user avatar Christoph Rackwitz
  • 12.4k
6 votes 4 answers 13k views

ImportError: cannot import name 'getargspec' from 'inspect' (C:\Users\Swapn\AppData\Local\Programs\Python\Python311\Lib\inspect.py)

File "f:\drug-traceability-blockchain-maddy\src\app.py", line 2, in <module> from web3 import Web3,HTTPProvider File "C:\Users\Swapn\AppData\Local\Programs\Python\Python311\... Daniel Stern's user avatar Daniel Stern
  • 1
0 votes 2 answers 406 views

'React' is declared but its value is never read in a .tsx file

I am working on a React project. Is the React import not necessary for .tsx files? The file is building fine but not reading the React import. Throwing the following error in the screenshot. What ... Raine Revere's user avatar Raine Revere
  • 31.6k
0 votes 0 answers 34 views

How to overcome Django error - [ERROR] Runtime.ImportModuleError: Unable to import module 'core.wsgi': No module named 'django'

I am having issues setting up my Django app onto AWS using Lambda and API gateway. Here is my application configuration: The Django app I have created is a simple automation dashboard with the ... AyeVeeKay's user avatar AyeVeeKay
  • 149
0 votes 0 answers 19 views

camera calibration ImportError: dynamic module does not define init function (initcv_bridge_boost) [closed]

I'm trying to calibrate my robot's camera, after running this command: rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.025 image:=/camera/rgb/image_raw camera:=/camera . then i got ... Christoph Rackwitz's user avatar Christoph Rackwitz
  • 12.4k
0 votes 0 answers 69 views

Jupyter returning error for no clear reason

I had been doing a ML course where we had to use conda + anaconda. In the course, they start up jupyter through the terminal, which for some reason I couldn't do. So I started using the microsoft ... John Carter's user avatar John Carter
  • 29
1 vote 1 answer 46 views

Although installed pyg_lib successfully, getting error while importing

I have successfully installed pyg_lib on my Mac (intel cpu) with anaconda Jupyter notebook. So, when I run this code: pip install pyg_lib it returns: Requirement already satisfied: pyg_lib in /opt/... Daniel Perez Efremova's user avatar Daniel Perez Efremova
  • 101
430 votes 27 answers 1.0m views

ImportError: No module named 'Tkinter' [duplicate]

For some reason, I can't use the Tkinter (or tkinter, on Python 3) module. After running the following command in the python shell: import Tkinter or this, in Python 3: import tkinter I got this ... Sout parl's user avatar Sout parl
  • 99
0 votes 0 answers 22 views

Import error setting up app for MacOS - problem with libffi.8.dylib

I am having trouble making an app run on MacOS. The app builds on py2app, I am using the configurations below to set up the app but has the same result as not using the export lines. I'm trying to do ... Raphael Piovezan's user avatar Raphael Piovezan
  • 1
1 vote 2 answers 8k views

ModuleNotFoundError: No module named 'pytorch_lightning.core.decorators' | Google Colab GPU session

In my Google Colab GPU runtime, I try to install pytorch_lightning. So I do the following in the order: !pip list | grep torch torch 2.0.0+cu118 torchaudio 2.... bhomaidan90's user avatar bhomaidan90
  • 96
0 votes 1 answer 27 views

Data Integrity Error while loading Gzip Data in Exasol

I am trying to load a gzip file into an Exasol Table but I am getting a data-integrity error while doing so. It is showing "java.sql.SQLException : ETL-5301 : A data integrity error while ... Kimberly Poolos's user avatar Kimberly Poolos
  • 1
-1 votes 2 answers 347 views

ModuleNotFoundError and ImportError when trying to import can package

When I try to run code with imported can package import can from can.interfaces.vector import canlib from datetime import datetime I get an error: ModuleNotFoundError: No module named 'can.... engrtech's user avatar engrtech
  • 1
8 votes 3 answers 27k views

How to import List from typing module to recognize the type List[int] in Class?

While running my python3 code, I am getting the below error: 'TypeError: 'type' object is not subscriptable' System unable to recognize typing module having List parameter while I am trying to set ... Daniel Moraite's user avatar Daniel Moraite
  • 477

15 30 50 per page12345229

You Might Also Like