azure-functions-python-worker
azure-functions-python-worker copied to clipboard
Customer packages not in sys path. This should never happen!
Logs show Customer packages not in sys path. This should never happen!
.
This is shown on a new and unmodified Azure Functions project.
Installing collected packages: azure-functions
Successfully installed azure-functions-1.17.0
[notice] A new release of pip is available: 23.1.2 -> 23.3.1
[notice] To update, run: C:\code\msfunc1\.venv\Scripts\python.exe -m pip install --upgrade pip
* Terminal will be reused by tasks, press any key to close it.
* Executing task: .venv\Scripts\activate ; func host start
Found Python version 3.11.4 (py).
Azure Functions Core Tools
Core Tools Version: 4.0.5455 Commit hash: N/A (64-bit)
Function Runtime Version: 4.27.5.21554
[2023-11-23T10:03:41.533Z] Customer packages not in sys path. This should never happen!
[2023-11-23T10:03:43.212Z] 0.01s - Debugger warning: It seems that frozen modules are being used, which may
[2023-11-23T10:03:43.214Z] 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
[2023-11-23T10:03:43.215Z] 0.00s - to python to disable frozen modules.
[2023-11-23T10:03:43.216Z] 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[2023-11-23T10:03:43.433Z] Worker process started and initialized.
Functions:
http_trigger: http://localhost:7071/api/http_trigger
For detailed output, run func with --verbose flag.
[2023-11-23T10:03:48.442Z] Host lock lease acquired by instance ID '00000000000000000000000067BB94EC'.
This SO thread answer talks about this being an issue only while developing locally, and can generally be ignored.
Unfortunately, my vscode can't find modules as a result and dies.
Same issue here as @blochstrinity. May be harmless developing locally but trying to test locally always gives me a "cant find modules"
@nathan-verghis Thank you for that information. I will still keep the issue open, because I should not have needed to create an issue to get to that information. The preferred option - in my opinion - is to not display an error, when there is no error.
Same issue here as @blochstrinity. May be harmless developing locally but trying to test locally always gives me a "cant find modules"
I'm facing the issue currently, were you able to resolve it?
@vrdmr this log is coming from the python worker can your team please investigate?
Fixed - was a misconfigured warning from our telemetry. Apologies for the inconvenience.