python-poetry Questions

2

Solved

I am trying to install a Python package via Poetry whose version to install should be determined based on the output (~return value) of a Bash command. Is it possible doing something (in the pyproj...
Coitus asked 20/12, 2021 at 15:48

2

Solved

I am using Poetry to manage a Python project. I create a virtual environment for Poetry using a normal poetry install and pyproject.toml workflow. Visual Studio Code and its PyLance does not pick u...
Latreshia asked 3/3 at 18:22

2

I already read the documentation in which it says The current project is installed in editable mode by default. If you want to install the dependencies only, run the install command with the --no-...
Cocytus asked 4/1 at 11:0

4

How do I get Poetry to update dev dependencies only to latest? I originally had: [tool.poetry.dev-dependencies] pytest = "^4.6" But I wanted: [tool.poetry.dev-dependencies] pytest = &quo...
Hilaria asked 10/8, 2022 at 8:54

2

I am trying to add depedency from git to poetry using SSH ( I am not interested in HTTPS version). The but I get an error whether I use poetry add... poetry add git+ssh://[email protected]:myo...
Apocalyptic asked 30/1, 2022 at 11:26

1

I have a Python project managed with Poetry. I want to install either psycopg[binary] or psycopg[c] via $ poetry install -E pgbinary or $ poetry install -E pgc These extras should be mutually exc...
Casabonne asked 12/6 at 9:43

7

Solved

I have a Python project which I created according to basic Poetry instructions. The project folder is something like this: my-project +----my_project | +-- my_project.py | +-- File1.py | +-- File2....
Expurgate asked 8/9, 2021 at 16:12

3

Solved

OS: win10 PyCharm version: PyCharm Professional 2021.2.2 Poetry version: 1.1.13 Poetry plugin version: 1.1.5-212 (from koudai aono) I have tried to build a new PyCharm project by poetry environme...
Grief asked 20/5, 2022 at 2:49

3

I'm trying to set up Poetry to deploy packages to our internal Gitlab Package Registry. According to other sources online the repository ID should be https://gitlab.com/api/v4/projects/<project ...
Couteau asked 28/9, 2020 at 8:59

3

Using Poetry, I want to find all versions of an specific package that are available for install. Is it possible to achieve that? (Similar to Python and pip, list all versions of a package that'...
Haversine asked 2/6, 2021 at 14:59

4

i have a very simple python/typer program. i also use the poetry as build tool. This is a snippet of my pyproject.toml file: name = "cat-cli" version = "0.1.3" description = &qu...
Sestos asked 30/9, 2022 at 0:23

21

Solved

I've had a million and one issues with Poetry recently. I got it fully installed and working yesterday, but after a restart of my machine I'm back to having issues with it ;( Is there anyway to hav...
Gordie asked 17/11, 2021 at 11:45

3

Solved

When bumping my python version from 3.7 to 3.8 in poetry, reinstalling all the dependencies fail with a version of the following: ERROR: No matching distribution found for... The distribution fo...
Wainscoting asked 24/4, 2020 at 18:40

4

Solved

My issue is that when I execute poetry install, poetry update or poetry lock the process keeps running indefinitely. I tried using the -vvv flag to get output of what's happening and it looks like ...
Citify asked 30/12, 2022 at 10:52

5

Solved

I am using Poetry in some of my python projects. It's not unusual that at some stage I want to rename the root folder of my project. When I do that and run poetry shell poetry creates a new virtual...
Pocketful asked 22/1, 2022 at 21:3

4

I have a poetry project that is not using setuptools [tool.poetry.dependencies] python = ">=3.9,<3.11" opencv-python = "^4.7.0.68" tensorflow-macos = "^2.11.0" t...
Dogoodism asked 1/2, 2023 at 9:9

3

Solved

I am fairly new to Docker and containerisation. I am wanting to decrease the size of my_proj docker container in production. I prefer installing packages and managing dependencies via Poetry. How c...
Nipple asked 19/8, 2021 at 9:29

4

Solved

How do I install poetry in my image? (should I use pip?) Which version of poetry should I use? Do I need a virtual environment? There are many examples and opinions in the wild which offer differen...

3

Solved

I just transitioned from pipenv to poetry and I'm having trouble importing a package from a local package I'm developing in a few of my scripts. To make this more concrete, my project looks somethi...
Rabaul asked 4/3, 2021 at 12:15

7

I have a Python project that doesn't contain requirements.txt. But it has a pyproject.toml file. How can I download packages (dependencies) required by this Python project and declared in pyproject...
Tumbrel asked 16/6, 2020 at 12:39

5

Solved

Recently, I faced this issue with Poetry. All my commands using poetry were failing with the following error. RuntimeError The Poetry configuration is invalid: - Additional properties are not al...
Denicedenie asked 28/9, 2022 at 5:59

3

Solved

Is there a way to cache poetry install command in Gitlab CI (.gitlab-ci.yml)? For example, in node yarn there is a way to cache yarn install (https://classic.yarnpkg.com/lang/en/docs/install-ci/ Gi...
Wax asked 23/2, 2022 at 15:28

6

Solved

My package version is defined in two places: __version__ = 1.2.3 in mypackage/__init__.py version = "1.2.3" in pyproject.toml (I am using Poetry) I have to update both whenever I bump t...
Semanteme asked 14/4, 2021 at 3:18

3

I have a package configured to use poetry for build / install during a container build. I cannot understand why poetry install says it has installed my package, yet it is not found. However, poetry...
Mythology asked 8/12, 2021 at 15:42

6

I ran brew install postgresql while inside a poetry environment. Since then, I can't interact with poetry. λ ~/ poetry dyld: Library not loaded: /usr/local/Cellar/[email protected]/3.9.9/Frame...
Metaphysic asked 31/1, 2022 at 1:16

© 2022 - 2024 — McMap. All rights reserved.