-
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
setuptools Issues in Python 3.12 #9004
Comments
This is not a poetry bug, pyperclip would need updating. Since that project has been inactive for three years I don't like your chances, but if you are going to report this anywhere it should be there Please close |
@dimbleby thank you for checking this! darn...that's going to break a lot of things. And unfortunately What doesn't make sense though is that if I install with |
I may have been wrong, normally these things are a problem with the package in question but here perhaps it is that you have a messed up environment. I have no problem using poetry to install
looks like you have lost something from your poetry environment, I am pretty sure that whatever version of packaging you are using declared whatever dependencies it needs: so if they are not there then something has gone wrong with your installation. |
Thank you so much for your patience with me! I think we have some lift off here. I did a full removal of Poetry and reinstalled it, which used the Python 3.12 binary on the system instead of the 3.11 one. This seems to have fixed the installation (and it brought with it a nice performance bump). I then reinstalled Poetry again with the Sounds like we can consign this one to gremlins! Thank you so much again for your support here. Closing the ticket. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Poetry version: 1.7.1
Python version:3.11.7
OS version and name: macOS 14.3.1
pyproject.toml: https://github.com/CrowdStrike/Falcon-Toolkit/pull/113/files
I am on the latest stable Poetry version, installed using a recommended method.
I have searched the issues of this repo and believe that this is not a duplicate.
I have consulted the FAQ and blog for any relevant entries or release notes.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option) and have included the output below.Issue
Hey everyone! Thank you so much first of all for the incredible work this project team does. Poetry is simply awesome.
I have an issue but I'm not sure if it falls under expected behaviour or not. I'm trying to migrate some of my OSS work to support Python 3.12, which obviously doesn't include
setuptools
andwheel
by default (discussed in #7611, pypa/virtualenv#2487, etc.). However, I seem to be meeting dependency hell even in some cases where I injectsetuptools
directly into the venv. I am using venvs based on Python 3.12 to test (installed from Homebrew). The common thread seems to be packages expectingdistutils
(which obviously is provided bysetuptools
now), but it seems I'm meeting cases where even pre-seedingsetuptools
isn't working.What's key about the output from
poetry update -vvv
below is that I've already run the following commands to try to forcesetuptools
andwheel
into the venv and get an updatedpip
:poetry run pip install -U setuptools
poetry run pip install -U wheel
poetry run pip install -U pip
For one of the libraries I built that the tool linked to depends on, I was able to fix build issues by pre-seeding the build environment with
setuptools
, but this doesn't seem to be working for this dependency chain:https://github.com/CrowdStrike/caracara/blob/main/.github/workflows/code-quality.yml#L29
I've tried adding
setuptools
(andwheel
forFalcon-Toolkit
) into thebuild-system.requires
part of thepyproject.toml
, but it seems that that section is ignored by Poetry as per #8752, #4871 and others.I'd appreciate any insight you can provide here! My inclination is that Poetry is doing something funky with the build environment that is somehow hiding
setuptools
(perhaps something to do with #5401?), but it's also entirely possible that I've missed something obvious here? I guess the other option might be to injectsetuptools
andwheel
back into the venv for Poetry itself, but this feels anti-spec...(and the venv hosting Poetry on my system runs on 3.11 anyway so I doubt this would even be necessary).Thanks in advance!
The text was updated successfully, but these errors were encountered: