导入错误:ImapLibrary robotframework-RIDE

时间:2016-09-24 21:19:08

标签: python jython robotframework

我是机器人框架的新手。我能够使用Selenium2Library和其他库。我试图通过pip安装后导入Imaplibrary它会抛出一个错误:

[ 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 \ ext * .jar
C:\ Program Files \ Java \ jdk1.8.0_101 \ jre \ lib * .jar
路径:%JAVA_HOME%\ bin,C:\ Python27 \,C:\ Python27 \ Scripts C:\ jython2.7.0 \ bin

我不确定是什么问题。

1 个答案:

答案 0 :(得分:0)

试试这个

pip install future --upgrade

然后重试。