All Questions
Tagged with python pythonpath
654 questions
1
vote
0
answers
75
views
Pycharm fails to find package in the defined PYTHONPATH
I have a Python monorepo. One of the services in this monorepo is "poller-service". Its general structure is:
services/
└── poller-service/
├── .venv/
| └─ ...
...
0
votes
0
answers
81
views
How to make PyCharm recognize dynamic imports for local scripts?
I'm facing a peculiar issue with PyCharm and Python imports. I have a well-organized directory with all my "stable" code, and a separate area for local scripts that are more experimental and ...
0
votes
0
answers
49
views
why won't Pycharm accept my file location for Pythonpath?
I am configuring my robot framework on a project level and am trying to enter my project file location as the pythonpath. Next to the field is this text:
Entries to be added to the PYTHONPATH
(used ...
0
votes
1
answer
126
views
Minimal way to set PYTHONPATH for developing python in VS Code and Jupyter notebook server
Related questions that do not apply:
Set PYTHONPATH for local Jupyter Notebook in VS Code - does not apply to running Jupyter server.
How to set pythonpath at startup when running jupyter notebook ...
2
votes
2
answers
135
views
Persistent ModuleNotFoundError: No module named 'src' in Python Project
I'm working on a Python project with the following structure:
/
├── src/
│ ├── __init__.py
│ ├── afrr/
│ │ ├── __init__.py
│ │ ├── dumper.py
│ │ └── cleaner.py
│ ├── config.py
│ ├──...
0
votes
0
answers
117
views
How should I manage multiple versions of a library in a Python project
I am working on a Python project, which has to support multiple versions of the same package.
For each new version, some of our wrapper classes change, and others remain unchanged from the previous ...
0
votes
0
answers
43
views
Unable to use Absolute Import to get Objects from Package __init__.py (despite PYTHONPATH Setting)
(Neither this question nor this question are duplicates - they are all resolved by setting the PYTHONPATH correctly.)
I have the basic file structure of a Python package, located in ~/github/mypackage:...
0
votes
0
answers
64
views
How to re-define PYTHONPATH --completely-- in Visual Studio Code
I need to re-define the PYTHONPATH within Visual Studio Code (VSC) without it inheriting any values from the default PYTHONPATH set in my shell (zsh).
System Information:
macOS: Sonoma 14.6.1,
Visual ...
0
votes
1
answer
143
views
Setting PYTHONPATH in Eclipse/PyDev
Added later: I stupidly capitalized OS rather than using os, so the import and print now works properly. However, the question remains: how can I add a source directory that is outside the project ...
0
votes
0
answers
48
views
Python: Own package not recognized
I have an issue where I dont get the solution.
I also look here in stackoverflow.com, tried different solutions but nothing helps.
My project struct looks like this:
-MyFolder
----MySubFolder
------...
1
vote
1
answer
94
views
How to include the project root folder into PYTHONPATH when running python script in sub folder
Here's my project structure
- folder_1
- folder_2
- file1.py
- file2.py
- folder_3
- file3.py
Now I use this command to run file1.py
python folder_1/folder_2/file1....
0
votes
1
answer
308
views
SignalIntegrity cannot import name 'math' from 'numpy'
I can not launch the SignalIntegrityApp GUI application
I carefully followed the instructions in the website:https://github.com/Nubis-Communications/SignalIntegrity/wiki/Installation
However, when I ...
0
votes
1
answer
41
views
invoking a python script from the command line leads to “[Errno2]" - PYTHONPATH is set
Ignorant new Linux/Ubuntu/StackOverflow user here.
I have my scripts for users to run in a path like /home/user/Projects/scripts/. If that is the pwd, I can invoke a script like this:
~/Projects/...
0
votes
1
answer
670
views
sys.path not always/reliably set by sitecustomize -- how can it be reliably overridden?
I have an application using embedded Python, which includes python.exe. I have added a sitecustomize.py to set sys.path, something like:
import sys
sys.path = ['.','.\\python310.zip','.\\Lib','.\\Lib\\...
0
votes
0
answers
92
views
Running different python environments within python script in linux
For my Uni thesis project, I need firstly to setup automatically multiple github repositories within python script. Problems I am facing is that:
each repository has its own requirements and some of ...