azure-functions-python-worker icon indicating copy to clipboard operation
azure-functions-python-worker copied to clipboard

Customer packages not in sys path. This should never happen!

Open danielniccoli opened this issue 1 year ago • 6 comments

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'.

danielniccoli avatar Nov 23 '23 10:11 danielniccoli

This SO thread answer talks about this being an issue only while developing locally, and can generally be ignored.

nathan-verghis avatar Dec 04 '23 22:12 nathan-verghis

Unfortunately, my vscode can't find modules as a result and dies.

blochstrinity avatar Jan 24 '24 22:01 blochstrinity

Same issue here as @blochstrinity. May be harmless developing locally but trying to test locally always gives me a "cant find modules"

AshwinSimplyAugmented avatar Jan 27 '24 22:01 AshwinSimplyAugmented

@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.

danielniccoli avatar Jan 29 '24 15:01 danielniccoli

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?

Alawode avatar Feb 11 '24 06:02 Alawode

@vrdmr this log is coming from the python worker can your team please investigate?

liliankasem avatar Apr 05 '24 18:04 liliankasem

Fixed - was a misconfigured warning from our telemetry. Apologies for the inconvenience.

vrdmr avatar Jun 24 '24 20:06 vrdmr