Troubleshooting for installation
Introduction
If you could not find your problem in this page, please fire an issue:
Questions and answers
DLL not found
Question: When importing the module, why meeting the following error?
ImportError: DLL load failed while importing mpegCoder: The specified module could not be found.Answer: It seems that this error will only occurs when both the following conditions are satisfied:
- You are using Windows.
- You are using the maunally installed
mpegCoder, not the pip version.
This error is caused by the absent of required dependencies. It is typically caused when:
- Your python version does not match the
mpegCodermodule. - The required DLL files are neither in the same folder of
mpegCoder.pyd, nor in the path (environment variablePATH).
Fix: Download the dependencies and extract the DLLs in the same folder of
mpegCoder.pyd.
.so not found
Question: When importing the module, why meeting the following error?
ImportError: lib*****.so.**: cannot open shared object file: No such file or directoryAnswer: It seems that this error will only occurs when both the following conditions are satisfied:
- You are using Linux.
- You are using the maunally installed
mpegCoder, not the pip version.
This error is caused by the absent of required dependencies. It is typically caused when:
- Your python version does not match the
mpegCodermodule, in this case, the library name should belibpython3.*.so.**. - The required dependencies files are not in your environment variable
$LD_LIBRARY_PATH.
Fix: Download the dependencies and extract the missing
.soto a folder in$LD_LIBRARY_PATH.
numpy.core.multiarray not found
Question: When importing the module, why meeting the following error?
ImportError: numpy.core.multiarray failed to importAnswer: You may not install Numpy, or your Numpy version is not match the pre-compiled
mpegCoder. In most cases, a little bit mismatch of the Numpy would not cause this error. Maybe your Numpy version is different from the requirement too much. See Compilation list (Win) or Compilation list (Linux) to find the best Numpy version.Fix: Reinstall Numpy, or compile
mpegCoderby yourself.
GLibC not found
Question: When importing the module, why meeting the following error?
OSError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by ******/libdrm.so.2)Answer: Your GLibC version is not
>=2.29. To verify that, you could runldd --versionThis problem often occurs when you are using an older Linux OS. The supported OS list could be found here.
Fix: We recommend to compile and install GLibC
>=2.29. However, if users want a faster hotfix. Please follow the follwing instructions.If you are using
mpegCoderfrom pip. You could find a folder namedlib-fixin wherempegCoderis installed, then run the following command:ln -sf <path-of-mpegCoder>/lib-fix/libm-2.31.so /lib/x86_64-linux-gnu/libm.so.6The same file (
libm-2.31.so) could be also found in the Linux dependencies.
Incorrect dependencies
Question: I have not installed any dependencies, and I am not using the PyPI version. Why could I import
mpegCodersuccessfully?Answer: You may have installed FFMpeg before. The FFMpeg libraries are already in your environment. It is danger to work with an incorrect FFMpeg version, because the FFMpeg APIs are keeping changing. Please ensure that your
mpegCoderversion and your FFMpeg version are consistent.Fix: Install
mpegCoderfrom PyPI, or download our dependencies, or compilempegCoderby yourself.