[英]Same dockerfile built on two different machines. One builds correctly and runs, the other gets an error installing a python package using pip
I'm having trouble building a docker file on my machines, but it build correctly on another machine.我在我的机器上构建 docker 文件时遇到问题,但它在另一台机器上正确构建。
Here's the DockerFile:这是 DockerFile:
FROM tensorflow/tensorflow:2.3.0-gpu-jupyter从张量流/张量流:2.3.0-gpu-jupyter
RUN apt-get update && \
apt-get install -y ffmpeg && \
pip install pyroomacoustics
On one machine it builds correctly with no errors but on my computer I get an error during a pip install of pyroomacoustics.在一台机器上它正确构建没有错误,但在我的计算机上我在pyroomacoustics的pip安装过程中出现错误。 I also tried this on my macbook and it failed with the same error.Two other people ran it for me on their machines and it worked for them fine.我也在我的 macbook 上尝试过这个,但它失败了,出现了同样的错误。另外两个人在他们的机器上为我运行了它,它对他们很好。 Im confused why this would occur.我很困惑为什么会发生这种情况。
Here's the error:这是错误:
from pyroomacoustics) (1.18.5)
Building wheels for collected packages: pyroomacoustics
Building wheel for pyroomacoustics (PEP 517): started
Building wheel for pyroomacoustics (PEP 517): still running...
Building wheel for pyroomacoustics (PEP 517): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmprd5bmv1v
cwd: /tmp/pip-install-m7cvkov3/pyroomacoustics
Complete output (119 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/pyroomacoustics
copying pyroomacoustics/recognition.py -> build/lib.linux-x86_64-3.6/pyroomacoustics
copying pyroomacoustics/utilities.py -> build/lib.linux-x86_64-3.6/pyroomacoustics
copying pyroomacoustics/windows.py -> build/lib.linux-x86_64-3.6/pyroomacoustics
copying pyroomacoustics/metrics.py -> build/lib.linux-x86_64-3.6/pyroomacoustics
copying pyroomacoustics/version.py -> build/lib.linux-x86_64-3.6/pyroomacoustics
copying pyroomacoustics/__init__.py -> build/lib.linux-x86_64-3.6/pyroomacoustics
copying pyroomacoustics/soundsource.py -> build/lib.linux-x86_64-3.6/pyroomacoustics
copying pyroomacoustics/beamforming.py -> build/lib.linux-x86_64-3.6/pyroomacoustics
copying pyroomacoustics/multirate.py -> build/lib.linux-x86_64-3.6/pyroomacoustics
copying pyroomacoustics/room.py -> build/lib.linux-x86_64-3.6/pyroomacoustics
copying pyroomacoustics/parameters.py -> build/lib.linux-x86_64-3.6/pyroomacoustics
copying pyroomacoustics/sync.py -> build/lib.linux-x86_64-3.6/pyroomacoustics
copying pyroomacoustics/acoustics.py -> build/lib.linux-x86_64-3.6/pyroomacoustics
creating build/lib.linux-x86_64-3.6/pyroomacoustics/doa
copying pyroomacoustics/doa/grid.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/doa
copying pyroomacoustics/doa/frida.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/doa
copying pyroomacoustics/doa/doa.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/doa
copying pyroomacoustics/doa/waves.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/doa
copying pyroomacoustics/doa/srp.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/doa
copying pyroomacoustics/doa/utils.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/doa
copying pyroomacoustics/doa/__init__.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/doa
copying pyroomacoustics/doa/tops.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/doa
copying pyroomacoustics/doa/detect_peaks.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/doa
copying pyroomacoustics/doa/music.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/doa
copying pyroomacoustics/doa/tools_fri_doa_plane.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/doa
copying pyroomacoustics/doa/plotters.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/doa
copying pyroomacoustics/doa/cssm.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/doa
creating build/lib.linux-x86_64-3.6/pyroomacoustics/adaptive
copying pyroomacoustics/adaptive/util.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/adaptive
copying pyroomacoustics/adaptive/rls.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/adaptive
copying pyroomacoustics/adaptive/adaptive_filter.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/adaptive
copying pyroomacoustics/adaptive/__init__.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/adaptive
copying pyroomacoustics/adaptive/subband_lms.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/adaptive
copying pyroomacoustics/adaptive/data_structures.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/adaptive
copying pyroomacoustics/adaptive/lms.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/adaptive
creating build/lib.linux-x86_64-3.6/pyroomacoustics/transform
copying pyroomacoustics/transform/__init__.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/transform
copying pyroomacoustics/transform/stft.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/transform
copying pyroomacoustics/transform/dft.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/transform
creating build/lib.linux-x86_64-3.6/pyroomacoustics/experimental
copying pyroomacoustics/experimental/delay_calibration.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/experimental
copying pyroomacoustics/experimental/__init__.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/experimental
copying pyroomacoustics/experimental/physics.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/experimental
copying pyroomacoustics/experimental/deconvolution.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/experimental
copying pyroomacoustics/experimental/measure_ir.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/experimental
copying pyroomacoustics/experimental/localization.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/experimental
copying pyroomacoustics/experimental/point_cloud.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/experimental
copying pyroomacoustics/experimental/rt60.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/experimental
copying pyroomacoustics/experimental/signals.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/experimental
creating build/lib.linux-x86_64-3.6/pyroomacoustics/datasets
copying pyroomacoustics/datasets/utils.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/datasets
copying pyroomacoustics/datasets/cmu_arctic.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/datasets
copying pyroomacoustics/datasets/__init__.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/datasets
copying pyroomacoustics/datasets/timit.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/datasets
copying pyroomacoustics/datasets/base.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/datasets
copying pyroomacoustics/datasets/google_speech_commands.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/datasets
creating build/lib.linux-x86_64-3.6/pyroomacoustics/bss
copying pyroomacoustics/bss/ilrma.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/bss
copying pyroomacoustics/bss/auxiva.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/bss
copying pyroomacoustics/bss/__init__.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/bss
copying pyroomacoustics/bss/trinicon.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/bss
copying pyroomacoustics/bss/fastmnmf.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/bss
copying pyroomacoustics/bss/sparseauxiva.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/bss
copying pyroomacoustics/bss/common.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/bss
creating build/lib.linux-x86_64-3.6/pyroomacoustics/denoise
copying pyroomacoustics/denoise/__init__.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/denoise
copying pyroomacoustics/denoise/spectral_subtraction.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/denoise
copying pyroomacoustics/denoise/subspace.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/denoise
copying pyroomacoustics/denoise/iterative_wiener.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/denoise
creating build/lib.linux-x86_64-3.6/pyroomacoustics/phase
copying pyroomacoustics/phase/__init__.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/phase
copying pyroomacoustics/phase/gl.py -> build/lib.linux-x86_64-3.6/pyroomacoustics/phase
copying pyroomacoustics/build_rir.pyx -> build/lib.linux-x86_64-3.6/pyroomacoustics
creating build/lib.linux-x86_64-3.6/pyroomacoustics/data
copying pyroomacoustics/data/materials.json -> build/lib.linux-x86_64-3.6/pyroomacoustics/data
running build_ext
creating tmp
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c /tmp/tmpob74w7b2.cpp -o tmp/tmpob74w7b2.o -std=c++14
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c /tmp/tmphu4obqnd.cpp -o tmp/tmphu4obqnd.o -fvisibility=hidden
cythoning pyroomacoustics/build_rir.pyx to pyroomacoustics/build_rir.c
building 'pyroomacoustics.libroom' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/pyroomacoustics
creating build/temp.linux-x86_64-3.6/pyroomacoustics/libroom_src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I. -Ipyroomacoustics/libroom_src -I/tmp/pip-build-env-dghh1s3w/overlay/lib/python3.6/site-packages/pybind11/include -I/tmp/pip-build-env-dghh1s3w/overlay/lib/python3.6/site-packages/pybind11/include -Ipyroomacoustics/libroom_src/ext/eigen -I/usr/include/python3.6m -c pyroomacoustics/libroom_src/libroom.cpp -o build/temp.linux-x86_64-3.6/pyroomacoustics/libroom_src/libroom.o -DEIGEN_MPL2_ONLY -Wall -O3 -DEIGEN_NO_DEBUG -DVERSION_INFO="0.4.1" -std=c++14 -fvisibility=hidden
In file included from pyroomacoustics/libroom_src/ext/eigen/Eigen/Core:450:0,
from /tmp/pip-build-env-dghh1s3w/overlay/lib/python3.6/site-packages/pybind11/include/pybind11/eigen.h:36,
from pyroomacoustics/libroom_src/libroom.cpp:30:
pyroomacoustics/libroom_src/ext/eigen/Eigen/src/Core/DenseStorage.h: In member function ‘std::tuple<Eigen::Matrix<float, D, 1, (AutoAlign | (((((int)D) == 1) && (1 != 1)) ? RowMajor : (((1 == 1) && (((int)D) != 1)) ? ColMajor : ColMajor))), D, 1>, int, float> Room<D>::next_wall_hit(Vectorf<D>&, Vectorf<D>&, bool) [with long unsigned int D = 2]’:
pyroomacoustics/libroom_src/ext/eigen/Eigen/src/Core/DenseStorage.h:194:66: warning: ‘result’ may be used uninitialized in this function [-Wmaybe-uninitialized]
DenseStorage(const DenseStorage& other) : m_data(other.m_data) {
^
pyroomacoustics/libroom_src/ext/eigen/Eigen/src/Core/DenseStorage.h:194:66: warning: ‘*((void*)& result +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
pyroomacoustics/libroom_src/ext/eigen/Eigen/src/Core/DenseStorage.h: In member function ‘std::tuple<Eigen::Matrix<float, D, 1, (AutoAlign | (((((int)D) == 1) && (1 != 1)) ? RowMajor : (((1 == 1) && (((int)D) != 1)) ? ColMajor : ColMajor))), D, 1>, int, float> Room<D>::next_wall_hit(Vectorf<D>&, Vectorf<D>&, bool) [with long unsigned int D = 3]’:
pyroomacoustics/libroom_src/ext/eigen/Eigen/src/Core/DenseStorage.h:194:66: warning: ‘result’ may be used uninitialized in this function [-Wmaybe-uninitialized]
DenseStorage(const DenseStorage& other) : m_data(other.m_data) {
^
pyroomacoustics/libroom_src/ext/eigen/Eigen/src/Core/DenseStorage.h:194:66: warning: ‘*((void*)& result +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
pyroomacoustics/libroom_src/ext/eigen/Eigen/src/Core/DenseStorage.h:194:66: warning: ‘*((void*)& result +8)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
In file included from pyroomacoustics/libroom_src/room.hpp:254:0,
from pyroomacoustics/libroom_src/libroom.cpp:38:
pyroomacoustics/libroom_src/room.cpp: In member function ‘bool Room<D>::is_visible_dfs(Vectorf<D>&, ImageSource<D>&) [with long unsigned int D = 2]’:
pyroomacoustics/libroom_src/room.cpp:374:18: warning: ‘*((void*)& intersection +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Vectorf<D> intersection;
^~~~~~~~~~~~
pyroomacoustics/libroom_src/room.cpp:374:18: warning: ‘intersection’ may be used uninitialized in this function [-Wmaybe-uninitialized]
x86_64-linux-gnu-gcc: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
/tmp/pip-build-env-dghh1s3w/overlay/lib/python3.6/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/pip-install-m7cvkov3/pyroomacoustics/pyroomacoustics/build_rir.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
ERROR: Failed building wheel for pyroomacoustics
Failed to build pyroomacoustics
ERROR: Could not build wheels for pyroomacoustics which use PEP 517 and cannot be installed directly
Does anyone know the reason why this would occur?有谁知道为什么会发生这种情况? Since they're being built with the same Dockerfile, I would assume that if it works on one machine it would work on every other machine.由于它们是使用相同的 Dockerfile 构建的,因此我假设如果它可以在一台机器上运行,那么它也可以在其他所有机器上运行。
I've had this happen before, when an intermediary image was already downloaded on one machine with an older version.我以前遇到过这种情况,当时已经在一台旧版本的机器上下载了一个中间图像。 You can try removing all docker images and rebuilding cleanly again.您可以尝试删除所有 docker 映像并重新干净地重建。 Try docker system prune
尝试docker system prune
As stated in the above comment by Anthony Sottile, it was a memory issue.正如 Anthony Sottile 在上述评论中所述,这是一个内存问题。 I increased the memory limit in the docker settings and it worked.我在 docker 设置中增加了内存限制并且它起作用了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.