Azure / azure-functions-python-worker

Python worker for Azure Functions.
http://aka.ms/azurefunctions
MIT License
335 stars 103 forks source link

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

Closed danielniccoli closed 3 months ago

danielniccoli commented 10 months ago

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'.
nathan-verghis commented 10 months ago

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

blochstrinity commented 8 months ago

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

AshwinSimplyAugmented commented 8 months ago

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

danielniccoli commented 8 months ago

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

Alawode commented 7 months ago

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?

liliankasem commented 6 months ago

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

vrdmr commented 3 months ago

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