Comments (7)
This issue is due to SSHLibrary using Robot's Python 2/3 compatibility layer. RF 5.0 doesn't need it anymore itself, but we have preserved it to avoid breaking libraries and tools using it (robotframework/robotframework#4150).
The problem is that SSHLibrary imports the PY2
constant from robot.utils.platform
, but we have preserved it only in robot.utils
. It was there also earlier, all utils that are part of the public API are exposed via robot.utils
, so to fix this in a way that's compatible also with older RF versions you just need to change
from robot.utils.platform import PY2
to
from robot.utils import PY2
It would be great if you could do that soon and test how SSHLibrary in general works with RF 5. If there's something we have broken, let as know ASAP and we hopefully can still fix it before the final RF 5.0 release.
Ping @mihaiparvu.
from sshlibrary.
So far it seems the only problem was the old Python 2/3 compatibility layer. After making the fix and testing everything works as expected.
from sshlibrary.
I also tested this in my environment and didn't see any problem other than reported one here.
thanks!
from sshlibrary.
Great, thanks for testing! I checked the PR and noted that also WINDOWS
could be imported directly from robot.utils
.
from sshlibrary.
robot.utils.platform.PY2
was added back. The next RF 5.0 preview release ought to thus work with the current SSHLibrary version.
from sshlibrary.
What's the schedule for dropping Python 2.7 (and indeed EOL 3.4-3.6) in SSHLibrary?
from sshlibrary.
Please see PR #407 for an alternate compatibility fix.
from sshlibrary.
Related Issues (20)
- SSHLibrary cannot login with keypair to SuSE12.3 HOT 1
- SSH.Execute Command Giving Warning while Inputting Password ${stderr} [sudo] password for supervisor: Sorry, try again HOT 3
- Authentication failed for Login (for password less authentication) HOT 1
- How to open gui of remote server HOT 2
- Server uses totp based authentication. User has to enter an otp and a password to login to the server. Interactive keyboard is not supported by ssh library of robotframework. HOT 2
- close_all_connections() raise RuntimeError when called in a thread
- Unable to execute a Power-shell script (via batch script) when we use "Execute Command" of SSHLibrary from host machine.
- Set Client Configuration timeout seems ignored by prompt:REGEXP usage
- Login With Public Key timeouts when opening more that 3 different connections HOT 3
- Question: Does SSHLibrary do support TTY? HOT 1
- Read until very slow comparing to Paramiko HOT 2
- Blowfish has been deprecated
- Write takes argument from the last Write keyword executed HOT 1
- SSHLibrary import error in
- GetFile error
- SSHException: Channel Closed on Execute Command
- 'Execute command' keyword's 'output_during_execution' returns encoded "byte string".
- How to set SSH connection parameters of paramiko HOT 1
- Possible race condition when closing tunnel created using `Create Local Ssh Tunnel` HOT 2
- Get Pre Login Banner always failing with FAIL : AttributeError: 'NoneType' object has no attribute 'decode'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sshlibrary.