Skip to content

No module named 'azure.durable_functions' #4804

@PingvinB

Description

@PingvinB

Version

4.7.0

Description

I'm trying to set up a basic durable functions using the demo code at https://learn.microsoft.com/en-us/azure/azure-functions/durable/quickstart-python-vscode?tabs=windows

I created a new function with func new, added azure-functions-durable>=1.2.4 to requirements.txt, and then added the demo orchestrator code from the quickstart to function_app.py

When starting the function with func start , I get the following error:

[2026-02-20T14:26:58.578Z] Initializing worker process failed
[2026-02-20T14:26:58.579Z] Result: Failure
Type: 
Exception: ModuleNotFoundError: No module named 'azure.durable_functions'. Cannot find module. Please check the requirements.txt file for the missing module. For more info, please refer the troubleshooting guide: https://aka.ms/functions-modulenotfound. Current sys.path: C:\Users\PingvinB\scoop\apps\azure-functions-core-tools\current\workers\python\3.13\WINDOWS\X64 C:\Users\PingvinB\AppData\Roaming\uv\python\cpython-3.13.7-windows-x86_64-none\python313.zip C:\Users\PingvinB\AppData\Roaming\uv\python\cpython-3.13.7-windows-x86_64-none\DLLs C:\Users\PingvinB\AppData\Roaming\uv\python\cpython-3.13.7-windows-x86_64-none\Lib C:\Users\PingvinB\.local\bin C:\Users\PingvinB\AppData\Roaming\uv\python\cpython-3.13.7-windows-x86_64-none C:\Users\PingvinB\AppData\Roaming\uv\python\cpython-3.13.7-windows-x86_64-none\Lib\site-packages C:\Users\PingvinB\repos\playground\durfuncs
Stack:   File "C:\Users\PingvinB\scoop\apps\azure-functions-core-tools\current\workers\python\3.13\WINDOWS\X64\azure_functions_runtime\handle_event.py", line 99, in worker_init_request
    load_function_metadata(
  File "C:\Users\PingvinB\scoop\apps\azure-functions-core-tools\current\workers\python\3.13\WINDOWS\X64\azure_functions_runtime\handle_event.py", line 410, in load_function_metadata
    _metadata_result = (index_functions(function_path, function_app_directory)) \
  File "C:\Users\PingvinB\scoop\apps\azure-functions-core-tools\current\workers\python\3.13\WINDOWS\X64\azure_functions_runtime\handle_event.py", line 416, in index_functions
    indexed_functions = index_function_app(function_path)
  File "C:\Users\PingvinB\scoop\apps\azure-functions-core-tools\current\workers\python\3.13\WINDOWS\X64\azure_functions_runtime\utils\wrappers.py", line 50, in call
    raise extend_exception_message(e, message)
  File "C:\Users\PingvinB\scoop\apps\azure-functions-core-tools\current\workers\python\3.13\WINDOWS\X64\azure_functions_runtime\utils\wrappers.py", line 46, in call
    return func(*args, **kwargs)
  File "C:\Users\PingvinB\scoop\apps\azure-functions-core-tools\current\workers\python\3.13\WINDOWS\X64\azure_functions_runtime\loader.py", line 176, in index_function_app
    imported_module = importlib.import_module(module_name)
  File "C:\Users\PingvinB\AppData\Roaming\uv\python\cpython-3.13.7-windows-x86_64-none\Lib\importlib\__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "C:\Users\PingvinB\repos\playground\durfuncs\function_app.py", line 1, in <module>
    import azure.durable_functions as df

Steps to reproduce

Clone https://github.com/PingvinB/demo-func-python-durable

Then run:

python -m venv .venv

.venv/Scripts/activate

python -m pip install -r requirements.txt

func start

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions