Skip to content

Python2to3

Thibault Pradal edited this page Aug 13, 2021 · 3 revisions

Converting to Python 3 :

In a first time, you will need to use 2to3 to do the most of the work. The easiest changes will be done, but you will still need to correct a lot of bugs.

To find the bugs, run the tests with Pytest or Nose, or test by yourself your code.

In the case of OpenAlea, one of the most complete test of the repertory openalea/openalea consists in executing the command visualea and run a graph to check if it works.

Useful links :

Convert your project from Python 2 to Python 3

Convert from Qt4 to Qt5

Clone this wiki locally