Comments (6)
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.
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.
Hi Zuzu-Typ, it's very kind of you to reply so soon and detailed!
I tried above code without any errors.
I'm not familiar with python module debugging, but some flags:
Could you think of more ways of investigating? In them mean time I'll try other os/python versions.
from pyogg.
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.
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?
from pyogg.
yes. it worked now. thank you!
from pyogg.
Related Issues (20)
- Release latest master
- opus_file.bytes_per_sample missing
- PyOggError: File 'test.ogg' couldn't be opened or doesn't exist. Error code: -132 HOT 2
- issue loading libs when using 32bit python on 64bit windows
- How to parse ogg-stream from websocket? HOT 2
- ImportError: cannot import name 'OpusDecoder' from 'pyogg' HOT 1
- AttributeError: module 'pyogg.opus' has no attribute 'opus_int32' HOT 6
- On Windows, non-ascii path breaks VorbisFile HOT 1
- Docs: include simple oneliner for apt-get install of common dependencies on Linux HOT 2
- as_array() method for OpusFile is not available HOT 6
- Playing a file with PyAudio HOT 8
- About how to generate .ogg/opus file when i have data(binary file) by opus_encode(...) function C language API
- How install the pyogg dependency in Ubuntu 18.04 HOT 1
- OpusFile and OpusFileStream: Open Opus files from memory. HOT 4
- Memory leaks in PyOgg?
- OggOpusWriter: Incorrect duration when sample rate is not 48kHz.
- How to install pyogg 0.7 in termux? HOT 1
- Why `bytes_per_sample` for opus file is restricted to 16 bits?
- ERROR: Could not find a version that satisfies the requirement pyogg>=0.6.14a1 HOT 2
- Problems of loading opus library
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyogg.