Re: running headless browser tests (Xvfb and Python)

883 views
Skip to first unread message

lache...@gmail.com

unread,
Nov 20, 2012, 10:29:49 AM11/20/12
to seleniu...@googlegroups.com
Hi Corey, I did pip install xvfbwrapper , and I get the following:

Downloading/unpacking xvfbwrapper
  Running setup.py egg_info for package xvfbwrapper
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/Users/xxxxx.xxxxxxxxx/build/xvfbwrapper/setup.py", line 12, in <module>
        with open('README.rst') as f:
    IOError: [Errno 2] No such file or directory: 'README.rst'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/Users/xxxxx.xxxxxxxxx/build/xvfbwrapper/setup.py", line 12, in <module>

    with open('README.rst') as f:

IOError: [Errno 2] No such file or directory: 'README.rst'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /Users/xxxxx.xxxxxxxx/build/xvfbwrapper
Storing complete log in /Users/xxxxx.xxxxxxxxx/Library/Logs/pip.log

OS : Mac OSX 10.7.5
Python : 2.7.1
PIP : pip 1.1 from /Library/Python/2.7/site-packages/pip-1.1-py2.7.egg (python 2.7)




On Tuesday, November 20, 2012 7:15:49 AM UTC-7, Corey Goldberg wrote:
I recently published a module to PyPI that is useful for integrating Xvfb with a Python test suite:


`xvfbwrapper` allows you to run headless tests by creating a virtual X framebuffer for WebDriver to launch a browser into.  Use it to hide the browser during test execution, or to enable running Selenium on CI servers with no display attached.

example using it with Selenium WebDriver from Python unittest:

happy hacking.

-Corey




Jayakumar Chinnappan

unread,
Nov 30, 2012, 2:09:36 AM11/30/12
to seleniu...@googlegroups.com
Looks like the issue got fixed in the latest PyPI push(v0.1.1) http://pypi.python.org/pypi/xvfbwrapper . Have a try again.

https://github.com/cgoldberg/xvfbwrapper/commit/5233315b120b2360b30b3bcf8cc3f49f01105564


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/4fQIm6DmjUIJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jayakumar

lache...@gmail.com

unread,
Nov 30, 2012, 10:35:43 AM11/30/12
to seleniu...@googlegroups.com
I tried it again and get :

Downloading/unpacking xvfbwrapper
  Running setup.py egg_info for package xvfbwrapper
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/Users/shawn.mccarthy/build/xvfbwrapper/build/xvfbwrapper/setup.py", line 14, in <module>
        with open(os.path.join(this_dir, 'README.rst')) as f:
    IOError: [Errno 2] No such file or directory: '/Users/shawn.mccarthy/build/xvfbwrapper/build/xvfbwrapper/README.rst'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/Users/shawn.mccarthy/build/xvfbwrapper/build/xvfbwrapper/setup.py", line 14, in <module>

    with open(os.path.join(this_dir, 'README.rst')) as f:

IOError: [Errno 2] No such file or directory: '/Users/shawn.mccarthy/build/xvfbwrapper/build/xvfbwrapper/README.rst'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /Users/shawn.mccarthy/build/xvfbwrapper/build/xvfbwrapper
Storing complete log in /Users/shawn.mccarthy/Library/Logs/pip.log

It still seems README.rst is missing in my folder. Does it appear for other people ?

Jayakumar Chinnappan

unread,
Dec 18, 2012, 12:23:55 PM12/18/12
to seleniu...@googlegroups.com
This should be fixed now. Have try again.

https://github.com/cgoldberg/xvfbwrapper/pull/1

To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/KwH8Q_UkxMkJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jayakumar

Shawn McCarthy

unread,
Dec 18, 2012, 12:34:43 PM12/18/12
to seleniu...@googlegroups.com
Thanks ! Worked for me.
Reply all
Reply to author
Forward
0 new messages