Hi gus. I installed saga-gis-7.2.0 from source on my ubuntu system with python3.9.
But when I type saga_cmd, I got this error: ~~~
Error: SAGA API version mismatch: current version=7.2.0, sim_air_flow=8.1.1
Error: SAGA API version mismatch: current version=7.2.0, io_webservices=8.1.1
Segmentation fault (core dumped)
Here are gdb information:
0 CSG_Table_Record::asInt (this=this@entry=0x1, iField=iField@entry=2) at table_record.cpp:487
No locals.
1 0x00007ffff7c266a1 in CSG_Projections::Get_Projection (this=0x7ffff7ce9040 <gsg_projections>, Projection=..., Authority=..., Authority_ID=4326) at projections.cpp:919</gsg_projections>
pProjection = 0x1
i = 0
2 0x00007ffff7c267cb in CSG_Projections::Get_Projection (this=0x7ffff7ce9040 <gsg_projections>, Projection=..., EPSG_ID=4326) at projections.cpp:910</gsg_projections>
No locals.
3 0x00007ffff3ccb1ac in CCRS_Base::CCRS_Base (this=0x555555a2f8c0) at crs_base.cpp:83
No locals.
4 0x00007ffff3cb9aba in CCRS_Assign::CCRS_Assign (this=0x555555a2f8c0) at crs_assign.cpp:71
No locals.
5 0x00007ffff3cb9385 in Create_Tool (i=<optimized out="">) at MLB_Interface.cpp:127</optimized>
No locals.
6 0x00007ffff7c627a1 in CSG_Tool_Library_Interface::Create (this=this@entry=0x7ffff3d08b20 <tlb_interface>, Version=..., TLB_Path=..., Fnc_Info=Fnc_Info@entry=0x7ffff3cb9520 <get_info(int)>,</get_info(int)></tlb_interface>
7 0x00007ffff3cb96ef in TLB_Initialize (TLB_Path=<optimized out="">) at MLB_Interface.cpp:181</optimized>
No locals.
8 0x00007ffff7c5fcc3 in CSG_Tool_Library::CSG_Tool_Library (this=0x555555a88480, File=...) at api_core.h:263
No locals.
9 0x00007ffff7c615ca in CSG_Tool_Library_Manager::Add_Library (this=0x7ffff7ce92f0 <g_tool_library_manager>, File=...) at tool_library.cpp:320</g_tool_library_manager>
seems like you have two different (7.2.0 and 8.1.1) SAGA versions installed on your system and these interfere. Maybe you have already installed a SAGA version from a different source? After a clean-up the problem should disappear.
Best regards,
Volker
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi gus. I installed saga-gis-7.2.0 from source on my ubuntu system with python3.9.
But when I type saga_cmd, I got this error: ~~~
Error: SAGA API version mismatch: current version=7.2.0, sim_air_flow=8.1.1
Error: SAGA API version mismatch: current version=7.2.0, io_webservices=8.1.1
Segmentation fault (core dumped)
0 CSG_Table_Record::asInt (this=this@entry=0x1, iField=iField@entry=2) at table_record.cpp:487
No locals.
1 0x00007ffff7c266a1 in CSG_Projections::Get_Projection (this=0x7ffff7ce9040 <gsg_projections>, Projection=..., Authority=..., Authority_ID=4326) at projections.cpp:919</gsg_projections>
2 0x00007ffff7c267cb in CSG_Projections::Get_Projection (this=0x7ffff7ce9040 <gsg_projections>, Projection=..., EPSG_ID=4326) at projections.cpp:910</gsg_projections>
No locals.
3 0x00007ffff3ccb1ac in CCRS_Base::CCRS_Base (this=0x555555a2f8c0) at crs_base.cpp:83
No locals.
4 0x00007ffff3cb9aba in CCRS_Assign::CCRS_Assign (this=0x555555a2f8c0) at crs_assign.cpp:71
No locals.
5 0x00007ffff3cb9385 in Create_Tool (i=<optimized out="">) at MLB_Interface.cpp:127</optimized>
No locals.
6 0x00007ffff7c627a1 in CSG_Tool_Library_Interface::Create (this=this@entry=0x7ffff3d08b20 <tlb_interface>, Version=..., TLB_Path=..., Fnc_Info=Fnc_Info@entry=0x7ffff3cb9520 <get_info(int)>,</get_info(int)></tlb_interface>
7 0x00007ffff3cb96ef in TLB_Initialize (TLB_Path=<optimized out="">) at MLB_Interface.cpp:181</optimized>
No locals.
8 0x00007ffff7c5fcc3 in CSG_Tool_Library::CSG_Tool_Library (this=0x555555a88480, File=...) at api_core.h:263
No locals.
9 0x00007ffff7c615ca in CSG_Tool_Library_Manager::Add_Library (this=0x7ffff7ce92f0 <g_tool_library_manager>, File=...) at tool_library.cpp:320</g_tool_library_manager>
10 0x00007ffff7c61f95 in CSG_Tool_Library_Manager::Add_Directory (this=0x7ffff7ce92f0 <g_tool_library_manager>, Directory=..., bOnlySubDirectories=<optimized out="">) at tool_library.cpp:363</optimized></g_tool_library_manager>
11 0x000055555556688d in Load_Libraries (Directory=...) at saga_cmd.cpp:394
12 0x0000555555566e93 in Load_Libraries () at saga_cmd.cpp:406
13 0x0000555555569cfe in Run (argc=1, argv=0x7fffffffdcf8) at saga_cmd.cpp:201
No locals.
14 0x000055555555cf74 in main (argc=1, argv=0x7fffffffdcf8) at saga_cmd.cpp:143
~~~
Does andbody have idea about sovling this?
Hi,
seems like you have two different (7.2.0 and 8.1.1) SAGA versions installed on your system and these interfere. Maybe you have already installed a SAGA version from a different source? After a clean-up the problem should disappear.
Best regards,
Volker