Coder Social home page Coder Social logo

Comments (6)

Zuzu-Typ avatar Zuzu-Typ commented on September 23, 2024 2

Getting those libraries without building them yourself is a little difficult.
However, you should be able to simply install the latest version of PyOGG and it should work.
pip install pyogg --upgrade

from pyogg.

Zuzu-Typ avatar Zuzu-Typ commented on September 23, 2024

I can't quite make out the cause of this issue on first sight.
This error should only occur if no valid opus.dll library could be found.
However, the library is right there, as you pointed out.

I'm not familiar with anaconda unfortunately, but I can't imagine that being the issue.

On my Python 3.7 32bit installation it does detect the DLL flawlessly.

I can only imagine there being a different version of opus on your computer, although I don't see why there should be and on Windows pyogg should be able to find a working candidate by itself, so I really don't know what could be causing this issue.

You could try opening a command prompt in your pyogg installation directory, run python and try the following code:

import ctypes
ctypes.CDLL("opus.dll")

If this succeeds, it means that the dll can be loaded correctly and the error lies elsewhere.
If an error occurs however, the opus DLL is broken somehow.

from pyogg.

LeiYangGH avatar LeiYangGH commented on September 23, 2024

Hi Zuzu-Typ, it's very kind of you to reply so soon and detailed!
I tried above code without any errors.
image

I'm not familiar with python module debugging, but some flags:
image

Could you think of more ways of investigating? In them mean time I'll try other os/python versions.

from pyogg.

Zuzu-Typ avatar Zuzu-Typ commented on September 23, 2024

Thank you very much for the information you provided.
It wasn't opus itself, but rather opusfile causing the issue.
I don't know why, but I must have accidentally distributed some corrupt dlls with pyogg.

I'll push an update as soon as possible.

Sorry for your inconvenience

from pyogg.

LeiYangGH avatar LeiYangGH commented on September 23, 2024

Hi Zuzu-Typ, really appreciate your quick response!
I downloaded opusfile-v0.9-win32 from http://opus-codec.org/downloads/, and can see part of the dlls in your package, but others such as libFLAC.dll and opusfile.dll are not there. where did you get those files?
image

from pyogg.

LeiYangGH avatar LeiYangGH commented on September 23, 2024

yes. it worked now. thank you!

from pyogg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.