Linked Questions
47 questions linked to/from Unresolved reference issue in PyCharm
4 votes
2 answers
9k views
ModuleNotFoundError even with __init__.py [duplicate]
I have a project with the following structure: . └── project ├── assignment01 | ├── __init__.py | └── old_file.py | ├── assignment02 | ├── __init__.py ...
0 votes
2 answers
2k views
ModuleNotFoundError error with installed package in PyCharm [duplicate]
I'm trying to create my first package using the format from the python tutorial and am getting ModuleNotFoundError when trying to run unittests from the tests subfolder in PyCharm, but can run the ...
0 votes
1 answer
187 views
How can I import my personnal modules in python? [duplicate]
I have a problem with my python modules for a project. Here's my tree for my project : Documents/Projects/projet/ ├── code │ ├── datas │ │ ├── Lexique383 │ │ │ └── Lexique383.tsv │ │ └─...
1 vote
0 answers
123 views
How to set PyCharm project structure to avoid unresolved reference error? [duplicate]
I have specific project structure - src - common/ - constants/ - __init__.py - database.py - user - create/ - main.py - constants/ - app_constants.py -...
1 vote
0 answers
115 views
Why do I get unresolved reference while the included file is there? [duplicate]
Currently I'm working with multiple people on a python project. We are working with Github. I connected Git with Pycharm. There is a main file and in that main file there are functions called from ...
0 votes
1 answer
115 views
Unresolved reference 'addresses' in Pycharm Community Edition [duplicate]
My Project Structure My Pycharm Screenshot Hello, if you can see the attached screenshot of my Django project in Pycharm, you'll see that all the imports from other app folders have a red ...
0 votes
1 answer
75 views
Import python package with relative path and calm down the IDE [duplicate]
Consider I have a project with the following structure: A/a1.py A/B/b1.py A/B/C/c1.py D/E/F/f1.py main.py I need to do the following imports main.py needs to import a1 a1 needs to import b1 b1 needs ...
0 votes
1 answer
57 views
Problem with importing python classes from different folders [duplicate]
This is how my project looks: src/ data_readers/ - __init__.py - d2d_releases_reader.py main/ d2d_interactions/ - __init__.py - ...
0 votes
0 answers
48 views
Problems executing files through venv python local imports cause errors [duplicate]
Im having some issues with virtual enviroments, i have a pycharm project where i want to launch it from my terminal, however when launching the project it seems like my internal modules are not found. ...
0 votes
0 answers
49 views
How to get the Packages I am Using in Jupyter into PyCharm [duplicate]
I have recently started using PyCharm to write my python code. In the past, I have used Jupyter Notebook more. I thought that the packages I have installed in Jupyter would work in PyCharm, but this ...
0 votes
0 answers
44 views
PyCharm doesn't recognise imported module from sibling to project root folder [duplicate]
I have a folder structure as follows: python_projects | |- common_tools | |- __init__.py | |- some_functions.py | |- some_project |- main.py I currently import some_functions.py into main.py as ...
0 votes
0 answers
43 views
How to make python import be recognised with path [duplicate]
I have a project that I imported. It has structure of: my_package | _ my_package | _ operators |_ myoperator.py (that contains MyOperator class) imports in code of ...
0 votes
0 answers
29 views
How to use a .py file as a module in PyCharm? [duplicate]
I am copying analysis files to my local PyCharm to reproduce parts of it. I have a scsim.py file which runs without errors. But when I call it from another .py file as from scsim import scsim, it says ...
224 votes
14 answers
309k views
PyCharm error: 'No Module' when trying to import own module (python script)
I have written a module (a file my_mod.py file residing in the folder my_module). Currently, I am working in the file cool_script.py that resides in the folder cur_proj. I have opened the folder in ...
15 votes
7 answers
27k views
PyCharm unresolved reference when importing class from other file
This problem has been driving me nuts. I am trying to import a class from a file in the same directory. PyCharm is giving me the "Unresolved reference" error. MyClass is defined in file.py. I have ...