Skip to content

ModuleNotFoundError when running bragir with uv #38

Description

@marchfra

Description

When running uv run bragir --version, the tool exits unexpectedly with a ModuleNotFoundError. The error reports that the module pyaudioop cannot be found. This is my first time using bragir and I installed it via uv using the README instructions. I also tried adding the missing module manually with uv add pyaudioop but it wasn't found in the package registry.

Full traceback:

Traceback (most recent call last):
  File "cwd/.venv/lib/python3.13/site-packages/pydub/utils.py", line 14, in <module>
    import audioop
ModuleNotFoundError: No module named 'audioop'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "cwd/.venv/bin/bragir", line 4, in <module>
    from bragir.__main__ import cli
  File "cwd/.venv/lib/python3.13/site-packages/bragir/__init__.py", line 1, in <module>
    from .transcription import (
    ...<2 lines>...
    )
  File "cwd/.venv/lib/python3.13/site-packages/bragir/transcription/__init__.py", line 1, in <module>
    from .transcription import (
    ...<6 lines>...
    )
  File "cwd/.venv/lib/python3.13/site-packages/bragir/transcription/transcription.py", line 6, in <module>
    from bragir.file import calculate_file_size, process_file, remove_files
  File "cwd/.venv/lib/python3.13/site-packages/bragir/file.py", line 6, in <module>
    from bragir.audio.chunking import chunk_audio
  File "cwd/.venv/lib/python3.13/site-packages/bragir/audio/__init__.py", line 1, in <module>
    from .chunking import chunk_audio as chunk_audio
  File "cwd/.venv/lib/python3.13/site-packages/bragir/audio/chunking.py", line 1, in <module>
    from pydub import AudioSegment  # type:ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "cwd/.venv/lib/python3.13/site-packages/pydub/__init__.py", line 1, in <module>
    from .audio_segment import AudioSegment
  File "cwd/.venv/lib/python3.13/site-packages/pydub/audio_segment.py", line 11, in <module>
    from .utils import mediainfo_json, fsdecode
  File "cwd/.venv/lib/python3.13/site-packages/pydub/utils.py", line 16, in <module>
    import pyaudioop as audioop
ModuleNotFoundError: No module named 'pyaudioop'

Steps to Reproduce

  1. Install bragir with uv:
uv init . --managed-python -p 3.13.4
uv add bragir
  1. Try to run uv run bragir --version

Expected Behavior

I expected the package version to be printed on screen.

Actual Behavior

The tool exits with a ModuleNotFoundError about the missing pyaudioop.

Environment

  • OS: Intel macOS Sequoia 15.6.1
  • Python: 3.13.4
  • bragir: 1.4.7 (installed with uv)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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