-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poetry failed to build installing jsbeautifier #9585
Comments
Seems like the root cause is: setuptools v72.0.0 removing the test module. https://github.com/pypa/setuptools/blob/v72.0.0/setuptools/command/test.py |
For more context, I'm encountering the same issue with poetry's installation of pyhive. Which uses the same https://github.com/dropbox/PyHive/blob/master/setup.py
|
A workaround would be to do the installation manually rather than relying on poetry to do it, e.g.
Is there a better workaround? |
I still get the same error when installing
|
Pinning [tool.poetry.dependencies]
setuptools = "<70" |
Doesn't for me. |
This is a min example of my Dockerfile
|
Not a poetry bug. pypa/setuptools#4519. Please close. |
While it's not a poetry bug, imo poetry should provide a tool to lock setuptools version. |
A workaround which worked in my case: Create a file called constraints.txt
Then set PIP_CONSTRAINT=/path/to/constraints.txt After that, a normal poetry install works. Source for appreciation: pypa/setuptools#4519 (comment) |
below solves my issue in Dockerfile
|
will try this. I thought it was purely dependent on pip. Further updates on my end will be posted on |
Hi, is there any working solution for poetry? |
@petrprikryl check this comment. This might work for you. pypa/setuptools#4519 (comment) |
poetry should really fix the lockfile. That's its main task and a potential security concern, when setuptools can just be changed and the lockfile is ignored. |
please take this discussion to #8261 (although so far you are only duplicating what has already been said) |
This is not a Poetry bug and related discussion was pointed in the comments. To avoid further spam, I am going to lock this. |
Description
Poetry: 1.8.2 , 1.8.3
Device: WSL (Ubuntu 22.04.4 LTS)
Python Version: ^3.12
I build my project using docker
docker compose up -d --build
. Then, it showed this error (without modifying thepyproject.toml
and Dockerfile):Dockerfile config
For more context, the
jsbeautifier
is a dependency from a library ofLitestar
.Things I have tried:
Litestar
Workarounds
N/A
Poetry Installation Method
pipx
Operating System
Ubuntu 22.04.4 LTS
Poetry Version
1.8.2, 1.8.3
Poetry Configuration
Python Sysconfig
Example pyproject.toml
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: