-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] 71.x fails with backports.tarfile
with conda-installed backports present
#4508
[BUG] 71.x fails with backports.tarfile
with conda-installed backports present
#4508
Comments
I used the continuumio/anaconda3 docker image to replicate the issue. Thanks for the instructions. I noted that the issue can be more succinctly encountered by simply importing setuptools instead of invoking pip: - pip install --no-deps --no-build-isolation -vv .
+ python -c "import setuptools" The problem appears to be rooted in how the
The file is empty. That means that any other This seems like a bug in conda or in how it's packaged up the backports or backports-zoneinfo packages. Both workarounds mentioned in #4476 (comment) should bypass the issue. I confirmed that doing Another workaround, closer to a solution, would be for Please raise the issue with conda, but let me know if there's something more that you or the conda team think Setuptools should be doing differently. |
backports.tarfile
, even after #4486backports.tarfile
with conda-installed backports present
Just passed it on to conda, please feel free to jump in with any corrections/additional information :) |
Would jaraco/jaraco.text#15 just sidestep the vendoring issue entirely ? I know it's more attacking the symptoms than the root cause, but reducing extraneous dependencies isn't a bad thing in the first place. |
It would sidestep the issue, but it would also mask the problem and leave it as a lingering implicit constraint that's liable to be violated in the future. Let's solve the root problem. |
@jaraco this is just to confirm: with conda-forge/backports-feedstock#7 merged, I don't experience the issue described here anymore :) |
setuptools version
setuptools==71.0.4
Python version
Python 3.8.19
OS
macOS, Linux
Additional environment information
No response
Description
I am running
pip install .
to installpyarrow
during Apache Arrow benchmarking, and it is failing due toImportError: cannot import name 'tarfile' from 'backports'
.This works for
setuptools
versions <71, but fails for anything >=71. It happened on Linux in CI and I was able to reproduce on my Mac.Expected behavior
The package should be installed successfully.
How to Reproduce
First clone the
arrow
repo. We create and activate a conda environment,pip install
some dependencies, and then try topip install
the project.Output
The text was updated successfully, but these errors were encountered: