Azure functions - Exception: ModuleNotFoundError: No module named 'joblib'

Nuno Nogueira 76 Reputation points
2022-09-11T19:19:48.873+00:00

I'm trying to deploy an azure function locally, before I deploy it as a web api.

I'm using skforecast with a pre-loaded model on a file "forecaster.py".

This is how my init.py looks like:

import logging  
import azure.functions as func  
  
# Load model  
from joblib import dump, load  
forecaster_loaded = load("forecaster.py")  
  

The requirements.txt:

azure-functions==4.0.4736
joblib==1.1.0
matplotlib==3.2.2
numpy==1.21.6
pandas==1.3.5
session_info==1.0.0
skforecast==0.4.3
sklearn==1.0.2
xgboost==0.90

Upon running func start on the terminal, the function is executed, and returns the error:

Exception: ModuleNotFoundError: No module named 'joblib'

Can anyone help? Thanks in advance!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.