Skip to content

[BUG] nexa server libomni_audio_shared.so: undefined symbol #357

Open
@Doraemonwei

Description

Issue Description

Traceback (most recent call last):
  File "/home/lanpangzi/Desktop/python/bin/nexa", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/lanpangzi/Desktop/nexa-pip/nexa-sdk/nexa/cli/entry.py", line 641, in main
    run_ggml_server(args)
  File "/home/lanpangzi/Desktop/nexa-pip/nexa-sdk/nexa/cli/entry.py", line 152, in run_ggml_server
    from nexa.gguf.server.nexa_service import run_nexa_ai_service as NexaServer
  File "/home/lanpangzi/Desktop/nexa-pip/nexa-sdk/nexa/gguf/server/nexa_service.py", line 46, in <module>
    from nexa.gguf.nexa_inference_audio_lm import NexaAudioLMInference
  File "/home/lanpangzi/Desktop/nexa-pip/nexa-sdk/nexa/gguf/nexa_inference_audio_lm.py", line 17, in <module>
    from nexa.gguf.llama import audio_lm_cpp
  File "/home/lanpangzi/Desktop/nexa-pip/nexa-sdk/nexa/gguf/llama/audio_lm_cpp.py", line 129, in <module>
    lib.omni_process_streaming.argtypes = [omni_context_p, omni_context_params_p]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/ctypes/__init__.py", line 389, in __getattr__
    func = self.__getitem__(name)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/ctypes/__init__.py", line 394, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

```AttributeError: /home/lanpangzi/Desktop/nexa-pip/nexa-sdk/nexa/gguf/lib/libomni_audio_shared.so: undefined symbol: omni_process_streaming


there is no  omni_process_streaming in libomni_audio_shared.so:

(python3-2) lanpangzi@lanpangziRas:~/Desktop/nexa-pip2$ ldd /home/lanpangzi/Desktop/nexa-pip/nexa-sdk/nexa/gguf/lib/libomni_audio_shared.so
linux-vdso.so.1 (0x00007fff03854000)
libllama.so => /home/lanpangzi/Desktop/nexa-pip/nexa-sdk/nexa/gguf/lib/libllama.so (0x00007fff03560000)
libggml.so => /home/lanpangzi/Desktop/nexa-pip/nexa-sdk/nexa/gguf/lib/libggml.so (0x00007fff03530000)
libggml-cpu.so => /home/lanpangzi/Desktop/nexa-pip/nexa-sdk/nexa/gguf/lib/libggml-cpu.so (0x00007fff03480000)
libggml-base.so => /home/lanpangzi/Desktop/nexa-pip/nexa-sdk/nexa/gguf/lib/libggml-base.so (0x00007fff033c0000)
libstdc++.so.6 => /lib/aarch64-linux-gnu/libstdc++.so.6 (0x00007fff03190000)
libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x00007fff030f0000)
libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x00007fff030b0000)
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x00007fff02ef0000)
libgomp.so.1 => /lib/aarch64-linux-gnu/libgomp.so.1 (0x00007fff02e80000)
/lib/ld-linux-aarch64.so.1 (0x00007fff0381c000)

**nexa run works but nexa server doesn't**



### Steps to Reproduce

pip install -e . 

at aarch64

### OS

Debian GNU/Linux 12 (bookworm)

### Python Version

3.11.2

### Nexa SDK Version

0.0.9.7

### GPU (if using one)

_No response_

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions