Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

functions_framework throws OSError with Werkzeug on Windows 11 #2774

Closed
blaze-Youssef opened this issue Aug 21, 2023 · 0 comments
Closed

functions_framework throws OSError with Werkzeug on Windows 11 #2774

blaze-Youssef opened this issue Aug 21, 2023 · 0 comments

Comments

@blaze-Youssef
Copy link

I am encountering an issue when using the functions_framework python package for local development of Google Cloud functions. This package leverages Flask and uses werkzeug to watch for changes in the source code and reloads upon detecting any changes. The error arises when I run it with the --debug option.

Error Trace:

 * Detected change in 'C:\\Users\\{user}\\Projects\\python\\vectornado\\backend\\cloud-functions\\crawl-worker\\main.py', reloading
...
OSError: [WinError 10038] An operation was attempted on something that is not a socket

[Full Stack Trace here]

What I've Tried:

I stumbled upon a solution on StackOverflow (link) which recommended the following commands to be run:

netsh winsock reset catalog
netsh int ipv4 reset reset.log
netsh int ipv6 reset reset.log

Post execution, I restarted my system. However, the issue still persists.

Steps to Reproduce:

  1. Setup a local development environment with functions_framework on Windows 11.
  2. Ensure you are using Python 3.11.4 with werkzeug==2.3.7.
  3. Run the framework with the --debug option.
  4. Make a change in the source code file to trigger the werkzeug auto-reload feature.

Environment Details:

  • OS: Windows 11
  • Python Version: 3.11.4
  • Package Version: werkzeug==2.3.7 functions_framework==3.4.0
@blaze-Youssef blaze-Youssef closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant