TeamPyOgg / PyOgg

Simple OGG Vorbis, Opus and FLAC bindings for Python
The Unlicense
63 stars 27 forks source link

as_array() method for OpusFile is not available #86

Closed ivan339339 closed 3 years ago

ivan339339 commented 3 years ago

Hi!

I create OpusFile instance like this:

import pyogg

opus_file = pyogg.OpusFile('file.opus')

But call opus_file.as_array() throws this exception:

AttributeError: 'OpusFile' object has no attribute 'as_array'

I work on Ubuntu 18.04, before steps above I installed libopusfile-dev.

Is this the expected behavior?

mattgwwalker commented 3 years ago

Did you install PyOgg using pip? If so, the latest version is only available via the GitHub repository. I would recommend you install that version instead, which may resolve your issue.

Cheers,

Matthew

On Fri, 28 May 2021 at 01:32, ivan @.***> wrote:

Hi!

I create OpusFile instance like this:

import pyogg

opus_file = pyogg.OpusFile('file.opus')

But call opus_file.as_array() throws this exception:

AttributeError: 'OpusFile' object has no attribute 'as_array'

I work on Ubuntu 18.04, before steps above I installed libopusfile-dev.

Is this the expected behavior?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/TeamPyOgg/PyOgg/issues/86, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA653XC7F4PSY5VESLUUROLTPZCXJANCNFSM45UJ5AHQ .

ivan339339 commented 3 years ago

Yes, I installed PyOgg using pip. Thank you for clarification.

LifeMM commented 3 years ago

same question ,i install lastest version .whl,and pip install .whl ,But call opus_file.as_array() throws this exception:

AttributeError: 'OpusFile' object has no attribute as_array()

LifeMM commented 3 years ago

@mattgwwalker

Zuzu-Typ commented 3 years ago

Hi @562245918

Please try installing the latest version using pip install git+https://github.com/TeamPyOgg/PyOgg.git. That way you install PyOgg directly from the master branch.

Cheers --Zuzu_Typ--

LifeMM commented 3 years ago

@Zuzu-Typ Thank you very much,it's OK.Please forgive me ..a beginner.