[pyngl-talk] Unable to import ngl

Kevin Hallock hallock at ucar.edu
Tue May 7 16:09:19 MDT 2019


Hi Zilore,

I think the “PackagesNotFoundError” from conda is due to the fact that you are running a 32-bit Linux OS, while the conda packages are explicitly 64-bit binaries. Would it be possible to use a 64-bit Linux virtual machine instead?

When you installed PyNGL from source, were there any particular warning or error messages? Did you use conda to install the necessary dependencies, or did you use packages installed via apt-get?

Thanks,
Kevin

> On May 7, 2019, at 3:31 PM, Zilore Mumba via pyngl-talk <pyngl-talk at ucar.edu> wrote:
> 
> Hello, <mailto:pyngl-talk at ucar.edu>
> I am trying to run python scripts for plotting data, from the ncl to python transition manual. The scripts call nio and ngl.
> I have installed anaconda3 and created an ncl_to_python environment as follows:
> conda create -n yourenvname python=x.x anaconda
> conda activate ncl_to_python
> 
> Then following here http://mailman.ucar.edu/pipermail/pyngl-talk/2019-February/000276.html <http://mailman.ucar.edu/pipermail/pyngl-talk/2019-February/000276.html>
> I did:
> conda update -c conda-forge —all
> python -c "import Nio; print(Nio.__version__)"
> the last command was giving me "no module NIO" as in the pyngl-talk post above. I have followed  subsequent post and managed to install pynio with:
> conda install gdal; conda update --all
> 
> When I run the script I get:
> Traceback (most recent call last):
>   File "TRANS_contour_lines_on_map.py", line 41, in <module>
>     import Ngl
> ModuleNotFoundError: No module named 'Ngl'
> 
> I have installed pyngl from source, but it does not seem to be seen. With
> conda install -c conda-forge pyngl
>   or
> conda install -c conda-forge/label/cf201901 pyngl
> I get:
> PackagesNotFoundError: The following packages are not available from current channels:
>   - pyngl
> I am working on ubuntu 18.04 32 bit on VMware as a guest on Windows 10.
> Assistance will be appreciated.
> Zilore Mumba
> _______________________________________________
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/pyngl-talk/attachments/20190507/7d24f2d0/attachment.html>


More information about the pyngl-talk mailing list