SSHLibrary fails to import

1,185 views
Skip to first unread message

Rob Bovill

unread,
Nov 30, 2017, 12:03:22 PM11/30/17
to robotframework-users
The ongoing issues with the Robotframework-SSHLibrary on MacOS X continue.  I originally posted a bug to the GitHub repo, https://github.com/robotframework/SSHLibrary/issues/147, but no movement has occurred.

Yesterday, I upgraded my Mac to High Sierra (10.13.1), in the hopes the OS update would fix the compatibility issue.  After the OS upgrade finished, I updated Robot-Framework and SSHLibrary to their latest versions, namely

      /Library/Python/2.7/site-packages/robotframework-3.0.2-py2.7.egg-info
      /Library/Python/2.7/site-packages/robotframework_sshlibrary-2.1.3-py2.7.egg-info

The SSHLibrary installation instructions, https://code.google.com/archive/p/robotframework-sshlibrary/wikis/InstallationInstructions.wiki, include a step to verify the installation:

    > python -c "import SSHLibrary"

When I then tried this, I got the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/SSHLibrary/__init__.py", line 15, in <module>
    from .library import SSHLibrary
  File "/Library/Python/2.7/site-packages/SSHLibrary/library.py", line 22, in <module>
    from .client import SSHClient
  File "/Library/Python/2.7/site-packages/SSHLibrary/client.py", line 20, in <module>
    from pythonclient import PythonSSHClient as SSHClient
  File "/Library/Python/2.7/site-packages/SSHLibrary/pythonclient.py", line 21, in <module>
    'Importing Paramiko library failed. '
ImportError: Importing Paramiko library failed. Make sure you have Paramiko installed.


I definitely have Paramiko installed,

      /Library/Python/2.7/site-packages/paramiko
      /Library/Python/2.7/site-packages/paramiko-2.4.0.dist-info,

so I tried

      > python -c "import paramiko"

and got this error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/paramiko/__init__.py", line 22, in <module>
    from paramiko.transport import SecurityOptions, Transport
  File "/Library/Python/2.7/site-packages/paramiko/transport.py", line 57, in <module>
    from paramiko.ed25519key import Ed25519Key
  File "/Library/Python/2.7/site-packages/paramiko/ed25519key.py", line 22, in <module>
    import nacl.signing
  File "/Library/Python/2.7/site-packages/nacl/signing.py", line 19, in <module>
    import nacl.bindings
  File "/Library/Python/2.7/site-packages/nacl/bindings/__init__.py", line 17, in <module>
    from nacl.bindings.crypto_box import (
  File "/Library/Python/2.7/site-packages/nacl/bindings/crypto_box.py", line 18, in <module>
    from nacl._sodium import ffi, lib
ImportError: dlopen(/Library/Python/2.7/site-packages/nacl/_sodium.so, 2): Symbol not found: _crypto_box
  Referenced from: /Library/Python/2.7/site-packages/nacl/_sodium.so
  Expected in: flat namespace
 in /Library/Python/2.7/site-packages/nacl/_sodium.so


Suffice it to say, I would appreciate any help or insight.  Until I get this fixed, I cannot run my automated tests.

NOTE: I am cross-listing this post in the original bug mentioned above.

Jerry Schneider

unread,
Nov 30, 2017, 12:25:56 PM11/30/17
to robotframe...@googlegroups.com
After upgrading to High Sierra, did you also check for updates and update your XCode?
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

-- 
http://www.linkedin.com/in/jerryschneider
Linux registered user #475536
Ubuntu registered user #28583

Rob Bovill

unread,
Nov 30, 2017, 3:26:35 PM11/30/17
to robotframework-users
      I have no outstanding updates and my XCode is up to date, Version 9.1.


To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Rob Bovill

unread,
Dec 4, 2017, 12:11:10 PM12/4/17
to robotframework-users
      I found the issue with Paramiko was already reported to the developers.  Here's the link, https://github.com/paramiko/paramiko/issues/1020.  I don't want to downgrade paramiko, as that would force downgrades to other libraries.  Has anyone else found a solution or workaround?  The problem seems to only exist on MacOS Sierra and above.
Reply all
Reply to author
Forward
0 new messages