Importing test library "BuiltIn" failed

1,512 views
Skip to first unread message

sweepi...@gmail.com

unread,
Aug 1, 2015, 7:47:31 AM8/1/15
to robotframework-users
when i use pip install --upgrade robotframework   update the robotframework to 2.9 ,

it import  "BuiltIn" failed, but in version 2.8 there is no problem


ride log below
20150801 19:07:41.045 [INFO]: Started RIDE 1.4 using python version 2.7.8 with wx version 2.8.12.1 in win32.
Found Robot Framework version 2.9 from C:\Python27\lib\site-packages\robot

20150801 19:07:44.742 [WARN]: Importing test library "BuiltIn" failed

Traceback (most recent call last):
Importing test library 'BuiltIn' failed: ImportError: cannot import name DotDict
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\robot\libraries\BuiltIn.py", line 28, in <module>
    from robot.utils import (asserts, DotDict, escape, format_assign_message,
PYTHONPATH:
  C:\Python27\lib\site-packages\robot\libraries
  C:\Python27\lib\site-packages\robotide\lib\robot\libraries
  C:\Python27\lib\site-packages\robotide\lib
  C:\Python27\lib\site-packages\wx-2.8-msw-unicode
  C:\Python27\lib\site-packages\wx-2.8-msw-unicode
  C:\Python27\lib\site-packages\robotframework_selenium2library-1.5.0-py2.7.egg
  C:\Python27\lib\site-packages\docutils-0.12-py2.7.egg
  C:\Python27\lib\site-packages\selenium-2.42.1-py2.7.egg
  C:\Python27\lib\site-packages\decorator-3.4.0-py2.7.egg
  C:\Python27\lib\site-packages\py_xlsx-0.4.1-py2.7.egg
  C:\Python27\lib\site-packages\setuptools-11.0-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\win32
  C:\Python27\lib\site-packages\win32\lib
  C:\Python27\lib\site-packages\Pythonwin
  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 41, in TestLibrary
    libcode = importer.import_class_or_module(name)
  File "C:\Python27\lib\site-packages\robotide\lib\robot\utils\importer.py", line 64, in import_class_or_module
    self._raise_import_failed(name, err)
  File "C:\Python27\lib\site-packages\robotide\lib\robot\utils\importer.py", line 99, in _raise_import_failed
    raise DataError('\n'.join(msg))

Ed Manlove

unread,
Aug 1, 2015, 8:02:54 AM8/1/15
to robotframe...@googlegroups.com
--

Looks like you are missing the DotDict package,

     Importing test library 'BuiltIn' failed: ImportError: cannot import name DotDict

You could solve your immediate problem with

    pip install dotdict

Looking through the traceback above it looks like RIDE might be missing a dependency in it's setup.py.

Ed

Pekka Klärck

unread,
Aug 1, 2015, 9:19:22 AM8/1/15
to Ed Manlove, robotframework-users
2015-08-01 15:02 GMT+03:00 Ed Manlove <devP...@verizon.net>:
>
> Looks like you are missing the DotDict package,
>
> Importing test library 'BuiltIn' failed: ImportError: cannot import
> name DotDict
>
> You could solve your immediate problem with
>
> pip install dotdict

That DotDict is actually part of Robot Framework. Trying to install it
separately won't work.

> Looking through the traceback above it looks like RIDE might be missing a
> dependency in it's setup.py.

My guess is that there is some problem in RIDE's Robot compatibility
either on this machine alone or in general. Janne probably can comment
more. I know he's been working with fully RF 2.9 compatible RIDE
version.

Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org

sweepi...@gmail.com

unread,
Aug 1, 2015, 11:59:53 AM8/1/15
to robotframework-users
thanks,  it's resovled 

在 2015年8月1日星期六 UTC+8下午8:02:54,Ed Manlove写道:

Ben Fariello

unread,
Aug 2, 2015, 6:59:42 AM8/2/15
to robotframework-users
What did you do to resolve it? (I don't need to know, but somebody else might have the same issue you did)

On Saturday, August 1, 2015 at 11:59:53 AM UTC-4, sweepi...@gmail.com wrote:
thanks,  it's resovled 

Lei Zheng

unread,
Aug 10, 2015, 2:19:09 AM8/10/15
to robotframework-users
I think it might be the compatibility problem of robotframework 2.9. I changed robotframework to version 2.8.7 and resolved this problem.
Try:
pip install robotframework==2.8.7


在 2015年8月1日星期六 UTC+8下午7:47:31,sweepi...@gmail.com写道:

wowberk

unread,
Aug 11, 2015, 6:33:07 AM8/11/15
to robotframework-users
I have the same problem.

Started RIDE 1.4 using python version 2.6.7 with wx version 2.8.12.1 in win32.
Found Robot Framework version 2.9

I returned to the previous version too

Thx
Reply all
Reply to author
Forward
0 new messages