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
mpegCoder
module. - 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 directory
Answer: 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
mpegCoder
module, 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
.so
to 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 import
Answer: 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
mpegCoder
by 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 --version
This 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
mpegCoder
from pip. You could find a folder namedlib-fix
in wherempegCoder
is installed, then run the following command:ln -sf <path-of-mpegCoder>/lib-fix/libm-2.31.so /lib/x86_64-linux-gnu/libm.so.6
The 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
mpegCoder
successfully?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
mpegCoder
version and your FFMpeg version are consistent.Fix: Install
mpegCoder
from PyPI, or download our dependencies, or compilempegCoder
by yourself.