-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Suggestion
If it is possible to implement, I believe it would be beneficial for all users to add a custom error message for all Python OOP submissions, where the "Runtime Error" is displayed and the error is related to the import syntax, i.e. the import statement requires the workspace folder e.g.,
from project.climbers.arctic_climber import ArcticClimberinstead of just
from climbers.arctic_climber import ArcticClimberIn these cases there is no clear indication to the user what the issue with the submission is. For someone that is not very familiar with Python submissions in general or students coming only for exams or after long breaks between courses the error is very ambiguous.
In other languages such as C# and Java the users either receives an error indicating a missing namespace or a specific class, or at least is able to see a few zero tests that reveal a unit test looking for specific classes and/or properties, which gives that indication of wrong imports.
However, in the case of Python or at least this particular task: https://alpha.judge.softuni.org/contests/4968/compete#4
There is no indication other than a "Runtime Error" message without further explanation, the difference between this:

and this:

is only the syntax of the import statement.
This is very confusing/misleading as the code would run perfectly fine on the local system of the user, but it will error out inside Judge, resulting in student complaints and/or unnecessary emails to the support crew.
Thus my suggestion is, in case this is a behavior for all Python OOP tasks rather than just this specific one, to provide the user with an additional generic error message e.g., Please make sure the import statements are following the Judge submission guidelines or something similar, in order to reduce the confusion.