-
Notifications
You must be signed in to change notification settings - Fork 0
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
ImportError: cannot import name 'tarfile' from 'backports' #5
Comments
I took a quick look at running the tests on Python 3.11 and they pass on my machine. There may be something more insidious going on on your side. Aha! I think I see the problem in Can you identify what other backports you have installed by |
Thanks for your reply! Result of the command:
|
I've confirmed that functools_lru_cache does in fact still use pkgutil style packages, so probably backports.tarfile should do the same. I'll transfer the issue there. |
Hi, I second the question since I have the same issue and have not resolved. |
See the linked commit 76e9454. Note that Setuptools 71 recently introduced a bug (pypa/setuptools#4476) that produced this error message, but was unrelated to how any |
Thank you |
Describe the bug
I'm using astroquery with the jplhorizons module which uses keyring as a dependency. I had a student do a fresh install, and she's getting an error that traces back to keyring:
ImportError: cannot import name 'tarfile' from 'backports' (/opt/conda/lib/python3.11/site-packages/backports/__init__.py)
As an experiment I upgraded to the most recent version of keyring and am now seeing the error. Downgrading to keyring 24.3 (which is the version I had previously) fixes the issue.
backports.tarfile downloaded when I installed 25.1, if I'm interpreting things correctly the issue is that it doesn't seem to be finding it.
To Reproduce
Steps to reproduce the behavior:
pip install -U --user --pre astroquery
pip install -U --user keyring
from astroquery.jplhorizons import Horizons
Expected behavior
Module imports and works (as with keyring 24.3)
Environment
Linux of some kind; this is on a JupyterHub run by a 3rd party. Python 3.11.6
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: