Git Product home page Git Product logo

Comments (14)

drdanz avatar drdanz commented on August 14, 2024 4

Python 2 reached its end of life

from robot-testing-framework.

apaikan avatar apaikan commented on August 14, 2024 3

Hi guys,
allways glad to hear from you even it is an issue ;)
I am a bit out of the discussion. we are using RTF mostly woth python (2.7) and everything is fine. is the main issue with Python 3.x?

from robot-testing-framework.

traversaro avatar traversaro commented on August 14, 2024 1

Hi @apaikan ,
happy to hear from you, hope everything is ok.

Back in the days I tried to get RTF to work on Python 3, but I was unable to port all the part using Py_InitModule4 (around https://github.com/robotology/robot-testing/blob/c7c00459f721648c8f74f973a881d9078a206c50/src/plugins/python/src/PythonPluginLoader.cpp#L134) to use Python 3, that changed that APIs. https://docs.python.org/3/howto/cporting.html is probably useful, but I was unable to get it to work.

Given that Python 2 will be officially unsupported in less than 10 months (see https://pythonclock.org/) I was trying to raise awareness on this issue.

from robot-testing-framework.

drdanz avatar drdanz commented on August 14, 2024 1

2 months left to python 2 end of life, and still no python 3 support 😞

from robot-testing-framework.

traversaro avatar traversaro commented on August 14, 2024 1

The C API of the Python interpreter changed between Python 2 and Python 3, and we use it in

Py_InitModule4("rtf", testPythonMethods, (char *)NULL,
. Some notes about a previous failed attempt to port (but I did not spent a lot of time on it) can be found in #37 (comment) .

from robot-testing-framework.

apaikan avatar apaikan commented on August 14, 2024

@traversaro which versions of python have been installed?

anyway, there is a cmake option RTF_USE_PYTHON_VERSION to force using specific version of python for binding. can you please check it?

from robot-testing-framework.

traversaro avatar traversaro commented on August 14, 2024

Checked it, the problem is that some RTF is not compatible with Python 3. Working on it right now.

from robot-testing-framework.

traversaro avatar traversaro commented on August 14, 2024

Relevant link: https://docs.python.org/2/howto/cporting.html .

from robot-testing-framework.

traversaro avatar traversaro commented on August 14, 2024

Giving up as for the moment I don't know enough of Python internals to do it (especially to properly substitute the Py_InitModule4 function), just preselecting Python 2 in the cmake for now and opening a new issue to track Python 3 support.

from robot-testing-framework.

traversaro avatar traversaro commented on August 14, 2024

Relevant: https://pythonclock.org/ .

from robot-testing-framework.

traversaro avatar traversaro commented on August 14, 2024

The Python clock is rapidly ticking. : )
If we do not think we can commit effort to fix this, probably the cleanest thing to do is just to drop Python support in RTF.
@aerydna @drdanz @lornat75

from robot-testing-framework.

Nicogene avatar Nicogene commented on August 14, 2024

Given that Python 2 will be officially unsupported in less than 10 months (see https://pythonclock.org/) I was trying to raise awareness on this issue.

I didn't know about it... WONDERFUL ❤️

I agree, or we port it, or we drop it 😬

from robot-testing-framework.

aerydna avatar aerydna commented on August 14, 2024

i am for dropping the compatibility

from robot-testing-framework.

Nicogene avatar Nicogene commented on August 14, 2024

But what is the main incompatibility issue?
What it is blocking ?

from robot-testing-framework.

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.