Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Сборка Docker-образа завершается с ошибкой #21

Open
GrigoriyAzatyan opened this issue Sep 25, 2022 · 0 comments

Comments

@GrigoriyAzatyan
Copy link

Здравствуйте! Сборка завершается ошибкой при выполнении этой команды:
RUN pip3 install PuzzleLib==1.0.3a0 --install-option="--backend=cuda"

Ниже приведен вывод отработки команды:

Step 13/18 : RUN pip3 install PuzzleLib==1.0.3a0 --install-option="--backend=cuda"
---> Running in 5e1482cd0410
Collecting PuzzleLib==1.0.3a0
Downloading PuzzleLib-1.0.3a0.tar.gz (490 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Skipping wheel build for PuzzleLib, due to binaries being disabled for it.
Installing collected packages: PuzzleLib
Running setup.py install for PuzzleLib: started
Running setup.py install for PuzzleLib: finished with status 'error'
/usr/local/lib/python3.6/dist-packages/pip/_internal/commands/install.py:245: UserWarning: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option.
cmdoptions.check_install_build_global(options)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zgk84o7y/puzzlelib_5992db620c434594a8bcab50a1221bfc/setup.py'"'"'; file='"'"'/tmp/pip-install-zgk84o7y/puzzlelib_5992db620c434594a8bcab50a1221bfc/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-woik81yx/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6/PuzzleLib --backend=cuda
cwd: /tmp/pip-install-zgk84o7y/puzzlelib_5992db620c434594a8bcab50a1221bfc/
Complete output (156 lines):
/usr/lib/python3/dist-packages/setuptools/dist.py:397: UserWarning: Normalizing '1.0.3a' to '1.0.3a0'
normalized_version,
running install
backends chosen: ['cuda']
converters chosen: []

Checking if all dependencies for Cuda are satisfied ...
Checking CUDA installation ...
CUDA V10.2.89 and SDK libraries are found!
Continuing ...

Checking NVCC compiler ...
nvcc compiled test kernel with output:
Continuing ...

Checking compiled CUDA kernel ...
Test kernel answered: finished successfully!
Continuing ...

All done, exiting ...

Building Cuda driver ...
Compiler invocation: gcc -Wall -Wextra -fPIC -std=gnu99 -O3 -march=native -mtune=native -ffast-math -DNDEBUG -I/usr/include/python3.6m -I/usr/local/lib/python3.6/dist-packages/numpy/core/include -I/usr/local/cuda/include --shared -L/usr/lib -L/usr/local/cuda/lib64 -o ../Driver.cpython-36m-x86_64-linux-gnu.so -flto ././Core/AllocVector.gen.c ././Core/Allocator.c ././Core/Array.c ././Core/Buffer.c ././Core/Device.c ././Core/Driver.c ././Core/Module.c ././Core/Stream.c ././TraceMalloc/AllocTree.gen.c ././TraceMalloc/TraceMalloc.gen.c ././Libs/CuRand.c ././Libs/CuBlas.c ././Libs/CuDnn.c ././Libs/CuDnnPool.c ././Libs/CuDnnNorm.c ././Libs/CuDnnMemory.c ././Libs/CuDnnRnn.c ././Libs/CuDnnSpatialTf.c -lpython3.6m -lcuda -lcudart -lnvrtc -lcurand -lcublas -lcudnn
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-zgk84o7y/puzzlelib_5992db620c434594a8bcab50a1221bfc/setup.py", line 470, in <module>
    main()
  File "/tmp/pip-install-zgk84o7y/puzzlelib_5992db620c434594a8bcab50a1221bfc/setup.py", line 465, in main
    keywords=["puzzlelib", "deep learning", "neural nets"]
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/tmp/pip-install-zgk84o7y/puzzlelib_5992db620c434594a8bcab50a1221bfc/setup.py", line 119, in run
    self.distribution.package_data = self.installPackages(self.projectPath, self.cachePath, handlers, options)
  File "/tmp/pip-install-zgk84o7y/puzzlelib_5992db620c434594a8bcab50a1221bfc/setup.py", line 148, in installPackages
    packageData.update(handler(pkgSrc, pkgDst, options))
  File "/tmp/pip-install-zgk84o7y/puzzlelib_5992db620c434594a8bcab50a1221bfc/setup.py", line 195, in installGpuPackages
    data.update(self.installGpuPackage("Cuda", checkCudaInstall, buildDriver, cudaDst))
  File "/tmp/pip-install-zgk84o7y/puzzlelib_5992db620c434594a8bcab50a1221bfc/setup.py", line 223, in installGpuPackage
    driver = os.path.abspath(buildDriver())
  File "/tmp/pip-install-zgk84o7y/puzzlelib_5992db620c434594a8bcab50a1221bfc/PuzzleLib/Cuda/Source/Build.py", line 126, in main
  File "/tmp/pip-install-zgk84o7y/puzzlelib_5992db620c434594a8bcab50a1221bfc/PuzzleLib/Cuda/Source/Build.py", line 18, in buildDriver
  File "/tmp/pip-install-zgk84o7y/puzzlelib_5992db620c434594a8bcab50a1221bfc/PuzzleLib/Compiler/Compilers/Compiler.py", line 138, in build
  File "/tmp/pip-install-zgk84o7y/puzzlelib_5992db620c434594a8bcab50a1221bfc/PuzzleLib/Compiler/Compilers/Compiler.py", line 181, in invoke
PuzzleLib.Compiler.Compilers.Compiler.CompilerError: Compiler invocation failed: gcc -Wall -Wextra -fPIC -std=gnu99 -O3 -march=native -mtune=native -ffast-math -DNDEBUG -I/usr/include/python3.6m -I/usr/local/lib/python3.6/dist-packages/numpy/core/include -I/usr/local/cuda/include --shared -L/usr/lib -L/usr/local/cuda/lib64 -o ../Driver.cpython-36m-x86_64-linux-gnu.so -flto ././Core/AllocVector.gen.c ././Core/Allocator.c ././Core/Array.c ././Core/Buffer.c ././Core/Device.c ././Core/Driver.c ././Core/Module.c ././Core/Stream.c ././TraceMalloc/AllocTree.gen.c ././TraceMalloc/TraceMalloc.gen.c ././Libs/CuRand.c ././Libs/CuBlas.c ././Libs/CuDnn.c ././Libs/CuDnnPool.c ././Libs/CuDnnNorm.c ././Libs/CuDnnMemory.c ././Libs/CuDnnRnn.c ././Libs/CuDnnSpatialTf.c -lpython3.6m -lcuda -lcudart -lnvrtc -lcurand -lcublas -lcudnn

In file included from ././Core/AllocVector.gen.h:7:0,
                 from ././Core/AllocVector.gen.c:2:
././Core/Common.h:37:11: fatal error: cudnn.h: No such file or directory
  #include <cudnn.h>
           ^~~~~~~~~
compilation terminated.
In file included from ././Core/Driver.h:3:0,
                 from ././Core/Allocator.c:5:
././Core/Common.h:37:11: fatal error: cudnn.h: No such file or directory
  #include <cudnn.h>
           ^~~~~~~~~
compilation terminated.
In file included from ././Core/Driver.h:3:0,
                 from ././Core/Array.c:1:
././Core/Common.h:37:11: fatal error: cudnn.h: No such file or directory
  #include <cudnn.h>
           ^~~~~~~~~
compilation terminated.
In file included from ././Core/Driver.h:3:0,
                 from ././Core/Buffer.c:1:
././Core/Common.h:37:11: fatal error: cudnn.h: No such file or directory
  #include <cudnn.h>
           ^~~~~~~~~
compilation terminated.
In file included from ././Core/Driver.h:3:0,
                 from ././Core/Device.c:1:
././Core/Common.h:37:11: fatal error: cudnn.h: No such file or directory
  #include <cudnn.h>
           ^~~~~~~~~
compilation terminated.
In file included from ././Core/Driver.h:3:0,
                 from ././Core/Driver.c:2:
././Core/Common.h:37:11: fatal error: cudnn.h: No such file or directory
  #include <cudnn.h>
           ^~~~~~~~~
compilation terminated.
In file included from ././Core/Driver.h:3:0,
                 from ././Core/Module.c:1:
././Core/Common.h:37:11: fatal error: cudnn.h: No such file or directory
  #include <cudnn.h>
           ^~~~~~~~~
compilation terminated.
In file included from ././Core/Driver.h:3:0,
                 from ././Core/Stream.c:1:
././Core/Common.h:37:11: fatal error: cudnn.h: No such file or directory
  #include <cudnn.h>
           ^~~~~~~~~
compilation terminated.
In file included from ././Libs/../Core/Driver.h:3:0,
                 from ././Libs/Libs.h:3,
                 from ././Libs/CuRand.c:1:
././Libs/../Core/Common.h:37:11: fatal error: cudnn.h: No such file or directory
  #include <cudnn.h>
           ^~~~~~~~~
compilation terminated.
In file included from ././Libs/../Core/Driver.h:3:0,
                 from ././Libs/Libs.h:3,
                 from ././Libs/CuBlas.c:1:
././Libs/../Core/Common.h:37:11: fatal error: cudnn.h: No such file or directory
  #include <cudnn.h>
           ^~~~~~~~~
compilation terminated.
In file included from ././Libs/../Core/Driver.h:3:0,
                 from ././Libs/Libs.h:3,
                 from ././Libs/CuDnn.c:1:
././Libs/../Core/Common.h:37:11: fatal error: cudnn.h: No such file or directory
  #include <cudnn.h>
           ^~~~~~~~~
compilation terminated.
In file included from ././Libs/../Core/Driver.h:3:0,
                 from ././Libs/Libs.h:3,
                 from ././Libs/CuDnnPool.c:1:
././Libs/../Core/Common.h:37:11: fatal error: cudnn.h: No such file or directory
  #include <cudnn.h>
           ^~~~~~~~~
compilation terminated.
In file included from ././Libs/../Core/Driver.h:3:0,
                 from ././Libs/Libs.h:3,
                 from ././Libs/CuDnnNorm.c:1:
././Libs/../Core/Common.h:37:11: fatal error: cudnn.h: No such file or directory
  #include <cudnn.h>
           ^~~~~~~~~
compilation terminated.
In file included from ././Libs/../Core/Driver.h:3:0,
                 from ././Libs/Libs.h:3,
                 from ././Libs/CuDnnMemory.c:1:
././Libs/../Core/Common.h:37:11: fatal error: cudnn.h: No such file or directory
  #include <cudnn.h>
           ^~~~~~~~~
compilation terminated.
In file included from ././Libs/../Core/Driver.h:3:0,
                 from ././Libs/Libs.h:3,
                 from ././Libs/CuDnnRnn.c:1:
././Libs/../Core/Common.h:37:11: fatal error: cudnn.h: No such file or directory
  #include <cudnn.h>
           ^~~~~~~~~
compilation terminated.
In file included from ././Libs/../Core/Driver.h:3:0,
                 from ././Libs/Libs.h:3,
                 from ././Libs/CuDnnSpatialTf.c:1:
././Libs/../Core/Common.h:37:11: fatal error: cudnn.h: No such file or directory
  #include <cudnn.h>
           ^~~~~~~~~
compilation terminated.

----------------------------------------

ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zgk84o7y/puzzlelib_5992db620c434594a8bcab50a1221bfc/setup.py'"'"'; file='"'"'/tmp/pip-install-zgk84o7y/puzzlelib_5992db620c434594a8bcab50a1221bfc/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-woik81yx/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6/PuzzleLib --backend=cuda Check the logs for full command output.
ERROR: Service 'sova-asr' failed to build: The command '/bin/sh -c pip3 install PuzzleLib==1.0.3a0 --install-option="--backend=cuda"' returned a non-zero code: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant