← Back to team overview

yade-users team mailing list archive

Yade migrated to Python3

 

Dear Yade users,
After a few weeks of intense hacking by François Kneib, Yade now supports
python3.
That change was necessary since Python 2.7 will be a dead langage very soon.
The installation instructions
<https://yade-dem.org/doc/installation.html?highlight=PYTHON_VERSION#compilation>
[1] have been updated accordingly for those compiling Yade.

This change only affects the source code for the moment, it will affect the
binary packages soon.

It is still possible to compile with python 2.7 as usual, however the
"print" command in users script will have to use brackets even in that case
(more about this and other things explained in [2]
<https://yade-dem.org/doc/tutorial-advanced.html?highlight=print#convert-python2-to3>
).
We hope the transition will be as smooth as possible for everyone.
Best regards

For the yade-dev group.
Bruno Chareyre

[1]
https://yade-dem.org/doc/installation.html?highlight=PYTHON_VERSION#compilation
[2]
https://yade-dem.org/doc/tutorial-advanced.html?highlight=print#convert-python2-to3