2016-09-24 61 views
1

我是新來的robotframwork。我能夠與Selenium2Library和其他庫一起工作。我試圖通過PIP安裝後導入Imaplibrary它拋出一個錯誤:導入錯誤:ImapLibrary robotframework-RIDE

[ ERROR ] Error in file 'C:\Users\prathod\Documents\automation\Registration.txt': Importing test library 'ImapLibrary' failed: ImportError: No module named builtins 
Traceback (most recent call last): 
    File "ImapLibrary\__init__.py", line 30, in <module> 
    from builtins import str as ustr 
PYTHONPATH: 
    C:\jython2.7.0\Lib 
    __classpath__ 
    __pyclasspath__/ 
    C:\jython2.7.0\Lib\site-packages 
CLASSPATH: 
    C:\jython2.7.0\jython.jar 
    jars/Automaton-1.3.2-all-deps.jar 
    \Users\prathod\AppData\Local\Abcd\app\Abcd-jfx.jar 
    \Users\prathod\AppData\Local\Abcd\app\AbcdCore-jfx.jar 

我的環境是:
類路徑:C:\ PROGRAMFILES \的Java \ jdk1.8.0_101 \ JRE \ lib中\分機的* .jar
C:\ Program Files \ Java \ jdk1.8.0_101 \ jre \ lib * .jar
PATH:%JAVA_HOME%\ bin,C:\ Python27 \,C:\ Python27 \ Scripts C:\ jython2.7.0 \ bin

我不確定有什麼問題。

回答

0

試試這個

pip install future --upgrade 

然後重試。