Skip to content
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

Cannot install v1.9.0: AttributeError: _DistInfoDistribution__dep_map #61

Closed
mkelley opened this issue Jun 7, 2023 · 9 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@mkelley
Copy link

mkelley commented Jun 7, 2023

Building documentation for sbpy broke today, and I've narrowed it down to sphinx-astropy v1.9. The error message can be seen at:

https://readthedocs.org/projects/sbpy/builds/20943981/

...
Collecting importlib-resources>=3.2.0 (from matplotlib>=3.0->sbpy==0.1.dev77+g6410c5b)
  Downloading importlib_resources-5.12.0-py3-none-any.whl (36 kB)
ERROR: Exception:
Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/sbpy/envs/370/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3108, in _dep_map
    return self.__dep_map
  File "/home/docs/checkouts/readthedocs.org/user_builds/sbpy/envs/370/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2901, in __getattr__
    raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
...

The package that this crashes under varies. Here it was importlib, but locally it was python_dateutil, or keyring, or tomli, and maybe others. I don't think the package is the real issue though. Searching the internet for "AttributeError: _DistInfoDistribution__dep_map" doesn't tell me anything.

Our Readthedocs build is using Python 3.9, but locally I have been using 3.10.

Any ideas on what this could be? Need more info? I will build with v1.8.0 for now. https://readthedocs.org/projects/sbpy/builds/20944799/

Thanks!

@pllim
Copy link
Member

pllim commented Jun 7, 2023

Sorry about that. I'll investigate!

@pllim
Copy link
Member

pllim commented Jun 7, 2023

I am not actually sure if it is related directly to sphinx-astropy . It makes no sense how the changes here would cause such pinning (copied from your failed log):

python -m pip install --upgrade --no-cache-dir -I pillow mock==1.0.1
alabaster>=0.7,<0.8,!=0.7.5 commonmark==0.9.1 recommonmark==0.5.0
sphinx<2 sphinx-rtd-theme<0.5 readthedocs-sphinx-ext<2.3 jinja2<3.1.0 setuptools

I remember seeing this error in this package during release yesterday but the only way I could fix it was to upgrade to Python 3.11 in the RTD config.

@pllim
Copy link
Member

pllim commented Jun 7, 2023

Unless... I used too new a Python to build the wheel?

python-version: "3.11"

@pllim
Copy link
Member

pllim commented Jun 7, 2023

OMG... I dunno why but turns out I cannot use "v2" for older Python. 🤦

@pllim
Copy link
Member

pllim commented Jun 7, 2023

More info is somehow version=None got passed from markers -> specifiers -> packaging.version. Perhaps it erroneously think "v2" is a version in itself... 🤷

@pllim pllim added the bug Something isn't working label Jun 7, 2023
@pllim
Copy link
Member

pllim commented Jun 7, 2023

@mkelley , can you please test with sphinx-astropy 1.9.1 ? 🤞

@pllim
Copy link
Member

pllim commented Jun 7, 2023

If it works, please close this issue. I am pretty confident it does because another package was affected and the doc build just passed, but I would still like to hear from you. Thanks!

@mkelley
Copy link
Author

mkelley commented Jun 7, 2023

It works! Thanks for the quick fix.

@mkelley mkelley closed this as completed Jun 7, 2023
@pllim
Copy link
Member

pllim commented Jun 7, 2023

Sorry for breaking it in the first place!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants