1,418 questions
0
votes
0
answers
21
views
Is poetry support reading requirements.txt dependencies in pyproject.toml?
I have all my dependencies like below in pyproject.toml
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
docutils = "0.21.2"
loguru = "0.7.3"
build = "*"
...
-1
votes
0
answers
24
views
Problem installing mediapipe python library (April 17, 2025) [duplicate]
This is a recent issue as I have used mediapipe serveral times before. When I ran pip install mediapipe, the following gets dumped:
ERROR: Could not find a version that satisfies the requirement ...
1
vote
1
answer
72
views
poetry shows as "no such file or directory" in Makefile, but works fine in terminal
I am experimenting with using the CPython C API and managing dependencies (e.g. setuptools) via poetry.
To compile my code I wrote a Makefile looking something like this:
PYTHON = poetry run python
...
0
votes
0
answers
26
views
pytest import-mode vs conftest.py versus imports
After reading https://docs.pytest.org/en/stable/explanation/pythonpath.html and also Create and import helper functions in tests without creating packages in test directory using py.test, I am ...
1
vote
1
answer
39
views
Running poetry in using jenkins dockerfile
I've got my dockerfile
FROM git.corp.com:4567/some/python:3.11-slim
RUN apt update; \
apt install pipx -y; \
pipx install poetry; \
pipx ensurepath; \
chmod a +rx /root/.local/bin/poetry; \
...
1
vote
1
answer
45
views
Poetry Install broken, ModuleNotFoundError but Module is installed. MacOS
After cloning and setting up my repo I use a poetry install
When running the code, I see
ModuleNotFoundError: No module named 'loguru'
The package is there however:
poetry add loguru
The following ...
1
vote
1
answer
171
views
ImportError: Error importing numpy: you should not try to import numpy from its source directory
I'm starting a new Python project, I made the following pyproject.toml file (using poetry):
[tool.poetry]
name = "snaqs"
version = "3.0.0"
description = "A minimal rewrite of ...
0
votes
0
answers
77
views
Poetry: Lock Hash Mismatches with Local Wheels
We are migrating a large Python monorepo from Poetry 1.1.15 to 2.1.2 (primarily to gain support for URL dependency authentication). This migration has introduced challenges with our lock file ...
0
votes
1
answer
60
views
Does the oracle driver for python really require libraries from the native client?
I am writing some Python code and pulling in the
cx-oracle = "^8.3.0"
library with poetry. However, in order to make this work I actually have to initialize it with a directory where it can ...
1
vote
1
answer
24
views
Poetry local package importation Module not found
I just start learning Poetry.
I am trying to import a local package in a poetry project.
This is the structure of the project:
MyProject
myproject
__init__.py
tests
__init__.py
...
2
votes
1
answer
174
views
Use a single pyproject.toml for 'poetry' & 'uv': dev dependencies
I'm trying to let people on my project (including myself) migrate to uv while maintaining compatibility with people who still want to use poetry (including some of our builds). Now that poetry 2.0 ...
0
votes
1
answer
48
views
Poetry "no module named numpy" when installing from existing project
I have installed Poetry via the official shell script. I have by now also reinstalled it several times. which poetry returns /home/myuser/.local/bin/poetry. The Poetry version is 2.1.1. The python ...
1
vote
1
answer
78
views
How to specify package as an extra in poetry/pyproject.toml
I have a package with a pyproject.toml that has a core package & an optional GUI package with its own extra dependencies. This is the project structure:
.
└── my_project/
├── src/
│ └── ...
0
votes
0
answers
51
views
Why do I need to specify some dependencies to pyright but not others? [duplicate]
I'm building a python app with a .toml file. I'm using poetry to deal with dependencies and packaging. Here is an extract of my toml file
[tool.poetry]
name = "app_name"
version = "0.1....
0
votes
1
answer
98
views
How can I reuse the same virtualenv in a different project?
I have created a project folder with a pyproject.toml, but I want to use the same virtualenv created in the ProjectA in ProjectB, how can I do that ?
Whenever I use the poetry env use /full/path/...