Skip to main content

Questions tagged [pythonpath]

PYTHONPATH is an environment variable that can be used to augment the default search path for module imports in Python.

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

python: NON-pipadmin user gets ModuleNotFoundError after pipadmin installs ipython

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
1 vote
1 answer
113 views

How to change the root directory of a Python project?

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,146
0 votes
1 answer
31 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/...
Ed K's user avatar
  • 3
0 votes
0 answers
21 views

Absolute import to access a python module in a directory above

I have the above file structure. Within src/jobs there is a file common.py which has code that will be reused across all the different jobs. Each job will be in a separate sub-directory. I want to ...
Deano's user avatar
  • 13
0 votes
0 answers
30 views

Adding top level directory to PYTHONPATH prevents mypy from checking a file

My top level directory /project contains a file /project/caller.py and a subdirectory /project/lib. This directory contains a file /project/lib/callee.py These files contain: /project/caller.py: ...
Gelineau's user avatar
  • 2,080
0 votes
1 answer
59 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\\...
DLT's user avatar
  • 361
0 votes
0 answers
69 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 ...
Anas Rzq's user avatar
0 votes
1 answer
60 views

Why PYTHONPATH need to be exported? [duplicate]

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,659
1 vote
0 answers
35 views

how do I guide pabot to find my custom libraries or APIs?

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
135 views

How do I get an application using python to ignore PYTHONHOME and/or PYTHONPATH?

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
0 votes
0 answers
152 views

PyCharm "Interpreter Paths" -- What are they and where are they stored?

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
  • 908
0 votes
1 answer
74 views

FileNotFound error when importing packages

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
134 views

Visual Studio Code working with Python with PYTHONPATH and separate source and tests folders

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
  • 17.8k
0 votes
0 answers
72 views

Keep Python code safe from execution by Pydoc

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

15 30 50 per page
1
2 3 4 5
52