Menu

SAGA API version mismatch

Bowen
2022-02-17
2022-02-18
  • Bowen

    Bowen - 2022-02-17

    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>

    Fnc_Create_Tool=Fnc_Create_Tool@entry=0x7ffff3cb8f50 <Create_Tool(int)>) at tool_library_interface.cpp:131
        ID = 0
        Library = {_vptr.CSG_String = 0x7ffff7cdd8f8 <vtable for CSG_String+16>, m_pString = 0x555555ab2420}
        pTool = <optimized out>
    

    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>

        fn = {m_volume = {static npos = 18446744073709551615, m_impl = L"", m_convertedToChar = {m_str = 0x0, m_len = 140737488344944}}, m_dirs = {m_nSize = 16, m_nCount = 4, m_pItems = 0x5555556189c8, 
            m_autoSort = false}, m_name = {static npos = 18446744073709551615, m_impl = L"libpj_proj4", m_convertedToChar = {m_str = 0x0, m_len = 0}}, m_ext = {static npos = 18446744073709551615, 
            m_impl = L"so", m_convertedToChar = {m_str = 0x0, m_len = 4}}, m_relative = false, m_hasExt = true, m_dontFollowLinks = false}
        pLibrary = <optimized out>
    

    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>

        FileName = {static npos = 18446744073709551615, m_impl = L"libpj_proj4.so", m_convertedToChar = {m_str = 0x0, m_len = 140737488345472}}
        DirName = {static npos = 18446744073709551615, m_impl = L"/usr/local/lib/saga", m_convertedToChar = {m_str = 0x0, m_len = 13037721636289510144}}
        nOpened = 36
        Dir = {m_data = 0x5555555a2ea0}
    

    11 0x000055555556688d in Load_Libraries (Directory=...) at saga_cmd.cpp:394

        bShow = true
        n = <optimized out>
    

    12 0x0000555555566e93 in Load_Libraries () at saga_cmd.cpp:406

        Path = {static npos = 18446744073709551615, m_impl = L"", m_convertedToChar = {m_str = 0x0, m_len = 93824992711632}}
        CMD_Path = {static npos = 18446744073709551615, m_impl = L"/usr/local/bin/", m_convertedToChar = {m_str = 0x0, m_len = 18446744073709551464}}
    

    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

        bResult = false
    

    ~~~

    Does andbody have idea about sovling this?

     
  • Volker Wichmann

    Volker Wichmann - 2022-02-18

    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

     

Log in to post a comment.