Python OSError: [Errno 2] No such file err
<p>I'm trying to use python webdriver to get html source in linux.</p>

<p>But I got below error:</p>

<pre><code>python daiwa.py 'http://asp.hotel-story.ne.jp/ver3d/planlist.asp?herehcod1=DWHQ0&amp;sAreacode=00151&amp;hidmode=select&amp;mode=seek&amp;hidSELECTARRYMD=2016/06/22&amp;hidSELECTadult=1'Traceback (most recent call last):
File "/var/www/daiwa/lib/otas/daiwa.py", line 9, in &lt;module&gt;
xephyr=Display(visible=1, size=(320, 240)).start()
File "/usr/local/lib/python2.7/site-packages/pyvirtualdisplay/display.py", line 33, in __init__self._obj = self.display_class(
File "/usr/local/lib/python2.7/site-packages/pyvirtualdisplay/display.py", line 51, in display_classcls.check_installed()
File "/usr/local/lib/python2.7/site-packages/pyvirtualdisplay/xephyr.py", line 30, in check_installed ubuntu_package=PACKAGE).check_installed()
File "/usr/local/lib/python2.7/site-packages/easyprocess/__init__.py", line 180, in check_installed
raise EasyProcessCheckInstalledError(self)
easyprocess.EasyProcessCheckInstalledError: cmd=['Xephyr', '-help']
OSError=[Errno 2] No such file or directory
Program install error!
</code></pre>

<p>Can someone help me?</p>

<p>version: python -> 2.7.9
This is my code.</p>

<pre><code>#-*- coding: utf-8 -*-
from pyvirtualdisplay import Display
from selenium import webdriver

xephyr=Display(visible=1, size=(320, 240)).start()

path_to_chromedriver = "/usr/local/bin/chromedriver"

templete = webdriver.Chrome("/usr/local/bin/chromedriver")
templete.get("https://asp.hotel-story.ne.jp/ver3d/planlist.asp?hcod1=DWHQ0&amp;hcod2=001&amp;hidmode=select&amp;mode=seek&amp;hidSELECTARRYMD=2016/6/25&amp;hidSELECTHAKSU=1&amp;room=1&amp;hidSELECTadult=1&amp;hidSELECTchilda=0&amp;hidSELECTchildb=0&amp;hidSELECTchildc=0&amp;hidSELECTchildd=0&amp;hidSELECTminPrice=0&amp;hidSELECTmaxPrice=9999999&amp;Dispunit=&amp;chkymd=0&amp;chkpsn=0&amp;sAreacode=00101")

templete.find_element_by_xpath("//select[@id='seekCount']/option[@value='9999']").click()

html_source = templete.page_source

if isinstance(html_source, unicode):
    html_source = html_source.encode('UTF-8')

print html_source

templete.close()
</code></pre>