Bug 55035 - python3-module-soundcard: ошибка импорта модуля
Summary: python3-module-soundcard: ошибка импорта модуля
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: python3-module-soundcard (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Aleksandr Shamaraev
QA Contact: qa-sisyphus
URL: https://github.com/bastibe/SoundCard/...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-03 15:00 MSK by Alexander Makeenkov
Modified: 2025-07-04 05:42 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Makeenkov 2025-07-03 15:00:14 MSK
python3-module-soundcard-0.4.4-alt1


# apt-get install python3-module-soundcard

$ python3 -c "import soundcard"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/site-packages/soundcard/__init__.py", line 4, in <module>
    from soundcard.pulseaudio import *
  File "/usr/lib/python3/site-packages/soundcard/pulseaudio.py", line 290, in <module>
    _pulse = _PulseAudio()
             ^^^^^^^^^^^^^
  File "/usr/lib/python3/site-packages/soundcard/pulseaudio.py", line 95, in __init__
    self.context = _pa.pa_context_new(self.mainloop_api, self._infer_program_name().encode())
                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/site-packages/soundcard/pulseaudio.py", line 114, in _infer_program_name
    return sys.argv[1][:30] + "..."
           ~~~~~~~~^^^
IndexError: list index out of range
Comment 1 Aleksandr Shamaraev 2025-07-03 16:15:27 MSK
Task #388840 for sisyphus by shad

Статус задания:
try 1 EPERM
Comment 2 Repository Robot 2025-07-04 05:42:39 MSK
python3-module-soundcard-0.4.4-alt2 -> sisyphus:

Thu Jul 03 2025 Aleksandr Shamaraev <shad@altlinux> 0.4.4-alt2
- fixed import error (ALT #55035)