Giter VIP home page Giter VIP logo

Comments (7)

pekkaklarck avatar pekkaklarck commented on September 2, 2024 2

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.

mihaiparvu avatar mihaiparvu commented on September 2, 2024 1

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.

fcolak avatar fcolak commented on September 2, 2024 1

I also tested this in my environment and didn't see any problem other than reported one here.

thanks!

from sshlibrary.

pekkaklarck avatar pekkaklarck commented on September 2, 2024

Great, thanks for testing! I checked the PR and noted that also WINDOWS could be imported directly from robot.utils.

from sshlibrary.

pekkaklarck avatar pekkaklarck commented on September 2, 2024

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.

hugovk avatar hugovk commented on September 2, 2024

What's the schedule for dropping Python 2.7 (and indeed EOL 3.4-3.6) in SSHLibrary?

from sshlibrary.

hugovk avatar hugovk commented on September 2, 2024

Please see PR #407 for an alternate compatibility fix.

from sshlibrary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.