Skip to main content




1 comment

  • Riley Clement
    Gurobi Staff Gurobi Staff

    Hi Marina,

    The line:

    pyomo.common.errors.ApplicationError: Solver (gurobi) did not exit normally

    is a bit misleading as this error is not related to Gurobi.

    The initial cause of the error:

    line 105
            def __new__(mcls, name, bases, namespace, /, **kwargs):
        SyntaxError: invalid syntax

    is complaining that the "/" in the method signature of a function within Python's standard library is incorrect.  This syntax is valid for Python 3.8+ and given it looks like you're trying to run Python 3.11 something has gone very wrong here, and it is almost certainly PyCharm's fault.

    See the following stackoverflow post where someone encountered the same issue as yourself.

    You can try and resolve the issue by exploring PyCharm configurations, but I would suggest an attractive solution would be to tell PyCharm that it's not working out between you and to go with VSCode (it has been ranked #1 IDE in the Stackoverflow Developer Survey several years in a row).

    - Riley


Please sign in to leave a comment.