← Back to team overview

yade-users team mailing list archive

Re: [Question #699697]: Python version in Yade 2021.01a

 

Question #699697 on Yade changed:
https://answers.launchpad.net/yade/+question/699697

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

> what can i do?!

The most reasonable approach is IMO convert the scripts to version 3,
either manually or e.g. using [1].

Alternatively (although I would strongly discourage this approach), for
the compiled version, you can try to set PYTHON_VERSION cmake variable
to 2 (see [2], search PYTHON_VERSION)

Cheers
Jan

[1] https://docs.python.org/3/library/2to3.html
[2] https://gitlab.com/yade-dev/trunk/-/blob/master/CMakeLists.txt

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.