[pyngl-talk] PyNIO and PyNGL installation error
Kevin Hallock
hallock at ucar.edu
Wed Mar 8 12:49:26 MST 2017
Hi Raj,
It appears as though there is a dependency conflict between that particular version of PyNIO and the rest of Anaconda.
Our recommended instructions for installing PyNIO and PyNGL are as follows:
> To install PyNIO and PyNGL under conda, we recommend creating a conda environment:
>
> conda create --name pyn_test --channel conda-forge pynio pyngl
> source activate pyn_test
>
We generally recommend creating a conda environment, especially when using Anaconda, due to dependency issues like what you experienced with libjpeg.
Please let me know if this helps.
Kevin
> On Mar 8, 2017, at 12:24 PM, Raju Ankleshwaria <raju.ankleshwaria at gmail.com> wrote:
>
> for PyNIO conda install -c ncar pynio=1.4.3
> for PyNGL conda is unable to search the package. conda search pyngl
>
> On Wed, Mar 8, 2017 at 11:18 AM, Kevin Hallock <hallock at ucar.edu <mailto:hallock at ucar.edu>> wrote:
> Hi Raj,
>
> What was the full conda command you used to install PyNIO and PyNGL?
>
> Kevin
>
>> On Mar 8, 2017, at 11:43 AM, Raju Ankleshwaria <raju.ankleshwaria at gmail.com <mailto:raju.ankleshwaria at gmail.com>> wrote:
>>
>> Hi kevin,
>>
>> I installed Anaconda in my Linux3 x64 and NIO. However, I am getting the below error of libjpecg.so.8. I do not have this file but version 9. see below information for your review.
>>
>> Thanks,
>> raj
>>
>> [root at air runIndia]$ python
>> Python 2.7.13 |Anaconda custom (64-bit)| (default, Dec 20 2016, 23:09:15)
>> [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>> Anaconda is brought to you by Continuum Analytics.
>> Please check out: http://continuum.io/thanks <http://continuum.io/thanks> and https://anaconda.org <https://anaconda.org/>
>> >>> import Nio
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> File "/data/soft/anaconda2/lib/python2.7/site-packages/PyNIO/Nio.py", line 63, in <module>
>> from nio import *
>> ImportError: libjpeg.so.8: cannot open shared object file: No such file or directory
>> >>>
>> KeyboardInterrupt
>> >>>
>> [root at air runIndia]$ locate libjpeg
>> /data/soft/anaconda2/lib/libjpeg.a
>> /data/soft/anaconda2/lib/libjpeg.la <http://libjpeg.la/>
>> /data/soft/anaconda2/lib/libjpeg.so
>> /data/soft/anaconda2/lib/libjpeg.so.9
>> /data/soft/anaconda2/lib/libjpeg.so.9.2.0
>> /data/soft/anaconda2/pkgs/jpeg-9b-0/lib/libjpeg.a
>> /data/soft/anaconda2/pkgs/jpeg-9b-0/lib/libjpeg.la <http://libjpeg.la/>
>> /data/soft/anaconda2/pkgs/jpeg-9b-0/lib/libjpeg.so
>> /data/soft/anaconda2/pkgs/jpeg-9b-0/lib/libjpeg.so.9
>> /data/soft/anaconda2/pkgs/jpeg-9b-0/lib/libjpeg.so.9.2.0
>> /usr/lib64/libjpeg.so
>> /usr/lib64/libjpeg.so.62
>> /usr/lib64/libjpeg.so.62.1.0
>> /usr/local/lib/libjpeg.a
>> /usr/local/lib/libjpeg.la <http://libjpeg.la/>
>> /usr/local/lib/libjpeg.so
>> /usr/local/lib/libjpeg.so.9
>> /usr/local/lib/libjpeg.so.9.2.0
>>
>>
>>
>> On Tue, Mar 7, 2017 at 11:44 AM, Kevin Hallock <hallock at ucar.edu <mailto:hallock at ucar.edu>> wrote:
>> Hi Raj,
>>
>> If the pre-compiled versions of PyNIO and PyNGL are causing problems on your system, you may want to consider using conda instead: https://www.pyngl.ucar.edu/Download/ <https://www.pyngl.ucar.edu/Download/>
>>
>> The conda package manager handles all dependencies (including gfortran) for you so that situations like this shouldn’t happen. Please let me know if you have any questions.
>>
>> Kevin
>>
>>> On Mar 6, 2017, at 2:04 PM, Raju Ankleshwaria <raju.ankleshwaria at gmail.com <mailto:raju.ankleshwaria at gmail.com>> wrote:
>>>
>>> Dear Users,
>>>
>>> I am installing PyNIO and PyNGL for the first time and getting errors. My system is CenOS 7 64-bit. I downloaded pre compiled files for my system with non-opendap.
>>>
>>> I am getting error while import in Nio and Ngl. Please see the error below. I check the libgfortran and that file is there. Please see below.
>>>
>>> I need your help.
>>> Raj
>>>
>>> Version of PyNIO: 1.4.1 linux-redhat-x86_64-gcc412-py271-numpy160
>>> PyNGL: 1.4.0 linux-redhat-x86_64-gcc412-py271-numpy160
>>>
>>>
>>> [root at air site-packages]# python
>>> Python 2.7.5 (default, Nov 6 2016, 00:28:07)
>>> [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2
>>> Type "help", "copyright", "credits" or "license" for more information.
>>> >>> import Ngl
>>> Traceback (most recent call last):
>>> File "<stdin>", line 1, in <module>
>>> File "/usr/lib/python2.7/site-packages/PyNGL/Ngl.py", line 39, in <module>
>>> import fplib
>>> ImportError: /lib64/libgfortran.so.1: undefined symbol: sqrtq
>>> >>>
>>> [root at air site-packages]# python
>>> Python 2.7.5 (default, Nov 6 2016, 00:28:07)
>>> [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2
>>> Type "help", "copyright", "credits" or "license" for more information.
>>> >>> import Nio
>>> Traceback (most recent call last):
>>> File "<stdin>", line 1, in <module>
>>> File "/usr/lib64/python2.7/site-packages/PyNIO/Nio.py", line 63, in <module>
>>> from nio import *
>>> ImportError: /lib64/libgfortran.so.1: undefined symbol: sqrtq
>>> >>> import Ngl
>>> Traceback (most recent call last):
>>> File "<stdin>", line 1, in <module>
>>> File "/usr/lib/python2.7/site-packages/PyNGL/Ngl.py", line 39, in <module>
>>> import fplib
>>> ImportError: /lib64/libgfortran.so.1: undefined symbol: sqrtq
>>> >>>
>>> [root at air site-packages]# locate libgfortran.so.1
>>> /usr/lib64/libgfortran.so.1
>>> /usr/lib64/libgfortran.so.1.0.0
>>> [root at air site-packages]#
>>> _______________________________________________
>>> pyngl-talk mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk <http://mailman.ucar.edu/mailman/listinfo/pyngl-talk>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/pyngl-talk/attachments/20170308/531b5738/attachment.html
More information about the pyngl-talk
mailing list