How to solve the problem "Unable to load cgns"

Sett 44 ganger
Hopp til første uleste melding

Richard Qin

ulest,
28. juni 2018, 04:09:5228.06.2018
til 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

Svar alle
Svar til forfatter
Videresend
0 nye meldinger