Closed fredjane closed 1 year ago
The ContextualVersionConflict
is coming from pkg_resources
, which is attempting to validate that "importlib_metadata>=4.11.4" is present as required by "asdf", but importlib_metadata is only available at 4.11.3.
You say you have importlib-metadata 4.11.4 installed, but pkg_resources disagrees. You'll need to install importlib_metadata>=4.11.4 to fix the issue.
This report is not a bug with importlib_metadata and there's nothing this project can do to help with the situation. Please reach out on StackOverflow or other user support for Python packaging for help with your environment.
I am running a python code on jupyter notebook and I wanted to import and use the specutils package to plot a doppler-shifted spectrum from my data. This is the part of the code I want to run:
and this is the raising error:
I am using a MacBook Air (M1, 2020) with macOS Monterey version 12.3.1 and I have installed python 3.9.7, pip 23.1.2, jupyter notebook 6.4.10 and, looking at pip list, specutils 1.11.0, importlib-metadata 4.11.4 and: asdf 2.15.0 asdf-astropy 0.4.0 asdf-coordinates-schemas 0.2.0 asdf-standard 1.0.3 asdf-transform-schemas 0.3.0 asdf-unit-schemas 0.1.0 asdf-wcs-schemas 0.1.1 (given that, if I well interpreted the error message, it's the asdf dependency of both import lib-metadata and specutils to raise it)
Can you help me? Thank you in advance.