`discover_post_import_hooks()` fails when `setuptools` is not installed
Opening an issue here as well since this is where I actually found the issue.
https://github.com/GrahamDumpleton/wrapt/issues/291
Hopefully this is addressed by changes in wrapt package.
Can you install wrapt as:
pip install --no-index https://github.com/GrahamDumpleton/wrapt/archive/refs/heads/develop.zip
and verify.
Thanks.
pip install https://github.com/GrahamDumpleton/wrapt/archive/refs/heads/develop.zip
Hi @GrahamDumpleton, our change in the wrapt package did address this issue. I verified (on Python 3.8 and 3.12) with the above command because --no-index was causing the below issues.
% pip install --no-index https://github.com/GrahamDumpleton/wrapt/archive/refs/heads/develop.zip
Collecting https://github.com/GrahamDumpleton/wrapt/archive/refs/heads/develop.zip
Using cached https://github.com/GrahamDumpleton/wrapt/archive/refs/heads/develop.zip
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [2 lines of output]
ERROR: Could not find a version that satisfies the requirement setuptools>=38.3.0 (from versions: none)
ERROR: No matching distribution found for setuptools>=38.3.0
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
I should have known that would occur with latest Python versions.
Would have needed to run:
pip cache remove 'wrapt*'
The point being that since using develop version wanted to make sure a cache version was not used since version hasn't change since last may have tried to use develop version.
If the way you create your environments ensures that cache is skipped then would have been okay then.