Unsupported SSH connection when using PyInstaller

Viewed 171

I am connecting via SSH using fs.sshfs like this,

  my_fs = fs.open_fs(u'ssh://myuser:mypassword@my.server.com:22/share/directory/')

It is working fine when I run the script using PyCharm. However, when I create my EXE using PyInstaller and I run the executable I get this error:

fs.opener.errors.UnsupportedProtocol: protocol 'ssh' is not supported

I think that the PyInstaller doesn't include fs.sshfs and I have tried also to run PyInstaller with the following options:

--nowindow --hidden-import=fs.sshfs 

The error persists.

1 Answers
Related