<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Zilore,<div class=""><br class=""></div><div class="">If your laptop is a 32-bit system, then unfortunately I don’t think that the 64-bit anaconda3 or any of the pre-existing conda packages will work on your computer. It is generally possible to run 32-bit binaries on a 64-bit system, but not 64-bit binaries on 32-bit systems.</div><div class=""><br class=""></div><div class=""><div>It is theoretically possible to build PyNGL and PyNIO on a 32-bit system, but because PyNGL requires NCL to be built as well, this process would likely be rather complicated and time consuming. You might be able to hack together a solution using the “ncl_ncarg-6.6.2-Debian7.11_32bit_gnu472.tar.gz” download of NCL on this page: <a href="https://www.earthsystemgrid.org/dataset/ncl.662.dap/file.html" class="">https://www.earthsystemgrid.org/dataset/ncl.662.dap/file.html</a> </div><div><br class=""></div><div>I tried to mimic the build environment used by the conda-forge PyNGL package (<a href="https://github.com/conda-forge/pyngl-feedstock/tree/master/recipe" class="">https://github.com/conda-forge/pyngl-feedstock/tree/master/recipe</a> dependency packages in meta.yaml, build commands in build.sh), but ran into issues and am unable to spend more time working on it right now. Hopefully this info is enough to get you on the right track, but feel free to ask for advice if you hit any roadblocks.</div><div><br class=""></div><div>I hope this helps,</div><div>Kevin</div><div><br class=""><blockquote type="cite" class=""><div class="">On May 8, 2019, at 12:00 AM, Zilore Mumba <<a href="mailto:zmumba@gmail.com" class="">zmumba@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Kevin,</div><div class="">Thanks very much for the hints you gave me. I would like to run my scripts on a laptop which is 32 bit. I notice that both Nio.py and Ngl.py are in $HOME/anaconda3/lib/site-packages. I have added this to my LD_LIBRARY_PATH, but still the same problem. So looks like it is an architecture problem as you point out.</div><div class="">I am thinking of installing 64-bit anaconda3 on top of 32-bit. Before I do that, would you advise that, or I have to install the current installation first?</div><div class="">Thanks for your time<br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 8, 2019 at 12:09 AM Kevin Hallock <<a href="mailto:hallock@ucar.edu" class="">hallock@ucar.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class="">Hi Zilore,<div class=""><br class=""></div><div class="">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?</div><div class=""><br class=""></div><div class="">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?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Kevin<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On May 7, 2019, at 3:31 PM, Zilore Mumba via pyngl-talk <<a href="mailto:pyngl-talk@ucar.edu" target="_blank" class="">pyngl-talk@ucar.edu</a>> wrote:</div><br class="gmail-m_4143569480398968799Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><a href="mailto:pyngl-talk@ucar.edu" target="_blank" class="">Hello,</a></div><div class="">I am trying to run python scripts for plotting data, from the ncl to python transition manual. The scripts call nio and ngl.</div><div class="">I have installed anaconda3 and created an ncl_to_python environment as follows:</div><div class=""><pre class=""><code class="gmail-m_4143569480398968799gmail-m_1126049952723902877gmail-language-bash">conda create -n yourenvname <span class="gmail-m_4143569480398968799gmail-m_1126049952723902877gmail-nv">python</span><span class="gmail-m_4143569480398968799gmail-m_1126049952723902877gmail-o">=</span>x.x anaconda<br class="">conda activate ncl_to_python<br class=""><br class=""></code></pre><pre class=""><code class="gmail-m_4143569480398968799gmail-m_1126049952723902877gmail-language-bash">Then following here <a href="http://mailman.ucar.edu/pipermail/pyngl-talk/2019-February/000276.html" target="_blank" class="">http://mailman.ucar.edu/pipermail/pyngl-talk/2019-February/000276.html</a><br class="">I did:<br class="">conda update -c conda-forge —all
python -c "import Nio; print(Nio.__version__)"<br class=""></code></pre><pre class=""><code class="gmail-m_4143569480398968799gmail-m_1126049952723902877gmail-language-bash">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:<br class="">conda install gdal; conda update --all<br class=""><br class=""></code></pre><pre class=""><code class="gmail-m_4143569480398968799gmail-m_1126049952723902877gmail-language-bash">When I run the script I get:<br class="">Traceback (most recent call last):<br class=""> File "TRANS_contour_lines_on_map.py", line 41, in <module><br class=""> import Ngl<br class="">ModuleNotFoundError: No module named 'Ngl'<br class=""><br class=""></code></pre><pre class=""><code class="gmail-m_4143569480398968799gmail-m_1126049952723902877gmail-language-bash">I have installed pyngl from source, but it does not seem to be seen. With<br class=""><code class="">conda install -c conda-forge pyngl
</code>or<br class=""><code class="">conda install -c conda-forge/label/cf201901 pyngl<br class=""></code></code></pre><pre class=""><code class="gmail-m_4143569480398968799gmail-m_1126049952723902877gmail-language-bash"><code class="">I get:<br class="">PackagesNotFoundError: The following packages are not available from current channels:<br class=""> - pyngl<br class=""></code></code></pre><pre class=""><code class="gmail-m_4143569480398968799gmail-m_1126049952723902877gmail-language-bash"><code class="">I am working on ubuntu 18.04 32 bit on VMware as a guest on Windows 10.<br class="">Assistance will be appreciated.<br class=""></code></code></pre><pre class=""><code class="gmail-m_4143569480398968799gmail-m_1126049952723902877gmail-language-bash"><code class="">Zilore Mumba<br class=""></code></code></pre></div></div></div></div></div></div></div>
_______________________________________________<br class="">pyngl-talk mailing list<br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/pyngl-talk</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div>
</div></blockquote></div><br class=""></div></body></html>