New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: AST node line range is not valid #3158
Comments
This seems to happen only in 'Pygame Zero mode'. If i add
All examples work outside of Thonny when i run them via |
The error pip: github: After installing pgzero outside of Thonny, i could use version '1.3.dev0' in Thonny. Now i can workaround the initial issue and create a runner script like
|
It seems to be still broken in the current version Thonny 5.0.0b1-dev. |
Adding
I guess this works as it was intended in Thonny, i.e. adding The catch is that this is not enough as i described above. |
Thank you for this thorough report! It looks like recent Python versions have more strict requirements about AST nodes. I'll fix it later. |
Trying to run any of the Pygame Zero examples fails with
The backend log seems to contain nothing obvious:
Before I created a new Interpreter with a new environment folder and installed pgzero from 'Manage packages...'.
Thonny 4.1.4
Python 3.11.8
The text was updated successfully, but these errors were encountered: