pylon / streamp3

Streaming MP3 decoder for Python
Apache License 2.0
28 stars 2 forks source link

I can build for Windows, but it doesn't run #13

Open benjie-git opened 2 months ago

benjie-git commented 2 months ago

I'm able to build lame from source, and then build streamp3, but when I attempt to import streamp3:

from streamp3 import MP3Decoder

I get the error:

ImportError: DLL Load failed while importing hip: The specified module could not be found.

This happens for me using Windows 10 and Windows 11, and when running on x64, and x64 emulation inside an arm64 VM, on latest python3.11 and 3.12.

benjie-git commented 2 months ago

I finally figured out that I needed to copy the libmp3lame.dll file into pip's site-packages/lame/ directory, alongside hip.cp312-win_amd64.pyd. Now it loads and works!

This should probably be added either to the build process or the docs.