Simeon
Simeon

Reputation: 243

Meeting a pip requirement using an alternative module

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?

Upvotes: 5

Views: 3367

Answers (1)

phd
phd

Reputation: 94417

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

Upvotes: 7

Related Questions