Skip to content

Could not load dynamic library 'libnvinfer.so.6' #7

@kba

Description

@kba

In a fresh venv on a CPU-only machine, running make test-cli will install ocr4all-pixel-classifier[tf_cpu] as it is supposed to but the actual test fails with

2020-02-27 11:34:41.047310: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.6'; dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory
2020-02-27 11:34:41.047404: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer_plugin.so.6'; dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such file or directory
2020-02-27 11:34:41.047419: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:30] Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
2020-02-27 11:34:42.154339: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2020-02-27 11:34:42.154378: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
2020-02-27 11:34:42.154406: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (b-ocr-d): /proc/driver/nvidia/version does not exist
2020-02-27 11:34:42.154585: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2020-02-27 11:34:42.160566: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2596990000 Hz
2020-02-27 11:34:42.160761: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x4dc6220 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-02-27 11:34:42.160778: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
bash: line 1:  4962 Segmentation fault      ocrd-pc-segmentation -l DEBUG -m mets.xml -I OCR-D-IMG-BIN -O OCR-D-SEG-BLOCK
Makefile:62: recipe for target 'test-cli' failed
make: *** [test-cli] Error 139

Why does it even try to use CUDA?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions