This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hello! Thanks for your question. MetPy has run into a compatibility issue with the recently-released cartopy 0.18 that we are aware of. In the mean time the solution is to roll back to cartopy 0.17 until we are able to get a fix out for MetPy 0.12. I hope this helps! Drew > Hi, > > I am new to MetPy and I am excited to be able to make some plots. Trying to > use some of the metpy plots in the youtube examples, I am getting an error > that I am not being able to get past to. > > from datetime import datetime > import matplotlib.pyplot as plt > import metpy.calc as mpcalc > from metpy.plots import SkewT > from metpy.units import units > from siphon.simplewebservice.wyoming import WyomingUpperAir > %matplotlib inline > > I get the following error: > > NameError Traceback (most recent call > last)<ipython-input-54-1e463be99531> in <module> 2 import > matplotlib.pyplot as plt 3 import metpy.calc as mpcalc----> 4 > from metpy.plots import SkewT 5 from metpy.units import units > 6 from siphon.simplewebservice.wyoming import WyomingUpperAir > ~/opt/anaconda3/lib/python3.7/site-packages/metpy/plots/__init__.py in > <module> 17 logger = logging.getLogger(__name__) 18 ---> 19 > __all__ = ctables.__all__[:] # pylint: disable=undefined-variable > 20 __all__.extend(declarative.__all__) # pylint: > disable=undefined-variable 21 __all__.extend(skewt.__all__) # > pylint: disable=undefined-variable > NameError: name 'ctables' is not defined > > > I see this error anytime I try to import some plot from metpy.plots. I > tried to research the error but I found no help online. Any help is > appreciated. > Ticket Details =================== Ticket ID: KDG-595508 Department: Support Python Priority: Low Status: Closed =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.