-
-
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.0.4 and 71.1.0 fail with ImportError: cannot import name 'tarfile' from 'backports'
#4509
Comments
ImportError: cannot import name 'tarfile' from 'backports'
I can confirm that this error persists for our tests on GitHub Actions with the windows runners, using Python 3.8 and Setuptools 71.0.4. Curiously, though, it only happens when pinning another package (JPype1) to a specific version (1.2.1). Using it's latest version does not result in the same error. Please see here for the complete information on today's CI run. |
Sorry, didn't know #4508 was already opened. These are duplicates, it seems. |
One difference I notice between our windows-latest-miniconda- and windows-latest-miniconda-JPype1=1.2.1 tests is that the latter installs |
Closing as a dupe of #4508 unless we find otherwise. |
I apologize. I see now I directed the reporter to file a separate ticket for this issue if 71.0.4 didn't fix the issue. I missed the association. Is this issue still impacting users? |
My error case has been resolved, thanks :) |
Unfortunately I'm constrained to use a particular Docker image (and hence conda version) for now and have worked around it by doing: So until I upgrade to a Docker image that uses a later version of conda I can't test this isn't an issue any more, unless I'm mistaken. I'd also rather not issue conda commands in my environment. |
|
I just deleted the dir |
Thanks @Mingzefei, in my case I had to delete |
setuptools version
71.0.4, 71.1.0
Python version
3.10.10
OS
ubuntu 22.04.4 LTS
Additional environment information
Azure DevOps with the 'ubuntu-latest' VM image hosting the Docker image jupyter/pyspark-notebook:spark-3.3.2 from here.
This Docker container uses Python 3.10.10.
Description
I tried to create a source distribution of my Python package using
python setup.py sdist
with setuptools 71.0.4 or 71.1.0 and get this error:The source distribution was created successfully, however, with setuptools 70.3.0.
I created this issue after feedback from my comment at #4476 (comment)
Expected behavior
The source distribution should be created without error.
How to Reproduce
After installing our requirements with pip, and then upgrading pip and setuptools with:
then:
shows:
Then we call
python setup.py sdist
to build our package.Output
Error message from
python setup.py sdist
when using setuptools 71.1.0 as above:The same error message resulted with setuptools 71.0.4 too.
The text was updated successfully, but these errors were encountered: