<html 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=utf-8">
<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:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi, Kevin:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you very much! I have tried your suggestion and it worked!<o:p></o:p></p>
<p class="MsoNormal">After the creation of the new env, I did an update for spyder and then pyqt and qt to avoid a warning message from spyder complaining the Canberra module can’t be loaded:<o:p></o:p></p>
<p class="MsoNormal">conda update spyder<o:p></o:p></p>
<p class="MsoNormal">conda update pyqt qt<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Everything works fine now.<o:p></o:p></p>
<p class="MsoNormal">Xingang<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Kevin Hallock <hallock@ucar.edu><br>
<b>Date: </b>Friday, January 18, 2019 at 3:59 PM<br>
<b>To: </b>Xingang Fan <xingang.fan@wku.edu><br>
<b>Cc: </b>"pyngl-talk@ucar.edu talk" <pyngl-talk@ucar.edu><br>
<b>Subject: </b>Re: PyNio and PyNgl import problems<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center;line-height:12.0pt;background:#FFEB9C">
<b><span style="font-size:10.0pt;color:#9C6500">** This message originated from outside WKU. Always use caution following links. **</span></b><o:p></o:p></p>
<div>
<p class="MsoNormal">Hi Xingang, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I’m CC’ing pyngl-talk in case anyone else encounters this issue too.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">There is currently a conflict between certain conda packages due to the conda-forge project migrating to a new compiler. (for more info, see: <a href="https://github.com/conda-forge/pynio-feedstock/issues/58">https://github.com/conda-forge/pynio-feedstock/issues/58</a>)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">A temporary workaround is to use “<span style="font-family:Menlo">-c conda-forge/label/cf201901</span>” in place of “<span style="font-family:Menlo">-c conda-forge</span>” in your conda commands to force the installation of older (pre-compiler-migration)
packages.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Please try the following command and let me know if that works for you:<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:Menlo">conda create -n metuse -c <b>conda-forge/label/cf201901</b> python=2.7 spyder jupyter basemap netcdf4 pynio pyngl pygrib metpy wrf-python xarray Django scikit-learn statsmodels</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">I hope this helps,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Kevin<o:p></o:p></p>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On Jan 18, 2019, at 9:21 AM, Fan, Xingang <<a href="mailto:xingang.fan@wku.edu">xingang.fan@wku.edu</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">One problem solved: On Mac, as someone suggested (I forgot who), the installation of XQuartz (and its related X11 libs) solved the Mac OS Ngl import issue.<span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">But for Nio on Ubuntu, I tried a few options and it still don’t work. Options tried include install libgal package, use different versions of pynio.<span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">Thanks,<span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">Xingang<span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<div>
<p class="MsoNormal"><b><span style="font-size:12.0pt;font-family:"Times New Roman",serif">From:<span class="apple-converted-space"> </span></span></b><span style="font-size:12.0pt;font-family:"Times New Roman",serif">Xingang Fan <<a href="mailto:xingang.fan@wku.edu">xingang.fan@wku.edu</a>><br>
<b>Date:<span class="apple-converted-space"> </span></b>Thursday, January 17, 2019 at 11:16 PM<br>
<b>To:<span class="apple-converted-space"> </span></b>Kevin Hallock <<a href="mailto:hallock@ucar.edu">hallock@ucar.edu</a>><br>
<b>Subject:<span class="apple-converted-space"> </span></b>PyNio and PyNgl import problems<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Times New Roman",serif"> </span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal">Hi, Kevin:<span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">I am again in a process of preparing for a class to use Nio and Ngl. We have two types of computers, Mac OS 10.12 or higher, and Ubuntu 18.04 (itself or as a Virtual Machines on Windows):<span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">After the following installation on both systems:<span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">conda create -n metuse -c conda-forge python=2.7 spyder jupyter basemap netcdf4 pynio pyngl pygrib metpy wrf-python xarray Django scikit-learn statsmodels<span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">On Mac, Nio imports ok, but Ngl complains about a libX11.6.so<span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">On Ubuntu, Ngl imports ok, but Nio complains about libgal<span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">Do you have a working version or a different channel that have a working version of these two?<span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">Thanks,<br>
Xingang Fan<span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif">-- <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif">Xingang Fan, Ph. D., | Department of Geography and Geology<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif">Associate Professor | Western Kentucky University<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif">of Meteorology | 1906 College Heights Blvd., #31066<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif">270-745-5980 | Bowling Green, KY 42101-1066<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><a href="mailto:xingang.fan@wku.edu"><span style="color:#0563C1">xingang.fan@wku.edu</span></a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><a href="http://people.wku.edu/xingang.fan"><span style="color:#0563C1">http://people.wku.edu/xingang.fan</span></a><o:p></o:p></span></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>