skip to Main Content

I’m trying to install a python module, ‘pyAudioProcessing’ (https://github.com/jsingh811/pyAudioProcessing) on my Linux Mint distribution, and one of the items in requirements.txt is causing issues: python-magic-bin==0.4.14. When I run pip3 install -e pyAudioInstaller, I get an error:

ERROR: Could not find a version that satisfies the requirement python-magic-bin==0.4.14 (from pyAudioProcessing==1.1.5) (from versions: none)
ERROR: No matching distribution found for python-magic-bin==0.4.14 (from pyAudioProcessing==1.1.5)

The same error appears if I try to manually install the module using pip3 install python-magic-bin. The module installs without issues on my windows machine.

pypi.org lets me download files for it manually, however only Windows and MacOS .whl files are available. I tried simply removing the requirement from the list, but that resulted in a large number of other errors to appear, so I assume the module is legitimately required.

Thee is another module called python-magic-debian-bin that I can download. Is there a simple way to convince pyAudioInstaller to use this other module instead of the original? Like can I somehow rename python-magic-debian-bin to python-magic-bin and hope it works out?

2

Answers


  1. python-magic-bin 0.4.14 provides wheels for OSX, w32 and w64, but not for Linux. And there is no source code at PyPI.

    You need to install it from github:

    pip install git+https://github.com/julian-r/python-magic.git
    

    As for pyAudioProcessing I can see 2 ways to install it:

    1. Clone the repository and edit requirements/requirements.txt, replace python-magic-bin==0.4.14 with pip install git+https://github.com/julian-r/python-magic.git#egg=python-magic;

    2. Install requirements manually and then install pyAudioProcessing without dependencies:

      pip install --no-deps pyAudioProcessing

    or

    pip install --no-deps git+https://github.com/jsingh811/pyAudioProcessing.git
    
    Login or Signup to reply.
  2. The library has updated the requirements very recently for it to work on Linux.

    pip install -U pyAudioProcessing 
    

    Should get it all set up for you.
    Alternatively, https://github.com/jsingh811/pyAudioProcessing the readme describes other getting started methods as well.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search