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

Gurobi solver not working in Azure Cloud Function

進行中

コメント

5件のコメント

  • Marika Karbstein
    Gurobi Staff Gurobi Staff

    I have no experience with Azure Function Apps. But the output shows

    ModuleNotFoundError: No module named 'gurobipy'

    Did you make sure that gurobipy is installed and can be found?

    0
  • Riley Clement
    Gurobi Staff Gurobi Staff

    Additional to Marika's comment, can you see gurobipy as a subfolder of the following directory?

    /home/site/wwwroot/.python_packages/lib/site-packages/

     

    0
  • Yassin Alhafiz
    First Comment
    First Question

    Hey,

    Yes I made sure gurobipy is installed, I have outputted installed packages above and can see that gurobipy is listed. I have also navigated to that directory and I see the gurobipy subfolder. 

    0
  • Riley Clement
    Gurobi Staff Gurobi Staff

    A similar issue is reported in this Stack Overflow post.
    https://stackoverflow.com/questions/72215655/local-module-not-found-in-azure-function

    Can you see if the selected answer there helps?

    0
  • Yassin Alhafiz
    First Comment
    First Question

    Hey,

    The issue was being caused by the solver option "tee=True" being enabled as well as having a log file defined. It seems Azure is a read only environment and the log streams from the Gurobi server is causing an issue. 

    Disabling the logs resolved the issue but now cannot retrieve logs. Is there a Gurobi API to get logs by run ID directly from the server?

    0

サインインしてコメントを残してください。