Skip to content

SyntaxError: current version fails to run on Python releases earlier than 3.8 #261

@MrGribel

Description

@MrGribel

Describe the bug
When importing the rocketpy module on python versions earlier than 3.8, a syntax error occurs due to a unpacking operator present in a return statement (a feature introduced recently) in the EnvironmentAnalysis class.

To Reproduce

Try running the current PyPI rocketpy version on any python versions earlier than 3.8.

Expected behavior

Package initialization should be successful on all python versions described on the requirements docs (3.6+), or requirements should be changed.

Screenshots

image

Additional context

Google Colab online environment defaults to Python version 3.7, so this issue breaks all the current online RocketPy Jupyter notebooks. This requires the user to run on an older version (before the merge of EnvironmentAnalysis), or update their Colab kernel with a more recent python version.

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions