Skip to main content

All Questions

0 votes
1 answer
122 views

I got ModuleNotFoundError and ImportError in importing pyreadstat (no error in installing in terminal)

I am learning python, and have a trouble installing pyreadstat. I could find many folks has same issue, and tried to follow the answers in them, these did not work for me as well. Therefore, I am ...
Simon Shin's user avatar
0 votes
0 answers
346 views

how to solve Error installing whisper-mic: ModuleNotFoundError: No module named 'whisper_mic.utils'

I'm following this video of how to install whisper-mic. It's as simple as creating a virtual env and then running pip install whisper-py. It gives me errors like the following: ERROR: Could not find a ...
Toka Ayman's user avatar
0 votes
0 answers
53 views

Import Error while making a package using setup.py

I am trying to build a python package which has a setup.py file , I created an entry point but I run through it then it gives import error otherwise if run normally in vs code it does not gives import ...
priya yadav's user avatar
0 votes
0 answers
27 views

Cannot import package despite successful pip install

After running pip install . in docker container over the setup.py: from setuptools import setup, find_packages with open('../requirements.txt') as f: required_packages = f.read().splitlines() ...
shepan6's user avatar
  • 134
0 votes
0 answers
43 views

ModuleNotFoundError in Python even though I have __init__.py in subdirectories

My project is structured like this: Project structure The _init_.py files are empty. When I'm in the directory ats_program in the terminal and run python lha/build_annoy_index.py | get a ...
dmbfck's user avatar
  • 1
0 votes
1 answer
629 views

Cannot import from my custom python package. ModuleNotFoundError: No module named 'a_python_file_inside_my_custom_module'

I am trying to build a python package following this tutorial. So I have made a base folder, then a module folder, then inside it I have placed the file starting_template.py, which contains the ...
Tms91's user avatar
  • 4,042
0 votes
0 answers
22 views

How to structure python project to allow mutual dependency?

How to import both car and abstract_vehicle in main.py? I keep getting circular dependencies error or ModuleNotFoundError. Project structure ├── vehicles │ ├─�� __init__.py │ └── abstract_vehicle....
Gameriker's user avatar
0 votes
1 answer
31 views

PyCharm does not recognise installed module

The code was working without any isses. Suddently Pycharm return ModuleNotFoundError: No module named 'matplotlib'. The same error appears for the other pachages as well. My iterpreter has given ...
Gosia Gniadek's user avatar
0 votes
0 answers
51 views

unable to run main.py from cmd line

I'm working on the code for an "application". I've main.py in the "application" folder. Within "application" folder, in application\venv\Lib\site-packages , I've all the ...
Nupur's user avatar
  • 89
0 votes
0 answers
94 views

ModuleNotFoundError: my script can't find the module that I had written for my data analysis

I am working on project for my thesis and wrote a data analysis program with fellow students. Originally I had used the program on my windows laptop where everything worked just fine. Unfortunately, ...
Archimedes21's user avatar
0 votes
3 answers
3k views

ModuleNotFoundError: No module named 'wx._core' when importing wx in Python 3.11 even though the file exists in the directory

I'm trying to import wx, and getting an error. I'm using wxPython version 4.2.0, installed with pip 22.3.1. I'm on Windows 10. Here's how I get the error and what it says: Python 3.11.0 (main, Oct 24 ...
Draxuss's user avatar
  • 13
0 votes
2 answers
1k views

ModuleNotFoundError in PIP package install in Conda Environment

I am trying to install a package in a new conda environment using the pip command. It installs, but with errors, and I get ModuleNotFoundError in the IDE. The steps: conda create --name ...
SimbaNinja's user avatar
1 vote
1 answer
2k views

Importing Packages and Subpackages in Python

I am new to python. Although the language is clean and easy to learn, I am finding a hard time understanding the mechanics of imports. I have searched a lot about it on the web, most of the articles ...
Anupreet Choudhary's user avatar
0 votes
1 answer
328 views

Import Python file from another directory raises ModuleNotFoundError

I want to import a python file from another directory. I can import the stuff but it can't find those dependencies in the python file and raises me the ModuleNotFoundError exception. These trees might ...
Sadra's user avatar
  • 337
1 vote
1 answer
457 views

Local package installed using pip can't be imported although it is shown in pip list

I have problems importing two local (self-written) packages from my file system that I previously installed using pip. I'm using a virtualenv, which I also verified to be activated, i.e. python and ...
Robert Kirsten's user avatar

15 30 50 per page