Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Derived winds example - ImportError: cannot import name 'InsetPosition' from 'mpl_toolkits.axes_grid1.inset_locator' #120

@kolrocket

Description

@kolrocket

Hello.
I'm trying to run this example https://blaylockbk.github.io/goes2go/_build/html/user_guide/notebooks/DEMO_derived_motion_winds.html. I've installed both goes2go and carpented_workshop using

!pip install git+https://github.com/blaylockbk/goes2go.git 

and

!pip install git+https://github.com/blaylockbk/Carpenter_Workshop.git

When running

from toolbox.wind import spddir_to_uv
from toolbox.cartopy_tools import common_features, pc
from paint.standard2 import cm_wind

This error shows up

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
[<ipython-input-17-b9790bcdd15e>](https://localhost:8080/#) in <cell line: 0>()
      1 #from toolbox.wind import spddir_to_uv
----> 2 from toolbox.cartopy_tools import common_features, pc
      3 from paint.standard2 import cm_wind

1 frames
[/usr/local/lib/python3.11/dist-packages/toolbox/cartopy_tools.py](https://localhost:8080/#) in <module>
     45 import xarray as xr
     46 import shapely.geometry as sgeom
---> 47 from mpl_toolkits.axes_grid1.inset_locator import InsetPosition
     48 from cartopy.io import shapereader
     49 from functools import partial

ImportError: cannot import name 'InsetPosition' from 'mpl_toolkits.axes_grid1.inset_locator' (/usr/local/lib/python3.11/dist-packages/mpl_toolkits/axes_grid1/inset_locator.py)

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
--------------------------------------------------------------

Is it a version conflict or something like that? I did not install any other thing aside from the two pip above (which install the dependencies as well).
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions