Skip to content

🐛 xaibo init fails when installing livekit dependencies (av build error) #27

@MFA-X-AI

Description

@MFA-X-AI

It appears that the current livekit module is broken in both local and the github runner.

Here's the logs from my dev server:

System Info

  • OS: Ubuntu 24.04.1 LTS
  • Kernel: 6.14.0-32-generic
  • Python: Python 3.10.15
  • UV: uv 0.6.11
  • FFmpeg: ffmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers

Logs

uvx xaibo init my_first_agent
Installed 39 packages in 152ms
? What dependencies do you want to include? done (3 selections)
Adding `my-first-agent` as member of workspace `/home/fahreza/Github/xaibo-test`
Initialized project `my-first-agent` at `/home/fahreza/Github/xaibo-test/my_first_agent`
Resolved 176 packages in 110ms
  × Failed to build `av==14.4.0`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit status: 1)

      [stdout]

      Warning! You are installing from source.
      It is EXPECTED that it will fail. You are REQUIRED to use ffmpeg 7.
      You MUST have Cython, pkg-config, and a C compiler.

      pkg-config could not find libraries ['avformat', 'avcodec', 'avdevice', 'avutil', 'avfilter', 'swscale', 'swresample']

      [stderr]
      Package libavdevice was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libavdevice.pc'
      to the PKG_CONFIG_PATH environment variable
      Package 'libavdevice', required by 'virtual:world', not found
      Package 'libavfilter', required by 'virtual:world', not found

      hint: This usually indicates a problem with the package or the build environment.
  help: If you want to add the package regardless of the failed resolution, provide the `--frozen` flag to skip locking and
        syncing.
Traceback (most recent call last):
  File "/home/fahreza/.cache/uv/archive-v0/lOJbKS2jHOldtDFMeDC_k/bin/xaibo", line 12, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/fahreza/.cache/uv/archive-v0/lOJbKS2jHOldtDFMeDC_k/lib/python3.12/site-packages/xaibo/cli/__init__.py", line 534, in main
    args.func(args, unknown_args)
  File "/home/fahreza/.cache/uv/archive-v0/lOJbKS2jHOldtDFMeDC_k/lib/python3.12/site-packages/xaibo/cli/__init__.py", line 323, in init
    universal_run(f"uv add xaibo xaibo[{','.join(modules)}] pytest", cwd=project_dir)
  File "/home/fahreza/.cache/uv/archive-v0/lOJbKS2jHOldtDFMeDC_k/lib/python3.12/site-packages/xaibo/cli/__init__.py", line 31, in universal_run
    cp = subprocess.run([exe, *command[1:]],
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/fahreza/.local/bin/uv', 'add', 'xaibo', 'xaibo[webserver,openai,livekit]', 'pytest']' returned non-zero exit status 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions