[pyngl-talk] PyNio and PyNgl import problems
Fan, Xingang
xingang.fan at wku.edu
Sat Jan 19 18:33:00 MST 2019
Hi, Kevin:
Thank you very much! I have tried your suggestion and it worked!
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:
conda update spyder
conda update pyqt qt
Everything works fine now.
Xingang
From: Kevin Hallock <hallock at ucar.edu>
Date: Friday, January 18, 2019 at 3:59 PM
To: Xingang Fan <xingang.fan at wku.edu>
Cc: "pyngl-talk at ucar.edu talk" <pyngl-talk at ucar.edu>
Subject: Re: PyNio and PyNgl import problems
** This message originated from outside WKU. Always use caution following links. **
Hi Xingang,
I’m CC’ing pyngl-talk in case anyone else encounters this issue too.
There is currently a conflict between certain conda packages due to the conda-forge project migrating to a new compiler. (for more info, see: https://github.com/conda-forge/pynio-feedstock/issues/58)
A temporary workaround is to use “-c conda-forge/label/cf201901” in place of “-c conda-forge” in your conda commands to force the installation of older (pre-compiler-migration) packages.
Please try the following command and let me know if that works for you:
conda create -n metuse -c conda-forge/label/cf201901 python=2.7 spyder jupyter basemap netcdf4 pynio pyngl pygrib metpy wrf-python xarray Django scikit-learn statsmodels
I hope this helps,
Kevin
On Jan 18, 2019, at 9:21 AM, Fan, Xingang <xingang.fan at wku.edu<mailto:xingang.fan at wku.edu>> wrote:
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.
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.
Thanks,
Xingang
From: Xingang Fan <xingang.fan at wku.edu<mailto:xingang.fan at wku.edu>>
Date: Thursday, January 17, 2019 at 11:16 PM
To: Kevin Hallock <hallock at ucar.edu<mailto:hallock at ucar.edu>>
Subject: PyNio and PyNgl import problems
Hi, Kevin:
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):
After the following installation on both systems:
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
On Mac, Nio imports ok, but Ngl complains about a libX11.6.so
On Ubuntu, Ngl imports ok, but Nio complains about libgal
Do you have a working version or a different channel that have a working version of these two?
Thanks,
Xingang Fan
--
Xingang Fan, Ph. D., | Department of Geography and Geology
Associate Professor | Western Kentucky University
of Meteorology | 1906 College Heights Blvd., #31066
270-745-5980 | Bowling Green, KY 42101-1066
xingang.fan at wku.edu<mailto:xingang.fan at wku.edu>
http://people.wku.edu/xingang.fan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/pyngl-talk/attachments/20190120/890e2cd2/attachment.html>
More information about the pyngl-talk
mailing list