Installation problem on Ubuntu 22.04.2 LTS, cannot import escriptcpp.so
Dear esys-escript Team:
I am running into a problem when installing esys-escript (https:/
I used the command:
sudo scons -j4 options_
The code in LAPTOP-
escript_
openmp = True
boost_libs = ['boost_python310']
pythoncmd = 'python3'
pythonincpath=
pythonlibpath=
pythonlibname=
#mpi = 'OPENMPI'
mpi_prefix = '/usr/lib/
mpi_libs = ['mpi_cxx', 'mpi', 'open-rte', 'open-pal']
netcdf = True
#umfpack = True
umfpack_prefix = ['/usr/
umfpack_libs = ['umfpack', 'blas', 'amd']
lapack_prefix = ['/usr/
The first error is: 'samplesR' and 'samplesC' may be used uninitialized.
escriptcore/
escriptcore/
1027 | DataTypes:
| ~~~~~~~
1028 | data.getDataPoi
| ~~~~~~~
escriptcore/
1024 | DataTypes:
| ~~~~~~~
1025 | data.getDataPoi
| ~~~~~~~
python3 scripts/py_comp.py escript/
python3 scripts/py_comp.py escript/
python3 scripts/py_comp.py escript/
cc1plus: all warnings being treated as errors
Install file: "build/
Compiling build/posix/
scons: *** [build/
scons: building terminated because of errors.
So, I modified the code like this:
// Initialise variables
const DataTypes::cplx_t* samplesC=(0).
const DataTypes::real_t* samplesR=0.
However, I encountered another error:
Install file: "scripts/
/home/aegeansea
Traceback (most recent call last):
File "/home/
from esys.escript import *
File "escript/
from esys.escriptcor
ImportError: /home/aegeansea
scons: *** [dummy] Error 1
scons: building terminated because of errors.
*** Config Summary (see config.log and <prefix>
Escript revision
Install prefix: /home/aegeansea
Python: python3 (Version 3.10.6)
boost: /usr (Version 1.81.0)
boost numpy: YES
trilinos: NO
numpy: YES (with headers)
gmsh: YES
gzip: YES
Solver library: paso
Direct solver: NONE
domains: dudley, finley, ripley, speckley
netcdf: YES (3)
weipa: YES
openmp: YES
pyproj: YES
scipy: YES
DISABLED features: cppunit debug gdal lapack mkl mpi mumps parmetis silo sympy trilinos umfpack visit
Treating warnings as errors
How can I fix this issue?
Thanks, before,
Yang Yu
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- yang yu
- Solved:
- Last query:
- Last reply: