lc0_v5.ipynb Google Colab

208 views
Skip to first unread message

Fahim Saharaiar

unread,
Oct 16, 2018, 3:27:44 PM10/16/18
to LCZero
I tried running the new notebook (lc0_v5.ipynb) for Google colab.
And this is what I got right after the first cell:

import subprocess
if subprocess.run(["nvidia-smi", "-L"]).returncode != 0:
  assert False, "No GPU available!"
--------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) <ipython-input-1-df9d86a745d6> in <module>() 1 import subprocess ----> 2 if subprocess.run(["nvidia-smi", "-L"]).returncode != 0: 3 assert False, "No GPU available!" /usr/lib/python3.6/subprocess.py in run(input, timeout, check, *popenargs, **kwargs) 401 kwargs['stdin'] = PIPE 402 --> 403 with Popen(*popenargs, **kwargs) as process: 404 try: 405 stdout, stderr = process.communicate(input, timeout=timeout) /usr/lib/python3.6/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors) 707 c2pread, c2pwrite, 708 errread, errwrite, --> 709 restore_signals, start_new_session) 710 except: 711 # Cleanup if the child failed starting. /usr/lib/python3.6/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session) 1342 if errno_num == errno.ENOENT: 1343 err_msg += ': ' + repr(err_filename) -> 1344 raise child_exception_type(errno_num, err_msg, err_filename) 1345 raise child_exception_type(err_msg) 1346 FileNotFoundError: [Errno 2] No such file or directory: 'nvidia-smi': 'nvidia-smi'

David Rodríguez Sánchez

unread,
Oct 16, 2018, 4:09:15 PM10/16/18
to LCZero
This is an expected error message.
It only means google colab does not currently have any GPU device available for you.
You can try a bit later, but it's becoming quite usual to get this problems since a lot of people are using it.
Reply all
Reply to author
Forward
0 new messages