| 20120702 16:30:54.597 | ERROR | Error
in file 'C:\Robot Scripts\first_test.txt' in table 'Settings':
Importing test library 'Selenium2Library' failed: ImportError: No module
named decorator
Traceback (most recent call last):
File "C:\Robot\Python\lib\site-packages\Selenium2Library\__init__.py",
line 2, in <module>
from keywords import *
File
"C:\Robot\Python\lib\site-packages\Selenium2Library\keywords\__init__.py",
line 1, in <module>
from _logging import _LoggingKeywords
File
"C:\Robot\Python\lib\site-packages\Selenium2Library\keywords\_logging.py",
line 5, in <module>
from keywordgroup import KeywordGroup
File
"C:\Robot\Python\lib\site-packages\Selenium2Library\keywords\keywordgroup.py",
line 4, in <module>
from decorator import decorator
PYTHONPATH:
C:\Robot\Python\lib\site-packages\robot\libraries
C:\Robot\Python\lib\site-packages
C:\Robot\Python\python27.zip
C:\Robot\Python\DLLs
C:\Robot\Python\lib
C:\Robot\Python\lib\plat-win
C:\Robot\Python\lib\lib-tk
C:\Robot\Python
.
C:\Robot Scripts Please help. Thanks |
Ugh
Are you trying to run Selenium2Library with jython? If you are, it does not work out of the box. There are some experiments with beta version of the jython, but I do not personally know how that works out. If you want to use Selenium2Library, you need to run as pure python.
-Tatu
i have installe Selenium2Library with pip, but i still do not succeed to start up :
after the problem of decorator, i have the following issue:
[java] .... Importing test library 'Selenium2Library' failed: TypeError: Error when calling the metaclass bases
[java] 'module' object is not callable
[java] Traceback (most recent call last):
[java] File "__pyclasspath__/Selenium2Library/__init__.py", line 2, in <module>
[java] File "__pyclasspath__/Selenium2Library/keywords/__init__.py", line 2, in <module>
[java] File "__pyclasspath__/Selenium2Library/keywords/_runonfailure.py", line 6, in <module>
[java] File "__pyclasspath__/Selenium2Library/keywords/keywordgroup.py", line 24, in __new__
since i'm starting robotframework from within an ant java task, i need to add everything myself in the classpath, so the solution for the decorator problem was, to add the decorator directory in my eclipse project, and add that location in the classpath of my java task. But it did not solve the problem of the "object is not callable" (which is also pointing to the decorator object)
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To post to this group, send email to robotframe...@googlegroups.com.
To unsubscribe from this group, send email to robotframework-u...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group, send email to robotframework-users+unsub...@googlegroups.com.
Ugh
Are you trying to install the Selenium2Library by using Python 3? If you are, then that is not yet supported officially. Python 2.6 and 2.7 are supported officially and there is a fork from the repository which supports Python 3.
-Tatu
Send from my mobile
To unsubscribe from this group, send email to robotframework-users+unsubscrib...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.