Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
83 views

I have a Python monorepo. One of the services in this monorepo is "poller-service". Its general structure is: services/ └── poller-service/ ├── .venv/ | └─ ... ...
CrazySynthax's user avatar
  • 15.2k
0 votes
0 answers
104 views

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 ...
Emanuele Alfano's user avatar
0 votes
0 answers
62 views

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 ...
Jat's user avatar
  • 13
0 votes
1 answer
162 views

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 ...
Phrogz's user avatar
  • 304k
2 votes
2 answers
202 views

I'm working on a Python project with the following structure: / ├── src/ │ ├── __init__.py │ ├── afrr/ │ │ ├── __init__.py │ │ ├── dumper.py │ │ └── cleaner.py │ ├── config.py │ ├──...
PhillyVanilly's user avatar
0 votes
0 answers
43 views

Although there are a number of import related questions, I haven't found one that directly addresses my question. I have installed some packages in the default Site Packages folder and it has a ...
QuasiG's user avatar
  • 93
0 votes
0 answers
173 views

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 ...
Arnór's user avatar
  • 1
0 votes
0 answers
50 views

(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:...
Wasserwaage's user avatar
0 votes
0 answers
157 views

I want to use exactly the same vscode workspace folder on both Windows and Linux. As you may know, contrary to Pycharm, the root folder is unfortunately not included in the python path. So for my ...
u2gilles's user avatar
  • 7,433
0 votes
0 answers
73 views

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 ...
Johannes Kreckel's user avatar
0 votes
1 answer
210 views

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 ...
dnessett's user avatar
0 votes
0 answers
55 views

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 ------...
user19471767's user avatar
1 vote
1 answer
109 views

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....
zjffdu's user avatar
  • 29.7k
0 votes
1 answer
273 views

I'm encountering an issue where pytest fails to run tests in my local development environment due to a ModuleNotFoundError, specifically stating that there is "No module named 'app'". ...
Baptiste Moulin's user avatar
0 votes
1 answer
168 views

I'm working on a project where I debug with GDB and OpenOCD. Sometimes we use VS Code for this purpose and I encountered an issue that the Run & Debug session won't launch when PYTHONHOME/...
Quotenbanane's user avatar
0 votes
1 answer
362 views

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 ...
Mohammad Lotfi's user avatar
0 votes
1 answer
32 views

Not a question, sharing something that worked for me: Two linux users, both in the same "programmers" linux group. 1st user is pipadmin, and does "pip install ipython" to a local ...
KibbleOrSoft's user avatar
2 votes
1 answer
981 views

I have a simple Django project (namely the one from this tutorial). The main part of the tree looks like this: . ├── env ├── proj │   ├── proj │   │   ├── __init__.py │   │   ├── settings.py │   │   ├─...
Watchduck's user avatar
  • 1,219
0 votes
1 answer
50 views

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/...
Ed K's user avatar
  • 29
0 votes
1 answer
826 views

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\\...
DLT's user avatar
  • 490
0 votes
0 answers
94 views

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 ...
Anas Rzq's user avatar
  • 103
0 votes
1 answer
110 views

I am getting some module not found excepiton when setting PYTHONPATH and then executing some py script : $ PYTHONPATH=somepath/a/b $ python myscript.py Exception has occurred: ModuleNotFoundError ...
Toto's user avatar
  • 7,739
1 vote
0 answers
65 views

I am using Pabot of Robot Framework. I have created a whole application that in background runs the Robot Framework. This exe understands the path which I mentioned during pyinstaller. So it opens up ...
Mithi029's user avatar
1 vote
1 answer
413 views

I am trying to debug a command line C module on Windows, which is a part of a much larger open source GIS software (GRASS GIS). GRASS on the command line (sort of) adopts a "UNIX Tools" ...
Girish's user avatar
  • 11
1 vote
0 answers
335 views

I have a PyCharm project, named pycharm_projects. In it, I create a virtualenv Python interpreter, example_virtualenv. Then I click Interpreters -> Show all -> example_virtualenv -> Show ...
Kaia's user avatar
  • 909
0 votes
1 answer
110 views

I am creating a voice assistant using python 3.11.6, and inside of my project i have a "Synthesizer "package, which has two files: model.pt and main.py. In that main.py (self.local_file=&...
Илья Мирошниченко's user avatar
0 votes
1 answer
322 views

Given a project structure: * project * src * my_package * __init__.py * code_file.py * tests * __init__.py * my_package * __init__.py * code_file_test.py How ...
Danny Varod's user avatar
  • 18.3k
1 vote
0 answers
129 views

This question is related to the question Stop pydoc from running my Python program, except that here I'm not actually trying to document my own code - I'm just trying to use pydoc to look up unrelated ...
Metamorphic's user avatar
0 votes
1 answer
1k views

I am using Windows batch as the entrance for users to run a Python script for some simple automation requests. I have referred to the answer. Assuming I have used another batch to copy the embedded ...
hirobank's user avatar
1 vote
2 answers
892 views

since a few days, Visual Studio Code Python unittest discovery no longer works for me in several projects that contain a package called utils: 2023-10-18 09:37:36.901 [info] Discovering unittest tests ...
Philipp Burch's user avatar
0 votes
0 answers
523 views

I'm facing an issue when trying to call a Python method from a Robot Framework test case. I have the following Python method defined in a file named campaign.py: def print_something_test(self, text): ...
Husny Jiffry's user avatar
0 votes
0 answers
139 views

I am having trouble starting my django project with gunicorn In order to figure out what's wrong, I created an empty django project to work with: myproject - myproject - __init.py__ - ...
lzlll3811's user avatar
0 votes
0 answers
46 views

I'm trying to set up a local development environment for Python. We use BitBucket for source control of Python modules we've developed for our company. On my machine I have this folder/directory set ...
PruitIgoe's user avatar
  • 6,396
0 votes
1 answer
63 views

I am getting a strange module not found error and I can't seem to grasp why it is happening. I have a directory structure of: projects/services/skittles/app/ database/ ...
Trance2000's user avatar
0 votes
0 answers
1k views

I have a bug with imports in python I’m having a hard time to solve or even understand why it happens.I didn’t write the codebase so please forgive the fact that absolutely zero python naming ...
codeartha's user avatar
0 votes
3 answers
7k views

I am getting the following error while installing anaconda on my Windows 11 machine. I have already tried the below steps, but it still doesnt seem to work: Uninstall any previous Anaconda or Python ...
Anand Subramanian's user avatar
1 vote
1 answer
272 views

I have 2 functions. I want to check if a file exist in a sub directory. def XlCall(): wb = xw.Book.caller() from pathlib import Path entries = Path('./History/data.csv') wb.sheets('TA')...
Tom's user avatar
  • 11
0 votes
0 answers
162 views

I have written a python script using Python 3.10 and like to start the script via my PoP OS! library link that I created. My .desktop file is in the correct directory in usr/share/applications, was ...
Axiom42's user avatar
  • 35
0 votes
1 answer
317 views

I want to uninstall numpy in Python 3.8. I tried to that command "pip3 uninstall numpy",but this didn't work. I modified the PYTHONPATH in my ~/.bashrc file and exported PYTHONPATH, but ...
senayuksel's user avatar
0 votes
0 answers
86 views

I am facing difficulties to get the module's references in the Unit Test files. This is my level 1: $ backend-app ├── Dockerfile ├── __init__.py ├── app ├── credentials-dev.json ├── requirements.txt ├...
Augusto's user avatar
  • 4,283
0 votes
1 answer
53 views

I am having problems running my model in openmodelica on ubuntu 20. I tried exporting the path following the documentation and installed libpython3.8-dev. https://build.openmodelica.org/Documentation/...
Luis Enriquez-Contreras's user avatar
0 votes
3 answers
17k views

I would like to import methods from a directory one level above my current working directory. One way to do this is to manually append the directory to sys.path. I found a better solution for VSCode ...
vpk's user avatar
  • 1,320
0 votes
2 answers
294 views

I tried to set up PYTHONPATH environmental variable in vscode in Mac, and it does not work. VScode version: Version: 1.78.1 (Universal), Mac os: 13.3.1 (a) I followed the instruction: https://code....
Arthur's user avatar
  • 191
8 votes
1 answer
38k views

The docs for sys.path state the following: A list of strings that specifies the search path for modules. Initialized from the environment variable PYTHONPATH, plus an installation-dependent default. ...
user32882's user avatar
  • 6,117
0 votes
0 answers
138 views

I have a weird scenario with pytest where we need to exclude the test directory from PYTHONPATH during the test. Context The pytest command for reference python -m pytest main_project_a/folder_a/...
YTKme's user avatar
  • 317
0 votes
1 answer
328 views

my file directory is simple: /Users/dd/python/folder/ main.py store.py __init__.py # store.py class Store: def __init__(self,location): self.location = location # main.py from ...
user40551's user avatar
  • 365
2 votes
2 answers
2k views

So I want to install the opencv-python package. I typed in pip install opencv-python and got this: Collecting opencv-python Downloading opencv_python-4.7.0.72-cp37-abi3-win_amd64.whl (38.2 MB) ━...
LWB's user avatar
  • 512
0 votes
0 answers
72 views

I'm using VSC Remote Server to access code on a linux server. There I'm trying to import .py files from another directory. I've added the directory to import from to the server's PYTHONPATH via ....
Self's user avatar
  • 1
1 vote
1 answer
3k views

I'd like to run some official OpenVINO samples, but I always get the following error: from openvino.inference_engine import IECore ModuleNotFoundError: No module named 'openvino' I created a simple ...
IanHacker's user avatar
  • 581
1 vote
1 answer
2k views

I have to install catboost but can not make it by pip install catboost. Pip sad 'No matching distribution found for catboost' but that is not as i think. I read this question Why does pip install not ...
Ларионов Фёдор's user avatar

1
2 3 4 5
16