メインコンテンツへスキップ

PyCharm

回答済み

コメント

2件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • Riley Clement
    • 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

    0

投稿コメントは受け付けていません。