<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
span.StileMessaggioDiPostaElettronica17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="IT" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">I’m using owslib with Eumetstat WMS service, but I have some issue.<o:p></o:p></p>
<p class="MsoNormal">The command:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">wms_msg = WebMapService('http://eumetview.eumetsat.int/geoserver/wms')<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">returns:<o:p></o:p></p>
<p class="MsoNormal"><i>ConnectionError: HTTPConnectionPool(host='eumetview.eumetsat.int', port=80): Max retries exceeded with url: /geoserver/wms?service=WMS&request=GetCapabilities&version=1.1.1 (Caused by NewConnectionError("<urllib3.connection.HTTPConnection
object at 0x00000268ADC13940>: Failed to establish a new connection: [WinError 10060]<o:p></o:p></i></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The same error under Linux.<o:p></o:p></p>
<p class="MsoNormal">I’ve googled about it and it appears to be an SSL issue, maybe related to the requests package (idk): I’m working behind a company proxy but if I use a browser I get the correct XML description of the service, so I’m inclined to exclude
it.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">On the github repo there is a hint on issue #489<o:p></o:p></p>
<p class="MsoNormal"><i><a href="https://github.com/murdav"><b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white;text-decoration:none">@murdav</span></b></a></i><i><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E"><br>
<span style="background:white">You could extend the WMS class initialization with the </span></span></i><code><i><span style="font-size:9.0pt;font-family:Consolas;color:#24292E">verify</span></i></code><i><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white"> and </span></i><code><i><span style="font-size:9.0pt;font-family:Consolas;color:#24292E">cert</span></i></code><i><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white"> parameters.
These parameters are passed down to the requests library. I have done this for WPS, see PR </span><a href="https://github.com/geopython/OWSLib/issues/437"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#0366D6;background:white;text-decoration:none">#437</span></a></i><i><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white">.<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white">Unfortunately I could not find any WMS initialization on the owslib documentation.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any hint?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><i><span style="mso-fareast-language:IT"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><i><span style="mso-fareast-language:IT">Mauro</span></i><span style="mso-fareast-language:IT">
<i>Mussin</i><o:p></o:p></span></p>
</div>
</body>
</html>