Selenium Pyvirtualdisplay Hangs on starting

我只是一个虾纸丫 提交于 2019-12-03 14:38:46

Okay, finally I got through it.

sudo apt-get install xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic

sudo apt-get -y install x-ttcidfont-conf cabextract ttf-mscorefonts-installer

sudo apt-get -y install x-ttcidfont-conf

sudo dpkg-reconfigure x-ttcidfont-conf

chose freetype, after that, when I did xvfb-run firefox then I started getting errors like this :

Xlib:  extension "RANDR" missing on display ":99".

(firefox:4691): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
//bin/dbus-launch terminated abnormally without any error message

(firefox:4691): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Error spawning command line `dbus-launch --autolaunch=c4970e12ff5496da09501f87000001fe --binary-syntax --close-stderr': Failed to execute child process "dbus-launch" (No such file or directory)

(firefox:4691): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
//bin/dbus-launch terminated abnormally without any error message

To resolve, do this :

apt-get install dbus-x11

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!