Python 3.5.1无法下载Robot Framework库

时间:2016-04-03 11:21:35

标签: python robotframework selenium2library

我是Python新手,我尝试使用Robot Framework自动化测试。当我尝试通过pip下载库时,遇到了一些问题。 我正在使用Python 3.5.1Robot Framework 3.0PyCharm 2016.1(64)

命令pip install robotframework-selenium2library的输出: Collecting robotframework-selenium2library Using cached robotframework-selenium2library-1.7.4.tar.gz Complete output from command python setup.py egg_info: Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz Extracting in C:\Users\Radek\AppData\Local\Temp\tmpooendh2g Traceback (most recent call last): File "c:\users\radek\appdata\local\programs\python\python35\lib\site-packages\ez_setup.py", line 143, in use_setuptools raise ImportError ImportError     在处理上述异常期间,发生了另一个异常:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\Radek\AppData\Local\Temp\pip-build-gh4jw21a\robotframework-selenium2library\setup.py", line 8, in <module>
    use_setuptools()
  File "c:\users\radek\appdata\local\programs\python\python35\lib\site-packages\ez_setup.py", line 145, in use_setuptools
    return _do_download(version, download_base, to_dir, download_delay)
  File "c:\users\radek\appdata\local\programs\python\python35\lib\site-packages\ez_setup.py", line 125, in _do_download
    _build_egg(egg, tarball, to_dir)
  File "c:\users\radek\appdata\local\programs\python\python35\lib\site-packages\ez_setup.py", line 99, in _build_egg
    _extractall(tar)
  File "c:\users\radek\appdata\local\programs\python\python35\lib\site-packages\ez_setup.py", line 467, in _extractall
    self.chown(tarinfo, dirpath)
TypeError: chown() missing 1 required positional argument: 'numeric_owner'

----------------------------------------

命令&#34; python setup.py egg_info&#34; C:\ Users \ Radek \ AppData \ Local \ Temp \ pip-build-gh4jw21a \ robotframework-selenium2library \

中的错误代码1失败

Setuptools是最新的,ez_setup也是最新的

C:\Users\Radek>pip install --upgrade setuptools Requirement already up-to-date: setuptools in c:\users\radek\appdata\local\programs\python\python35\lib\site-packages C:\Users\Radek>pip install ez_setup Requirement already satisfied (use --upgrade to upgrade): ez-setup in c:\users\radek\appdata\local\programs\python\python35\lib\site-packages

1 个答案:

答案 0 :(得分:2)

Selenium2Library(尚未)与Python 3.x兼容。

我们有一个Pull Request(github.com/robotframework/Selenium2Library/pull/564)让Selenium2Library与所有Python版本兼容,但它不在官方发行版中,并且已经过Python 2.6,2.7和3.4的测试

我想安装你可以试试github.com/HelioGuilherme66/robotframework-selenium2library/releases/tag/v1.8.0b1 例如: pip install -U --pre https://github.com/HelioGuilherme66/robotframework-selenium2library/archive/v1.8.0b1.zip