Questions tagged [importerror]
Refers to errors that result from attempting to import a module or library into one's code
importerror
3,502
questions
0
votes
0
answers
8
views
I want to import RareLabelEncoder from feature_engin
i am trying to import RareLabelEncoder from feature_engine.encoding but it keeps giving me this error summary: ImportError: cannot import name '_get_container_adapter' from 'sklearn.utils._set_output' ...
-4
votes
0
answers
22
views
Import error in Visual Studio Code for importing own classes [closed]
I need some help with imports in Python. My code produces the following error:
Traceback (most recent call last):
File "e:\python\programs\pong_game.py\main.py", line 3, in <module>
...
-2
votes
0
answers
20
views
TensorFlow/Keras `load_img` Error: "Could not import PIL.Image"
I am facing an import error despite downloading the pillow module and yes I have uninstalled pillow despite that I am facing the error. Any idea how to fix it? https://i.sstatic.net/eAhcTExv.png
I am ...
3
votes
2
answers
35
views
ImportError: can't import name perf_counter. What may be the reason?
I`ve been working on my code for Micropython-flashed ESP8266, and well... this error occured:
from time import perf_counter
ImportError: can't import name perf_counter
I believe that the whole code ...
0
votes
1
answer
401
views
ImportError: cannot import name 'CommitInfo' from 'huggingface_hub'
I am encountering an ImportError when running a Python script that imports CommitInfo from the huggingface_hub package. The error message is as follows:
ImportError: cannot import name 'CommitInfo' ...
0
votes
0
answers
16
views
ModuleNotFoundError 'forge.logging.config' while installing AutoGPT
I'm trying to install autoGPT (I've followed all the steps before the one I am doing now) but I cannot find out why when I run (from inside autogpt directory)
python -m autogpt
it gets me
Traceback (...
-1
votes
0
answers
147
views
DLL load failed while importing _imaging: The specified module could not be found
I had been working with python modules and libraries for a while now and I have encountered a very unusual error recently while importing modules such as matplotlib, seaborn library etc.
from ...
0
votes
0
answers
38
views
Unable to Import Opencv while converting .py to .exe executable file even after applying multiple solutions. Missing configuration file: ['config.py']
I have been trying to convert one of my OpenCV projects into an executable file using PyInstaller. The file is working in my command prompt, but whenever I try to run it through the .exe, I get the ...
0
votes
0
answers
18
views
Cannot import type interfaces of AWS js sdk v3
I am using AWS pinpoint service with typescript. And I want to define return type for GetSegmentCommand's output. The docs says that it is exported as this:
export interface GetSegmentCommandOutput ...
0
votes
1
answer
27
views
I'm having problems with importing next/image and next/link
None of my next/ imports are working. I currently am using Next.js v14.2.4 and Node v18.17.0. On my "/app/page.tsx", I have these two imports:
import Image from 'next/image';
import Link ...
2
votes
0
answers
77
views
RecursionError when importing libraries in Jupyter Notebook
I installed Jupyter Notebook on my new computer. When I am trying to import python libraries, some raise no errors, and others (known libraries that I have worked with before) raise a recursion error ...
0
votes
1
answer
183
views
dgl torch incompatability error: Cannot load Graphbolt C++ library
I'm attempting to install and setup dgl in google colab via the DGL install instructions:
!pip install torch
!pip install dgl -f https://data.dgl.ai/wheels/torch-2.3/cu121/repo.html
Which installs ...
-2
votes
0
answers
60
views
I have been getting a JSONDecodeError as an ImportError and I am not sure how to solve it. What am I doing incorrectly?
This error persists every time I run a bunch of code:
line 1, in <module>
from exa_py import Exa
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/...
-2
votes
2
answers
668
views
ImportError: cannot import name 'runtime_version' from 'google.protobuf'
PS D:\RealTimeObjectDetection> python Tensorflow/models/research/object_detection/model_main_tf2.py --model_dir=Tensorflow/workspace/models/my_ssd_mobnet --pipeline_config_path=Tensorflow/workspace/...
1
vote
0
answers
14
views
python: "from library import module" works, but "import library.module" could not be resolved
I've got this dts:
Pipfile
module-common\
__init__.py
setup.py
common\
library-common.py
module-a\
__init__.py
setup.py
functional-module\
library-a.py
library-b.py
Pipfile is ...