How to solve the problem "Unable to load cgns"

44 views
Skip to first unread message

Richard Qin

unread,
Jun 28, 2018, 4:09:52 AM6/28/18
to PyFR Mailing List
In that mail, an instruction called --export PYFR_LIBRARY_PATH=(your CGNS library path)
Therefore, I wrote down this instruction.

pyfr@ubuntu:~/users$ export PYFR_LIBARY_PATH="/home/cgns/lib"
However, it doesn't work.
The file in directory /home/cgns/lib is libcgns.so and libcgns.a. 
The lib directory is created by me. It is not automatically created, because I didn't find this directory in cgns/src dirsctory.
Moreover, I didn't install HDF5. Is that relevant to the problem? 


The following is the problem same as the email above.
pyfr@ubuntu:~/users$ pyfr import yf17.cgns yf17.pyfrm
Traceback (most recent call last):
  File "/home/pyfr/miniconda3/lib/python3.6/site-packages/pyfr-1.7.5-py3.6.egg/pyfr/ctypesutil.py", line 32, in load_library
  File "/home/pyfr/miniconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libcgns.so: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pyfr/miniconda3/bin/pyfr", line 11, in <module>
    load_entry_point('pyfr==1.7.5', 'console_scripts', 'pyfr')()
  File "/home/pyfr/miniconda3/lib/python3.6/site-packages/pyfr-1.7.5-py3.6.egg/pyfr/__main__.py", line 110, in main
  File "/home/pyfr/miniconda3/lib/python3.6/site-packages/pyfr-1.7.5-py3.6.egg/pyfr/__main__.py", line 121, in process_import
  File "/home/pyfr/miniconda3/lib/python3.6/site-packages/pyfr-1.7.5-py3.6.egg/pyfr/readers/__init__.py", line 19, in get_reader_by_extn
  File "/home/pyfr/miniconda3/lib/python3.6/site-packages/pyfr-1.7.5-py3.6.egg/pyfr/readers/cgns.py", line 374, in __init__
  File "/home/pyfr/miniconda3/lib/python3.6/site-packages/pyfr-1.7.5-py3.6.egg/pyfr/readers/cgns.py", line 34, in __init__
  File "/home/pyfr/miniconda3/lib/python3.6/site-packages/pyfr-1.7.5-py3.6.egg/pyfr/ctypesutil.py", line 41, in load_library
OSError: Unable to load cgns

Reply all
Reply to author
Forward
0 new messages