Traceback (most recent call last): File "setup.py", line 22, in <module> execfile(join(CURDIR,...

在尝试使用pip3和`python3 setup.py install`命令在Ubuntu上安装robotframework-SSHLibrary时,遇到一个错误:`NameError: name 'execfile' is not defined`。此问题表明SSHLibrary目前不支持Python3。讨论中提到的Issue (#2233) 描述了相同的问题,并且有用户提供了相关的评论和反馈。
摘要由CSDN通过智能技术生成

在python3环境下安装robotframework-SSHLibraray报错:

Traceback (most recent call last):
File "setup.py", line 22, in <module>
execfile(join(CURDIR, 'src', 'SSHLibrary', 'version.py'))
NameError: name 'execfile' is not defined

在网上查了,SSHLibrary目前还不支持python3

Pip3 (python3) and 'python3 setup.py install' of SSHLibrary on ubuntu failed with 'execfile' issue       

When trying to install 'SSHLibrary' through Pip3 and source file 'python3 setup.py install' of SSHLibrary on ubuntu failing with the following:

user@<host>:~$ pip3 install robotframework-sshlibrary
Collecting robotframework-sshlibrary
  Using cached robotframework-sshlibrary-2.1.3.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-cj3iosaj/robotframework-sshlibrary/setup.py", line 22, in <module>
        execfile(join(CURDIR, 'src', 'SSHLibrary', 'version.py'))
    NameError: name 'execfile' is not defined
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-cj3iosaj/robotframework-sshlibrary/
 
 

andreeakovacs commented 9 days ago

The installation doesn't work, because the Python 3 compatibility for SSHLibrary isn't supported yet.
This issue should be closed.

 
原网址问答:https://github.com/robotframework/SSHLibrary/issues/194
 

         Importing test

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值