drobota/robotframework-xvfb

ImportError: No module named fcntl

Closed this issue · 5 comments

I am not able to import the xvfb wrapper for robot framework.

The following import error is encountered:

20170207 16:31:51.980 [WARN]: Importing test library "XvfbRobot" failed

Traceback (most recent call last):
Importing test library 'XvfbRobot' failed: ImportError: No module named fcntl
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\robotide\lib\robot\utils\importer.py", line 143, in import
return import(name, fromlist=fromlist)
File "C:\Python27\lib\site-packages\XvfbRobot_init
.py", line 19, in
from xvfbwrapper import Xvfb
File "C:\Python27\lib\site-packages\xvfbwrapper.py", line 15, in
import fcntl
PYTHONPATH:
C:\Python27\lib\site-packages\wx-2.8-msw-unicode
C:\Python27\lib\site-packages\wx-2.8-msw-unicode
C:\Python27\Scripts
C:\Python27\lib\site-packages\robotframework-3.0-py2.7.egg
C:\Python27\lib\site-packages\decorator-3.3.2-py2.7.egg
C:\Python27\lib\site-packages\selenium-2.53.2-py2.7.egg
C:\Windows\system32\python27.zip
C:\Python27\DLLs
C:\Python27\lib
C:\Python27\lib\plat-win
C:\Python27\lib\lib-tk
C:\Python27
C:\Python27\lib\site-packages
C:\Python27\lib\site-packages\robotide\spec
File "C:\Python27\lib\site-packages\robotide\spec\librarymanager.py", line 81, in _fetch_keywords
return get_import_result(path, library_args)
File "C:\Python27\lib\site-packages\robotide\spec\libraryfetcher.py", line 20, in get_import_result
lib = robotapi.TestLibrary(path, args)
File "C:\Python27\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 46, in TestLibrary
return_source=True)
File "C:\Python27\lib\site-packages\robotide\lib\robot\utils\importer.py", line 67, in import_class_or_module
self._raise_import_failed(name, err)
File "C:\Python27\lib\site-packages\robotide\lib\robot\utils\importer.py", line 103, in _raise_import_failed
raise DataError('\n'.join(msg))

Same issue here...

I also faced the same.

Xvfb (short for X virtual framebuffer) is an in-memory display server for UNIX-like operating system (e.g., Linux)

The same error here

Unfortunately, it is not compatible with Windows.