Emre
February 18, 2021, 12:13pm
1
Hello, I am trying to perform the tutorial shared in youtube (solving part/ https://www.youtube.com/watch?v=GL5sugIyHEk&t=193s ). When I try to building the configuration, I am getting an error like shown below.
Some of the items can be seen in the screenshots, but I cannot see items as “ASSERT”, “ASSERT2” or “OGS_BUILD_PROCESS_Phasefield” etc.
I am very new at Linux, so this question might seem very basic. I git cloned the link “ogs / ogs · GitLab ” and downloaded the zip, extracted in a folder at my desktop.
Thank you for your help.
bilke
February 19, 2021, 1:56pm
3
Just downloading the source code as zip-file does not work! You have to use the git-cloned directory.
Emre
February 19, 2021, 5:18pm
4
Thank you for you response. I started to work in git-cloned directory and it worked.
But when I try to do $ make -j8, I get this error.
What am I doing wrong?
bilke
February 22, 2021, 9:06am
5
Maybe try to compile with fewer cores? Compilation of OGS can be quite memory intensive and maybe you just ran out of ram.
Emre
February 22, 2021, 2:02pm
6
I think It was related to the swap memory size. I increased it from 2 GB to 6 GB, and it worked!
If anyone has the same problem, you can watch this video (https://www.youtube.com/watch?v=Tteiw6MY4QI&ab_channel=LinuxHandbook ) for increasing the swap size.
But it took almost 6 hrs to complete the compilation. I guess I should use fewer cores.
Thank you again.
Emre
February 22, 2021, 2:59pm
7
I know I asked too many questions but I have another problem when I was running the model.
When I try to run the simulation, I got an error saying that “error: AttributeError: module ‘sys’ has no attribute ‘argv’”. Am I missing something?
emre@emre-VirtualBox:~/Desktop/OGS1/tutorial$ ~/Desktop/OGS1/build-release/bin/ogs -l debug OGSinput_basin.prj
info: This is OpenGeoSys-6 version 6.3.3-520-g09d085bd8.
info: OGS started on 2021-02-22 17:50:16+0300.
debug: Project configuration from file ‘OGSinput_basin.prj’ read.
debug: Reading multiple meshes.
debug: Reading mesh file ‘mesh_basin_domain.vtu’.
debug: Reading mesh file ‘mesh_basin_physical_group_Left.vtu’.
debug: Reading mesh file ‘mesh_basin_physical_group_Right.vtu’.
debug: Reading mesh file ‘mesh_basin_physical_group_Bottom.vtu’.
debug: Reading mesh file ‘mesh_basin_physical_group_Top.vtu’.
debug: Binding Python module OpenGeoSys.
error: AttributeError: module ‘sys’ has no attribute ‘argv’
At:
/usr/lib/python3/dist-packages/gi/overrides/Gdk.py(450):
(219): _call_with_frames_removed
(678): exec_module
(665): _load_unlocked
(955): _find_and_load_unlocked
(971): _find_and_load
(994): _gcd_import
/usr/lib/python3.6/importlib/init .py(126): import_module
/usr/lib/python3/dist-packages/gi/overrides/init .py(131): load_overrides
/usr/lib/python3/dist-packages/gi/importer.py(146): load_module
(626): _load_backward_compatible
(656): _load_unlocked
(955): _find_and_load_unlocked
(971): _find_and_load
(994): _gcd_import
/usr/lib/python3.6/importlib/init .py(126): import_module
/usr/lib/python3/dist-packages/gi/importer.py(146): load_module
(626): _load_backward_compatible
(656): _load_unlocked
(955): _find_and_load_unlocked
(971): _find_and_load
(219): _call_with_frames_removed
(1031): _handle_fromlist
/home/emre/.local/lib/python3.6/site-packages/matplotlib/backends/backend_gtk3.py(30):
(219): _call_with_frames_removed
(678): exec_module
(665): _load_unlocked
(955): _find_and_load_unlocked
(971): _find_and_load
(219): _call_with_frames_removed
(1031): _handle_fromlist
/home/emre/.local/lib/python3.6/site-packages/matplotlib/backends/backend_gtk3agg.py(8):
(219): _call_with_frames_removed
(678): exec_module
(665): _load_unlocked
(955): _find_and_load_unlocked
(971): _find_and_load
(994): _gcd_import
/usr/lib/python3.6/importlib/init .py(126): import_module
/home/emre/.local/lib/python3.6/site-packages/matplotlib/pyplot.py(277): backend_mod
/home/emre/.local/lib/python3.6/site-packages/matplotlib/pyplot.py(276): switch_backend
/home/emre/.local/lib/python3.6/site-packages/matplotlib/pyplot.py(258): switch_backend
/home/emre/.local/lib/python3.6/site-packages/matplotlib/init .py(703): getitem
/home/emre/.local/lib/python3.6/site-packages/matplotlib/pyplot.py(2336):
(219): _call_with_frames_removed
(678): exec_module
(665): _load_unlocked
(955): _find_and_load_unlocked
(971): _find_and_load
./glacierclass.py(5):
(219): _call_with_frames_removed
(678): exec_module
(665): _load_unlocked
(955): _find_and_load_unlocked
(971): _find_and_load
timeBCs_glacier.py(2):
info: OGS terminated on 2021-02-22 17:50:18+0300.
error: OGS terminated with error.
Lifan
November 17, 2022, 1:53pm
8
Hello,
I have met the same problem as yours. Did you find the way to solve this problem?
Look forward to your reply.
Lifan