python - Importing test library 'SSHLibrary' fails with the ImportError "Importing Paramiko library failed. Make sure you have Paramiko installed." -


i trying run robot framework test cases uses sshlibrary. have installed required libraries (paramiko in case). still error.

the error is:

error in file '/opt/bdd_keywords.robot': importing test library 'sshlibrary' failed: importerror: importing paramiko library failed. make sure have paramiko installed. traceback (most recent call last):   file "/usr/local/lib/python2.7/dist-packages/sshlibrary/__init__.py", line 15, in <module>     .library import sshlibrary   file "/usr/local/lib/python2.7/dist-packages/sshlibrary/library.py", line 22, in <module>     .client import sshclient   file "/usr/local/lib/python2.7/dist-packages/sshlibrary/client.py", line 20, in <module>     pythonclient import pythonsshclient sshclient   file "/usr/local/lib/python2.7/dist-packages/sshlibrary/pythonclient.py", line 20, in <module>     'importing paramiko library failed. ' 

pythonpath:

  /usr/local/lib/python2.7/dist-packages/robot/libraries    /usr/local/lib/python2.7/dist-packages    /usr/local/bin    /usr/lib/python2.7    /usr/lib/python2.7/plat-x86_64-linux-gnu    /usr/lib/python2.7/lib-tk    /usr/lib/python2.7/lib-old    /usr/lib/python2.7/lib-dynload    /usr/lib/python2.7/dist-packages   .' 

when tried install paramiko again, below output:

`requirement satisfied (use --upgrade upgrade): paramiko in /usr/local/lib/python2.7/dist-packages/paramiko-1.15.2-py2.7.egg

requirement satisfied (use --upgrade upgrade): pycrypto!=2.4,>=2.1 in /usr/local/lib/python2.7/dist-packages (from paramiko)

requirement satisfied (use --upgrade upgrade): ecdsa>=0.11 in /usr/local/lib/python2.7/dist-packages (from paramiko)`

p.s: trying run test on docker container. databaselibrary keywords work fine.

this incompatibility between python interpreter , paramiko c-extension. see http://effbot.org/pyfaq/when-importing-module-x-why-do-i-get-undefined-symbol-pyunicodeucs2.htm details

you have either

  • install different python version
  • or build , install paramiko sources, instead of using pip

Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -