Giter VIP home page Giter VIP logo

Comments (5)

pihuyadav avatar pihuyadav commented on July 1, 2024 5

do pip install pysoundfile

from python-soundfile.

bastibe avatar bastibe commented on July 1, 2024

Just rename your dll to sndfile.dll, and it should work. See here for how dlopen searches for libraries.

The rationale is that PySoundFile first searches for any locally-installed sndfile (the first try). Only when this is not found, it searches for the PySoundFile-provided libsndfileXX.dll in _soundfile_data.

from python-soundfile.

Aens avatar Aens commented on July 1, 2024

This will still fail at new versions, pyinstaller will fail to place the .dll correctly or even find it. Although your workaround fix the issue for now, it would be great if pyinstaller gets it automatically.

from python-soundfile.

tritipsteak avatar tritipsteak commented on July 1, 2024

Hi there,

I don't know if I'm doing this wrong, but I have renamed libsndfile32bit.dll to sndfile.dll. All this is placed in the dist folder along with the exe, but it's still giving me the error. Am I supposed to place that file in a particular spot of python?

from python-soundfile.

mgeier avatar mgeier commented on July 1, 2024

@tritipsteak IIRC, sndfile.dll is only found by ctypes/CFFI if you put it somewhere in the Windows PATH.

Did you try putting it in _soundfile_data\libsndfile32bit.dll (relative to the dist folder)?

There is this hack (see #192) which might work for this:

https://github.com/bastibe/SoundFile/blob/43c457e73984f15ca5c5ad47390dcc8e913da3c1/soundfile.py#L153-L163

from python-soundfile.

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.