python-poetry Questions
2
Solved
I'm using the latest version of poetry (1.1.10) and while trying to update my lock file, I ran into an error while attempting to install pycparser==2.20:
Writing lock file
Package operations: 65 i...
Zebulen asked 24/9, 2021 at 8:14
6
I have a fastapi project built by poetry. I want to run the application with a scripts section in pyproject.tom like below:
poetry run start
What is inside double quotes in the section?
[tool.poet...
Rental asked 9/9, 2020 at 10:17
3
Solved
I have a simple question.
I used to create a poetry project with my package at root.
project.toml
mypackage
+- __init__.py
+- mypackage.py
+- test_mypackage.py
I recently moved my tests in anot...
Tamandua asked 6/8, 2021 at 16:12
3
I am trying to switch a python project over to poetry & pyproject.toml. Previously, we were using requirements.txt.
When I try to install pyspark 2.4.8 with poetry, however, I hit this error:
F...
Vendible asked 9/12, 2022 at 16:6
3
I am working on two projects, let's call them Project A and Project B.
Project B requires some modules in Project A, so I did a poetry build on Project A. I am able to access the module when I man...
Auscultate asked 7/1, 2020 at 2:18
13
Solved
According to poetry's docs, the proper way to setup a new project is with poetry new poetry-demo, however this creates a project based on the now deprecated python2.7 by creating the following toml...
Keffiyeh asked 7/3, 2020 at 17:8
2
Solved
I have, in a single repo, two Python projects that both depend on a shared utility package. My goal is to package each of the two projects in a software distribution package (i.e. a .tzr.gz file)
I...
Right asked 15/6, 2022 at 10:13
3
Solved
I can install boto3, s3fs and pandas using :
pip install boto3 pandas s3fs
But it fails with poetry :
poetry add boto3 pandas s3fs
Here is the error :
Because no versions of s3fs match >2023.3...
Doublequick asked 15/3, 2023 at 9:52
4
Solved
I installed poetry, however I'm getting the following error when attempting to call poetry
zsh: command not found: poetry
I know I have it installed because I get the following output when tryi...
Overthrow asked 20/3, 2020 at 4:42
2
Solved
I am installing psycopg2 into a python venv through poetry poetry add psycopg2 but i get the below error.
I have tried to use older versions of psycopg2. Does anyone know why this problem occurs an...
Choice asked 28/12, 2023 at 14:38
15
Solved
I've just updated to Ubuntu 22.04 LTS and my libs using OpenSSL just stopped working.
Looks like Ubuntu switched to the version 3.0 of OpenSSL.
For example, poetry stopped working:
Traceback (most ...
Apis asked 5/5, 2022 at 20:31
5
Solved
Python's poetry dependency manager allows specifying optional dependencies via command:
$ poetry add --optional redis
Which results in this configuration:
[tool.poetry.dependencies]
python = "^...
Paleo asked 1/4, 2020 at 13:3
2
Solved
Any documentation I've found about this topic mentions that the "only" requirement to build a deb package is to have a correct setup.py (and requirements.txt). For instance in dh-virtuale...
Fouquiertinville asked 7/8, 2020 at 14:49
4
I'm trying to add a new package using poetry add, but it always comes with this error:
HTTPSConnectionPool(host='10.140.240.64', port=443): Max retries exceeded with url: /api/v4/projects/118/packa...
Hippel asked 21/12, 2022 at 11:8
2
I cannot get psycopg2-binary package to install via poetry in python3.12.
pyproject.toml
[tool.poetry]
name = "my_project"
[tool.poetry.dependencies]
psycopg2-binary = "*"
[b...
Gloss asked 9/11, 2023 at 15:3
1
I've added a poetry plugin manually with poetry self add xxx, but I don't see any line changed in the pyproject.toml or poetry.lock. I want this plugin to be included in the development environment...
Intimist asked 25/5, 2023 at 6:55
1
Solved
I'm trying to use Jupyter Notebooks in a poetry virtual environment but get ModuleNotFoundError when trying to import python packages that are already installed (and managed) by poetry.
I'm running...
Denbighshire asked 26/5, 2022 at 10:58
5
I am trying to install python packages to a venv using poetry - on BigSur macos.
I have pyenv on stable python.
pyenv which python
/Users/josh/.pyenv/versions/3.8.6/bin/python
When I exec.
poetry...
Eyrir asked 14/6, 2022 at 8:39
3
Solved
I'm looking into this Python project template. They use poetry to define dev dependencies
[tool.poetry.dev-dependencies]
black = {version = "*", allow-prereleases = true}
flake8 = "*...
Bilbrey asked 26/11, 2021 at 16:49
1
File "project.py", line 5, in <module>
from tkinter.filedialog import askopenfilenames
ModuleNotFoundError: No module named 'tkinter'
This is always happens when I want to run my...
Auberbach asked 8/2, 2022 at 15:39
3
I'm running Python 3.9.1 and i have successfully installed poetry version 1.1.4.
When I am trying to add requests ($ poetry add requests) I am facing
RuntimeError
Poetry could not find a pyproject....
Querist asked 18/2, 2021 at 9:58
1
When running poetry add package, poetry decides to update some out of date dependencies without my asking:
$ poetry add -D ipython
Using version ^7.26.0 for ipython
Updating dependencies
Resolving...
Unknowable asked 5/8, 2021 at 22:12
1
What is the best practice to automatically update python dependencies when working with poetry on github?
I would simply set up an action that runs poetry update (https://python-poetry.org/docs/cli...
Tegument asked 30/9, 2023 at 12:6
8
Solved
I am trying to install poetry using the following command
curl -sSL https://install.python-poetry.org | python3 -
but it is failing with the following exception:
Exception: This build of python ca...
Picked asked 21/9, 2022 at 19:16
3
Solved
How to I upgrade to the latest version?
Specification:
Windows 10,
Visual Studio Code,
Ubuntu Bash.
Current Version:
me@PF2DCSXD:/mnt/c/Users/user/Documents/GitHub/workers-python/workers/composi...
Sharmainesharman asked 3/11, 2021 at 9:47
© 2022 - 2025 — McMap. All rights reserved.