Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
60 views

I'm making a sort-of mod loader that automatically loads certain classes with a specific variable defined from any files in the root directories' mods folder. My file structure is as follows: mods - ...
Ice's user avatar
  • 21
2 votes
1 answer
65 views

I want to install my single file module together with its py.typed file using setuptools and pyproject.toml. I'm packaging a Python single-module, and so far I was using a very simple pyproject.toml: [...
Raúl Núñez de Arenas Coronado's user avatar
0 votes
0 answers
73 views

I have been trying to load Python module inside Unbound DNS. Following is the version list of the tools I am using:- Python: 3.10.12 Ubuntu: 22.04 Unbound DNS: 1.23.0 The unbound.conf contains ...
Krish Patel's user avatar
0 votes
1 answer
43 views

ModuleNotFoundError: No module named 'Teacher' even though the file exists I am trying to import a function from one Python file to another, but I keep getting the error: ModuleNotFoundError: No ...
Devang soni's user avatar
0 votes
0 answers
69 views

I am making a React app. I am using some Python code to automate a few things. But currently I am duplicating some Python code across separate components. I would like to avoid this, and place all my ...
nbofni's user avatar
  • 47
0 votes
1 answer
58 views

I have the following structure: project/ |- src/ |- __init__.py |- package/ |- __init__.py |- module1.py |- module2.py Let's say module1.py ...
khteh's user avatar
  • 4,280
0 votes
1 answer
38 views

I wrote a python project that automates tasks and makes use of the smartsheet api but when I package this project into an executable with nuitka I get the error: ImportError! Could not load api or ...
Mariano Gongora's user avatar
-1 votes
1 answer
159 views

I am currently creating a python library, and I want to find what is the best way for a user to install it on their computer. It is not distributed on Pypi (or Pypi test) for now, so I want them to ...
larticho's user avatar
  • 169
-1 votes
1 answer
48 views

I have a Python3 project arranged as follows: C:\automation\framework\constants.py C:\automation\tests\unit-tests\test_myunittest.py In my unit test, I'm trying to call methods in framework folder, ...
bearaman's user avatar
  • 1,091
0 votes
1 answer
33 views

I need to import enum class which sits in dir A from some other file which is in dir B. So I have the following: - enums -- __init__.py -- flavors.py - setUp -- test.py flavors.py from enum import ...
camel's user avatar
  • 97
-1 votes
2 answers
68 views

The following directory structure: repo/ ├─ third_party/ │ ├─ project/ │ │ ├─ src/ │ │ │ ├─ moduledir/ │ │ │ │ ├─ __init__.py │ │ │ │ ├─ main.py ├─ pythonscript.py In main.py there's a (...
glades's user avatar
  • 5,356
-2 votes
1 answer
48 views

I am trying to use the neat-python package. I had to install it directly from the github using pip install git+https://github.com/CodeReclaimers/neat-python.git because they haven't updated their pypi ...
The odor's user avatar
0 votes
1 answer
102 views

For admin reasons I can't edit the PATH variable so I couldn't use pip to install my PyPi and 3rd party libraries/modules, so I worked around it and I installed their source code using the official ...
Giorgio Doveri's user avatar
0 votes
1 answer
627 views

I'm pretty new to this stuff, so I'm going to provide as much information as possible just in case it is relevant. In VSCode (1.93.1), I created a Python script which makes updates to a Google Sheets ...
DameTheStoic's user avatar
1 vote
3 answers
254 views

Let's assume I have two parallel directories, with simple python files. 'dir_one' with file_one.py 'dir_two' with file_two.py In file_one.py there is a function named function_one. How can I import ...
Broono's user avatar
  • 111
1 vote
1 answer
106 views

I recently encountered a perplexing issue regarding module imports in Python, particularly with the way instances of classes can be duplicated based on different import styles. I had to fight to be ...
Nico's user avatar
  • 329
0 votes
1 answer
74 views

I am working on a library with some others. Our git repo (called modulename) looks like this modulename/ src_file_1.py src_file_2.py tests/ ... .../ The instructions are to clone this somewhere ...
ACarter's user avatar
  • 5,747
0 votes
1 answer
536 views

I am running MicroPython v1.23.0 on 2024-06-02; Raspberry Pi Pico with RP2040 and I'm trying to import a module that I have written (called lcd_module). However, I keep running into this import error. ...
Ryderr's user avatar
  • 103
0 votes
1 answer
43 views

import pygame from math import radians, sin, cos from datetime import datetime class Clock: def __init__(self): self.width, self.height = 800, 800 self.white = (255, 255, 255) ...
Mohamad Homaei's user avatar
3 votes
1 answer
1k views

I'm trying to execute a python task using fab. I've installed fab2 for python3 and trying to use it to run the task in a venv. Unfortunately using fab2 keeps giving me this error: (venv) My-MacBook-...
scottstots's user avatar
0 votes
0 answers
286 views

I have a utility package for Python projects I maintain and use. It’s a bundle of lightweight, common, junk-drawer tools (e.g. command parsing, app lifecycle management, document generation, &c &...
fish2000's user avatar
  • 4,435
0 votes
1 answer
51 views

I am developing a Python application using Tkinter. I have created a module which is essentially a modal to be called elsewhere in the application - in the same file I check if name is main, and I ...
Alex's user avatar
  • 1
-3 votes
1 answer
96 views

whenever i try to use python module install in the shell (im trying to use the command "python -m pip install pygame") and whenever i try to it says "Python was not found; run without ...
biytz's user avatar
  • 9
1 vote
2 answers
229 views

I have just created a library with Pybind11 from the C++ side: I did it with MSYS2 and CMake and Make. (I have GCC, Make, CMake and Pybind11 installed with the commands) pacman -S mingw-w64-x86_64-gcc ...
flori10's user avatar
  • 536
0 votes
1 answer
152 views

I'm using an old version of Python (v3.2) on a USB standalone environment (Portable Python) for simplicity and educational purposes since it works virtually on any computer without any software ...
ITlearner's user avatar

1
2 3 4 5
42