Skip to content

[Python] TensorFlow import workaround not working with tensorflow-gpu if CUDA is not installed #19184

@asfimport

Description

@asfimport

TensorFlow version: 1.7 (GPU enabled but CUDA is not installed)

tensorflow-gpu was installed via pip install


import ray
 File "/home/eric/Desktop/ray-private/python/ray/__init__.py", line 28, in <module>
 import pyarrow # noqa: F401
 File "/home/eric/Desktop/ray-private/python/ray/pyarrow_files/pyarrow/__init__.py", line 55, in <module>
 compat.import_tensorflow_extension()
 File "/home/eric/Desktop/ray-private/python/ray/pyarrow_files/pyarrow/compat.py", line 193, in import_tensorflow_extension
 ctypes.CDLL(ext)
 File "/usr/lib/python3.5/ctypes/__init__.py", line 347, in __init__
 self._handle = _dlopen(self._name, mode)
OSError: libcublas.so.9.0: cannot open shared object file: No such file or directory

Reporter: Philipp Moritz / @pcmoritz
Assignee: Philipp Moritz / @pcmoritz

PRs and other links:

Note: This issue was originally created as ARROW-2805. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions