无法在 jython 中使用 robotframework 安装 AppiumLibrary
Not able to install AppiumLibrary with robotframework in jython
我正在尝试在 jython 中使用 robotframework 安装 AppiumLibrary
遵循的步骤:
jython -m pip install robotframework-appiumLibrary
错误:
Downloading/unpacking sauceclient>=0.1.0 (from robotframework-appiumLibrary)
Downloading sauceclient-0.2.1.tar.gz
Running setup.py (path:C:\Users\ABHISH~1\AppData\Local\Temp\pip_build_abhishek
singh\sauceclient\setup.py) egg_info for package sauceclient
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "C:\Users\ABHISH~1\AppData\Local\Temp\pip_build_abhisheksingh\saucecl
ient\setup.py", line 27, in <module>
from sauceclient import __version__
File "sauceclient.py", line 26, in <module>
is_py2 = sys.version_info.major is 2
AttributeError: 'tuple' object has no attribute 'major'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "C:\Users\ABHISH~1\AppData\Local\Temp\pip_build_abhisheksingh\sauceclient
\setup.py", line 27, in <module>
from sauceclient import __version__
File "sauceclient.py", line 26, in <module>
is_py2 = sys.version_info.major is 2
**AttributeError: 'tuple' object has no attribute 'major'**
有人知道如何使用这个库吗?
您需要调试 saucclient-0.2.1.tar.gz。在安装robotframework-appiumLibrary之前看看能不能安装。
要修复 "sauceclient.py" 中的代码,请编辑为:
is_py2 = sys.version_info[0] is 2
非常感谢,它对我有用这里是我遵循的步骤:
1.Download saucclient-0.2.1 并更改 sauceclient.py
is_py2 = sys.version_info[0] is 2
2。安装 saucclient-0.2.1
jython -m setup.py 安装
3.Run :
jython -m pip 安装 robotframework-appiumLibrary
我正在尝试在 jython 中使用 robotframework 安装 AppiumLibrary
遵循的步骤:
jython -m pip install robotframework-appiumLibrary
错误:
Downloading/unpacking sauceclient>=0.1.0 (from robotframework-appiumLibrary)
Downloading sauceclient-0.2.1.tar.gz
Running setup.py (path:C:\Users\ABHISH~1\AppData\Local\Temp\pip_build_abhishek
singh\sauceclient\setup.py) egg_info for package sauceclient
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "C:\Users\ABHISH~1\AppData\Local\Temp\pip_build_abhisheksingh\saucecl
ient\setup.py", line 27, in <module>
from sauceclient import __version__
File "sauceclient.py", line 26, in <module>
is_py2 = sys.version_info.major is 2
AttributeError: 'tuple' object has no attribute 'major'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "C:\Users\ABHISH~1\AppData\Local\Temp\pip_build_abhisheksingh\sauceclient
\setup.py", line 27, in <module>
from sauceclient import __version__
File "sauceclient.py", line 26, in <module>
is_py2 = sys.version_info.major is 2
**AttributeError: 'tuple' object has no attribute 'major'**
有人知道如何使用这个库吗?
您需要调试 saucclient-0.2.1.tar.gz。在安装robotframework-appiumLibrary之前看看能不能安装。 要修复 "sauceclient.py" 中的代码,请编辑为:
is_py2 = sys.version_info[0] is 2
非常感谢,它对我有用这里是我遵循的步骤:
1.Download saucclient-0.2.1 并更改 sauceclient.py
is_py2 = sys.version_info[0] is 2
2。安装 saucclient-0.2.1
jython -m setup.py 安装
3.Run : jython -m pip 安装 robotframework-appiumLibrary