I'm reading hundreds of model outputs from text file, where the first nrows are non-relevant text rows about the model run (note: nrows varies from fi ...
I'm reading hundreds of model outputs from text file, where the first nrows are non-relevant text rows about the model run (note: nrows varies from fi ...
I am running VSCode on Windows 10. I've set up a virtual environment and have installed a number of packages to the local site library. I've activate ...
My Python application loads plugins from a user-specified path (which is not part of sys.path), according to the importlib documentation: To make i ...
I have two directories. Directory named Dir1 has class definitions Directory named Dir2 has the import statement: from Dir1.guitarClass import Guitar, ...
I'm new to python and trying to get a unittest working, but the imports in the test files don't work. Folder structure: MyClass.py: setup.py: ...
I'm trying to build a package where specific modules call other modules. Example of the structure of the package: content of the functions_pippo mo ...
I have a python project a folder structure like this: I want to import connect.py into xyz.py and here's my code: But I keep getting this error ...
I am new to this packaging, and facing now a problem. The problem is as follows. I have created a poetry project from the CLI: and have a file stru ...
If we go to: https://pypi.org/project/bs4/ we can read: This is a dummy package managed by the developer of Beautiful Soup to prevent name squatti ...
I have such structure of project: I have many Python scripts in the scripts/ directory. All of them contains relative imports: from lib import ... ...
I am trying to import a util package one directory up from where my code is, but I get an ImportError which I don't understand. I have a number of di ...
I working with a group on a project that is being used with Git and Github. I have a local main project folder that contains two sub-directories(i.e U ...
. Answers to this question are eligible for a +50 reputation bounty. ri ...
Ok, so you clone a repo, there's an import import yaml ok, so you do pip install yaml and you get: ERROR: No matching distribution found for yaml ...
I'm trying to import a python script (called flask_router.py) from the same directory into another python script (import_requests.py) but am receiving ...
I created a virtual environment through pipenv and I had to install NumPy library but when I try to import it in the shell it tells me No module named ...
I have a directory structure like this, Assignments ├── Assignment1 │ ├── Assignment-1.pdf │ └── assignment1.py └── Methods ├── init.py ├── pri ...
enter image description here this part has an error: file name: uiux.py file name: main.py how to solve those problems? I don't know where ar ...
Please consider the following derived script structure: import abc class BaseMeta(abc.ABCMeta): __registry__ = {} def __init__(cls, name, b ...
I'm using poetry to manage my python project, here's the project: And I want to know how to import function from module.py into my_scripts/main.py ...