---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-22-7856174d5762> in <module>()
2 layer='Ocean_Basemap'
3 ax = plt.axes(projection=ccrs.PlateCarree())
----> 4 ax.add_wmts(url, layer)
5 ax.set_extent((-15, 25, 35, 60))
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/cartopy/mpl/geoaxes.pyc in add_wmts(self, wmts, layer_name, **kwargs)
1516 """
1517 from cartopy.io.ogc_clients import WMTSRasterSource
-> 1518 wmts = WMTSRasterSource(wmts, layer_name)
1519 return self.add_raster(wmts, **kwargs)
1520
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/cartopy/io/ogc_clients.pyc in __init__(self, wmts, layer_name)
191 hasattr(wmts, 'contents') and
192 hasattr(wmts, 'gettile')):
--> 193 wmts = owslib.wmts.WebMapTileService(wmts)
194
195 try:
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/OWSLib-0.8.13-py2.7.egg/owslib/wmts.pyc in __init__(self, url, version, xml, username, password, parse_remote_metadata, vendor_kwargs)
171
172 # build metadata objects
--> 173 self._buildMetadata(parse_remote_metadata)
174
175 def _getcapproperty(self):
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/OWSLib-0.8.13-py2.7.egg/owslib/wmts.pyc in _buildMetadata(self, parse_remote_metadata)
191 # serviceProvider metadata
192 serviceprov = self._capabilities.find(_SERVICE_PROVIDER_TAG)
--> 193 self.provider = ServiceProvider(serviceprov)
194
195 # serviceOperations metadata
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/OWSLib-0.8.13-py2.7.egg/owslib/ows.pyc in __init__(self, infoset, namespace)
78 def __init__(self, infoset,namespace=DEFAULT_OWS_NAMESPACE):
79 self._root = infoset
---> 80 val = self._root.find(util.nspath('ProviderName', namespace))
81 self.name = util.testXMLValue(val)
82 self.contact = ServiceContact(infoset, namespace)
AttributeError: 'NoneType' object has no attribute 'find'