huggingface/deep-rl-class

[HANDS-ON BUG]unit2:FileNotFoundError: [Errno 2] No such file or directory: 'Xvfb'

jakezou opened this issue · 8 comments

Describe the bug

A clear and concise description of what the bug is.
Please share your notebook link so that we can reproduce the error

Material

  • Did you use Google Colab?

If not:

  • Your Operating system (OS)
  • Version of your OS

FileNotFoundError Traceback (most recent call last)
in <cell line: 4>()
2 from pyvirtualdisplay import Display
3
----> 4 virtual_display = Display(visible=0, size=(1400, 900))
5 virtual_display.start()

5 frames
/usr/lib/python3.10/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, gid, gids, uid, umask, start_new_session)
1861 if errno_num != 0:
1862 err_msg = os.strerror(errno_num)
-> 1863 raise child_exception_type(errno_num, err_msg, err_filename)
1864 raise child_exception_type(err_msg)
1865

FileNotFoundError: [Errno 2] No such file or directory: 'Xvfb'

Hey there 👋

Thanks for pointing this out it was a bug I thought was resolved last time #275 but I forgot to push the new notebook. It's now done.

I let you try and if it's good for you I'm closing the issue 🤗

simoninithomas-
I am still encountering exactly the same problem in colab reported by jakezou

@miklewis did you run the notebook and reopen it after for the second part? Xvfb is quite unstable sometime with colab the best solution is to reset the notebook 😩.

What's the notebook?

Hey there 👋 no problem 😄 I'm adding this to the next update to be more clear on how to install xvfb on different platform (colab, vm, computer)