Error in running the basin example

Hello everyone,

I’m new to ogs and I have installed the ogs from source following the guides from here. When I ran the basin example following the video tutorials, I met the error shown below

leo@leo-MS-7C37:~/Documents/ogs-6.4.2/example$ /home/leo/Documents/ogs-6.4.2/build/bin/ogs -l debug OGSinput_basin.prj 
info: This is OpenGeoSys-6 version NO_VERSION.
info: OGS started on 2022-11-17 21:18:09+0800.
[0] debug: Project configuration from file 'OGSinput_basin.prj' read.
[0] debug: Reading multiple meshes.
[0] debug: Reading mesh file 'mesh_basin_domain.vtu'.
[0] debug: Reading mesh file 'mesh_basin_physical_group_Left.vtu'.
[0] debug: Reading mesh file 'mesh_basin_physical_group_Right.vtu'.
[0] debug: Reading mesh file 'mesh_basin_physical_group_Bottom.vtu'.
[0] debug: Reading mesh file 'mesh_basin_physical_group_Top.vtu'.
[0] debug: Binding Python module OpenGeoSys.
[0] error: AttributeError: module 'sys' has no attribute 'argv'

At:
  /usr/lib/python3/dist-packages/gi/overrides/Gdk.py(450): <module>
  <frozen importlib._bootstrap>(219): _call_with_frames_removed
  <frozen importlib._bootstrap_external>(678): exec_module
  <frozen importlib._bootstrap>(665): _load_unlocked
  <frozen importlib._bootstrap>(955): _find_and_load_unlocked
  <frozen importlib._bootstrap>(971): _find_and_load
  <frozen importlib._bootstrap>(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
  <frozen importlib._bootstrap>(626): _load_backward_compatible
  <frozen importlib._bootstrap>(656): _load_unlocked
  <frozen importlib._bootstrap>(955): _find_and_load_unlocked
  <frozen importlib._bootstrap>(971): _find_and_load
  <frozen importlib._bootstrap>(994): _gcd_import
  /usr/lib/python3.6/importlib/__init__.py(126): import_module
  /usr/lib/python3/dist-packages/gi/importer.py(146): load_module
  <frozen importlib._bootstrap>(626): _load_backward_compatible
  <frozen importlib._bootstrap>(656): _load_unlocked
  <frozen importlib._bootstrap>(955): _find_and_load_unlocked
  <frozen importlib._bootstrap>(971): _find_and_load
  <frozen importlib._bootstrap>(219): _call_with_frames_removed
  <frozen importlib._bootstrap>(1031): _handle_fromlist
  /home/leo/.local/lib/python3.6/site-packages/matplotlib/backends/backend_gtk3.py(30): <module>
  <frozen importlib._bootstrap>(219): _call_with_frames_removed
  <frozen importlib._bootstrap_external>(678): exec_module
  <frozen importlib._bootstrap>(665): _load_unlocked
  <frozen importlib._bootstrap>(955): _find_and_load_unlocked
  <frozen importlib._bootstrap>(971): _find_and_load
  <frozen importlib._bootstrap>(219): _call_with_frames_removed
  <frozen importlib._bootstrap>(1031): _handle_fromlist
  /home/leo/.local/lib/python3.6/site-packages/matplotlib/backends/backend_gtk3agg.py(8): <module>
  <frozen importlib._bootstrap>(219): _call_with_frames_removed
  <frozen importlib._bootstrap_external>(678): exec_module
  <frozen importlib._bootstrap>(665): _load_unlocked
  <frozen importlib._bootstrap>(955): _find_and_load_unlocked
  <frozen importlib._bootstrap>(971): _find_and_load
  <frozen importlib._bootstrap>(994): _gcd_import
  /usr/lib/python3.6/importlib/__init__.py(126): import_module
  /home/leo/.local/lib/python3.6/site-packages/matplotlib/pyplot.py(277): backend_mod
  /home/leo/.local/lib/python3.6/site-packages/matplotlib/pyplot.py(276): switch_backend
  /home/leo/.local/lib/python3.6/site-packages/matplotlib/pyplot.py(258): switch_backend
  /home/leo/.local/lib/python3.6/site-packages/matplotlib/__init__.py(703): __getitem__
  /home/leo/.local/lib/python3.6/site-packages/matplotlib/pyplot.py(2336): <module>
  <frozen importlib._bootstrap>(219): _call_with_frames_removed
  <frozen importlib._bootstrap_external>(678): exec_module
  <frozen importlib._bootstrap>(665): _load_unlocked
  <frozen importlib._bootstrap>(955): _find_and_load_unlocked
  <frozen importlib._bootstrap>(971): _find_and_load
  ./glacierclass.py(5): <module>
  <frozen importlib._bootstrap>(219): _call_with_frames_removed
  <frozen importlib._bootstrap_external>(678): exec_module
  <frozen importlib._bootstrap>(665): _load_unlocked
  <frozen importlib._bootstrap>(955): _find_and_load_unlocked
  <frozen importlib._bootstrap>(971): _find_and_load
  timeBCs_glacier.py(2): <module>

[0] info: OGS terminated on 2022-11-17 21:18:10+0800.
[0] error: OGS terminated with error.

What should I do to solve this problem? Any kind of help is apprciated!

I use the OS Ubuntu 18.04.

Hi Lifan,

the stacktrace says that you are using Python scripts (timeBCs_glacier.py and glacierclass.py), probably for boundary conditions.

Are you using sys.argv somewhere in your Python scripts? I think that might not work, because the Python script is not executed like a command-line script.

Best regards,
Christoph