You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File ~/opt/anaconda3/lib/python3.9/site-packages/cmocean/init.py:11
8 from future import absolute_import
10 # from cmocean import *
---> 11 from . import cm, tools, data
13 all = ['cm',
14 'tools',
15 'plots',
16 'data']
18 authors = ['Kristen Thyng [email protected]']
File ~/opt/anaconda3/lib/python3.9/site-packages/cmocean/cm.py:34
30 cmap_d = dict()
33 # a comparable version object
---> 34 MPL_VERSION = Version(version("matplotlib"))
36 def _register_cmap(cmap, *, name):
37 # wrap matplotlib.cm API, use non-deprecated API when available
38 if MPL_VERSION >= Version("3.5"):
File ~/opt/anaconda3/lib/python3.9/site-packages/packaging/version.py:196, in Version.init(self, version)
185 """Initialize a Version object.
186
187 :param version:
(...)
192 exception will be raised.
193 """
195 # Validate the version and parse it into pieces
--> 196 match = self._regex.search(version)
197 if not match:
198 raise InvalidVersion(f"Invalid version: '{version}'")
TypeError: expected string or bytes-like object
The text was updated successfully, but these errors were encountered:
TypeError Traceback (most recent call last)
Cell In[27], line 1
----> 1 import cmocean
File ~/opt/anaconda3/lib/python3.9/site-packages/cmocean/init.py:11
8 from future import absolute_import
10 # from cmocean import *
---> 11 from . import cm, tools, data
13 all = ['cm',
14 'tools',
15 'plots',
16 'data']
18 authors = ['Kristen Thyng [email protected]']
File ~/opt/anaconda3/lib/python3.9/site-packages/cmocean/cm.py:34
30 cmap_d = dict()
33 # a comparable version object
---> 34 MPL_VERSION = Version(version("matplotlib"))
36 def _register_cmap(cmap, *, name):
37 # wrap matplotlib.cm API, use non-deprecated API when available
38 if MPL_VERSION >= Version("3.5"):
File ~/opt/anaconda3/lib/python3.9/site-packages/packaging/version.py:196, in Version.init(self, version)
185 """Initialize a Version object.
186
187 :param version:
(...)
192 exception will be raised.
193 """
195 # Validate the version and parse it into pieces
--> 196 match = self._regex.search(version)
197 if not match:
198 raise InvalidVersion(f"Invalid version: '{version}'")
TypeError: expected string or bytes-like object
The text was updated successfully, but these errors were encountered: