Closed mpage38 closed 4 years ago
There was a non-backwards compatible change in Python's standard library ast module in 3.8. I've Python 3.8 on my machine.
From ast module documentation:
"Changed in version 3.8: Class ast.Constant is now used for all constants.
Deprecated since version 3.8: Old classes ast.Num, ast.Str, ast.Bytes, ast.NameConstant and ast.Ellipsis are still available, but they will be removed in future Python releases. In the meanwhile, instantiating them will return an instance of a different class."
Mys currently only uses ast.Constant
. I guess support for older Python version would be a good addition as there are so many systems with them installed. I can have a look at it later.
Fixed. Version 0.15.0 should work with Python 3.6+.
Btw, simple arithmetic and print numbers works. The code in the seconds part of the tutorial will like;y not work. Instead, you can run the Fibonacci example.
@mpage38 Did it work now?
PS. Install the new version with pip3 install -U mys
. DS.
Still the same error.
Successfully installed mys-0.16.0 pprintast-1.2.1 toml-0.10.1
No way. Run mys --version
.
Closing as Mys works with Python 3.6+ on Travis. Let me know if the problem persists.
mys is a nice idea !
I am under ubuntu 20.04 ; Python 3.7.6 ; g++ 9.3.0 ; GNU Make 4.2.1