在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 library 'SSHLibrary' failed: ImportError: No module named 'SSHLibrary' #2233

Closed
hubiao007 opened this Issue on 24 Nov 2015 · 6 comments

Comments

 
Assignees

No one assigned

 
Labels
None yet
 
Projects

None yet

 
Milestone

No milestone

3 participants
 

hubiao007 commented on 24 Nov 2015

I got this message when I run pybot with my test. Is SSHLibrary not yet supported in 3.0a1?

 
 

Owner

jussimalinen commented on 24 Nov 2015

Some more context would be good to have here. What Python version are you using? Do you have SSHLibary installed? Did the same tests work on earlier Robot Framework version on the same Python installation?

 
 

hubiao007 commented on 24 Nov 2015

Hi Jussimalinen

In my workable context, with the same test case I am running Robotframework 2.9.2 with python 2.7.

Then, I update to RBF 3.0a1 via command "pip3 install robotframework==3.0a1". With "pybot --version", it shows "Robot Framework 3.0a1 (Python 3.4.3 on linux)".

 
 

hubiao007 commented on 24 Nov 2015

About SSHLibrary: I am trying to install it also for python3 with cmd "sudo pip3 install robotframework-sshlibrary". It reports the following error

Downloading/unpacking robotframework-sshlibrary
Downloading robotframework-sshlibrary-2.1.2.tar.gz (93kB): 93kB downloaded
Running setup.py (path:/tmp/pip_build_root/robotframework-sshlibrary/setup.py) egg_info for package robotframework-sshlibrary
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip_build_root/robotframework-sshlibrary/setup.py", line 22, in
execfile(join(CURDIR, 'src', 'SSHLibrary', 'version.py'))
NameError: name 'execfile' is not defined
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 17, in

File "/tmp/pip_build_root/robotframework-sshlibrary/setup.py", line 22, in

execfile(join(CURDIR, 'src', 'SSHLibrary', 'version.py'))

NameError: name 'execfile' is not defined


Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/robotframework-sshlibrary

 

 

Owner

pekkaklarck

commented

on 25 Nov 2015

SSHLibrary doesn't yet support Python 3. Hopefully it
will soon. An issue should be submitted to its tracker about that if
there isn't one already.

Do you have problems using SSHLibrary with RF 3.0a1 on Python 2?

 

 

hubiao007

commented

on 25 Nov 2015

Hi Pekkaklarck

Thank you for your answer

In the context of RF3.0a1 and Python2, it has no problem with SSHLibrary.

 

 

Owner

pekkaklarck

commented

on 25 Nov 2015

OK. Then the issue is just that SSHLibrary doesn't
yet support Python 3. There is a plan to add the support in the somewhat
near future, though. You can submit an issue about Python 3 support to
SSHLibrary tracker if there isn't one yet.

 
 
https://github.com/robotframework/robotframework/issues/2233

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的更多相关文章

  1. win10中通过Anaconda安装tensorflow时报错Traceback (most recent call last): File “E:\Anaconda3\lib\site-packages\pip_vendor\urllib3\response.py”, line 360, in _error_catcher yield

    问题:通过默认镜像安装,下载过程中可能会报错,下载安装失败 Traceback (most recent call last): File “E:\Anaconda3\lib\site-package ...

  2. python3 安装scrapy Exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 1006, in check_if_exists解决方法

    错误代码: Exception: Traceback (most recent call last): File , in check_if_exists self.satisfied_by = pk ...

  3. phoenix客户端连接hbase数据库报错:Traceback (most recent call last): File "bin/sqlline.py", line 27, in <module> import argparse ImportError: No module named argparse

    环境描述: 操作系统版本:CentOS release 6.5 (Final) phoenix版本:phoenix-4.10.0 hbase版本:hbase-1.2.6 现象描述: 通过phoenix ...

  4. Traceback (most recent call last): File "../zubax_chibios/tools/make_boot_descriptor.py", line 251

    出现如下错误: Traceback (most recent call last): File "../zubax_chibios/tools/make_boot_descriptor.py ...

  5. Traceback (most recent call last): File "c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\extensions\microsoft\python\core\Packages\ptvsd\_vendored\pydevd\_pydevd_bundle\pyd

    某次编码,debug的时候突然突然突然给我报这个错: Traceback (most recent call last):   File "c:\program files (x86)\mi ...

  6. [err]Traceback (most recent call last): File "/usr/local/bin/pip", line 7, in <module> from pip._internal import main ImportError: No module named 'pip._internal'

    Q: Traceback (most recent call last):File "/usr/local/bin/pip", line 7, in <module>f ...

  7. 升级完pip后出错:Traceback (most recent call last): File "/usr/bin/pip", line 11, in <module> sys.exit(__main__.main())

    今天在ubuntu上升级了pip,之后执行pip命令的时候就报错了: Traceback (most recent call last):   File "/usr/bin/pip" ...

  8. python numpy版本报错: File "*\numpy\__init__.py", line 305, in <module> _win_os_check()

    具体代码如下所示: from numpy import * import operator a = random.rand(4, 4) print(a) 具体报错内容如下所示: Traceback ( ...

  9. 安装Phoenix时./sqlline.py执行报错File "./sqlline.py", line 27, in <module> import argparse ImportError: No module named argparse解决办法(图文详解)

    不多说,直接上干货! 前期博客 Apache版Phoenix的安装(图文详解) 问题现象 Traceback (most recent call last): File , in <module ...

随机推荐

  1. Thinkphp5.0 的Db操作

    Thinkphp5.0 的Db操作 连接操作: <?php namespace app\index\controller; use think\Controller; use think\Db; ...

  2. Layui颜色

    Layui颜色 视觉疲劳的形成往往是由于颜色过于丰富或过于单一形成的麻木感,而 layui 提供的颜色,清新而不乏深沉,互相柔和,不过分刺激大脑皮层的神经反应,形成越久越耐看的微妙影像.合理搭配,可与 ...

  3. 洛谷 P2237 [USACO14FEB]自动完成Auto-complete

    P2237 [USACO14FEB]自动完成Auto-complete 题目描述 Bessie the cow has a new cell phone and enjoys sending text ...

  4. JFileChooser 中文API

    javax.swing类 JFileChooser java.lang.Object java.awt.Component java.awt.Container javax.swing.JCompon ...

  5. Windows系统下查看已共享的文件夹的方法

    电脑使用时间比较长,共享过好几次文件夹,现在想取消共享,但共享文件夹的路径隐藏得太深,要怎么样才能快速找到共享文件夹的实际路径呢?” “其实现在单位常见的方法都是用网上邻居的共享文件夹,共享的文件夹也 ...

  6. x86CPU 实模式 保护模式 傻傻分不清楚? 基于Xv6-OS 分析CR0 寄存器

    基于Xv6-OS 分析CR0 寄存器 之前一直认为晕乎乎的...啥?什么时候切换real model,怎么切换,为什么要切换? ------------------------------------ ...

  7. 【Linux多线程】三个经典同步问题

    在了解了<同步与互斥的区别>之后,我们来看看几个经典的线程同步的例子.相信通过具体场景可以让我们学会分析和解决这类线程同步的问题,以便以后应用在实际的项目中. 一.生产者-消费者问题 问题 ...

  8. android:省市县三级联动(基于json和spring)

    一.请看效果图": 二.程序的代码: 1.MainActivity.java package com.loveplusplus.loader.demo.ui; import org.json ...

  9. selenium第三课(selenium八种定位页面元素方法)

    selenium webdriver进行元素定位时,通过seleniumAPI官方介绍,获取页面元素的方式一共有以下八种方式,现按照常用→不常用的顺序分别介绍一下. 官方api地址:https://s ...

  10. C#获取当前活动窗口句柄

    c# 获取当前活动窗口句柄,获取窗口大小及位置 2018年04月26日 13:48:21 漂泊_人生 阅读数:1889   需调用API函数 需在开头引入命名空间using System.Runtim ...