Showing posts with label screen. Show all posts
Showing posts with label screen. Show all posts

Tuesday, November 14, 2017

Tensorflow ImportError When Using Screen

When trying to use Tensorflow in a remote setting using screen, I ran into the following error:

ImportError: libcublas.so.8.0: cannot open shared object file: No such file or directory

I forget where I found the fix, but the issue had to do with how screen preserves the environment variables of the system (It doesn't). Here's the fix:

screen env LD_LIBRARY_PATH=$LD_LIBRARY_PATH bash

This opens a new screen instance running bash with the appropriate shared libraries.