Skip to content

pyogg has no attribute "pyogg.PYOGG_VORBIS_ENC_AVAIL" #117

@Crezle

Description

@Crezle

OS: Ubuntu 24.04
Python version: 3.12.3
PyOgg version: 0.6.14a1
Script version: 00-test-library-availability.py

When running the test-script as described in the official guide, I get this error:

$ python 00-test-library-availability.py 
Testing the availability of libraries used by PyOgg.

If there are libraries that are not available, PyOgg's abilities will
be limited.

Traceback (most recent call last):
  File "/home/user/00-test-library-availability.py", line 12, in <module>
    "VorbisEnc": pyogg.PYOGG_VORBIS_ENC_AVAIL,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pyogg' has no attribute 'PYOGG_VORBIS_ENC_AVAIL'. Did you mean: 'PYOGG_OPUS_ENC_AVAIL'?

But when I comment out that line, the path attribute related to vorbisenc is present:

$ python 00-test-library-availability.py 
Testing the availability of libraries used by PyOgg.

If there are libraries that are not available, PyOgg's abilities will
be limited.

All libraries used by PyOgg were available.

The libraries that were loaded were found in the following file names:
 - Ogg: libogg.so.0
 - Vorbis: libvorbis.so.0
 - VorbisFile: libvorbisfile.so.3
 - VorbisEnc: libvorbisenc.so.2
 - Opus: libopus.so.0
 - OpusFile: libopusfile.so.0
 - OpusEnc: libopusenc.so.0
 - Flac: libFLAC.so.12

In Linux, from Python version 3.6, the value of the environment variable
LD_LIBRARY_PATH is used when searching for libraries, if a library cannot
be found by any other means.

For more information on the process used to locate shared libraries, see
https://docs.python.org/3/library/ctypes.html#finding-shared-libraries

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