Showing this error "Uncaught Error: PythonError: Traceback (most recent call last): File "/lib/python312.zip/_pyodide/_base.py", line 629, in pyimport_impl res = import(stem, fromlist=fromlist) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/session/metadata/entry.py", line 1, in import requests ModuleNotFoundError: No module named 'requests' at pyodide-internal:generated/pyodide.asm:20:9998 in new_error at wasm://wasm/0265dd42:1:1493017 in $wrap_exception at wasm://wasm/0265dd42:1:1493363 in $pythonexc2js at pyodide-internal:generated/pyodide.asm:20:607956 in Module._pythonexc2js at pyodide-internal:generated/pyodide.asm:20:64098 in Module.callPyObjectKwargs at pyodide-internal:generated/pyodide.asm:20:65055 in Module.callPyObject at pyodide-internal:generated/pyodide.asm:20:79132 in apply at pyodide-internal:generated/pyodide.asm:20:77371 in apply at pyodide-internal:generated/pyodide.asm:20:102862 in pyimport at pyodide:python-entrypoint-helper:31:18 in pyimportMainModule (Code: 10021)
"
Expected behavior
Won't show any errors
Steps to reproduce
Please provide the following:
python worker
no changes made in any other section
this is the code "import requests
from io import BytesIO
from PIL import Image
from flask import Flask, request, send_file
Which Cloudflare product(s) does this pertain to?
Workers for Platforms
What version(s) of the tool(s) are you using?
3.63.2 Wrangler
What version of Node are you using?
20.13.1
What operating system and version are you using?
Windows 11
Describe the Bug
Observed behavior
Showing this error "Uncaught Error: PythonError: Traceback (most recent call last): File "/lib/python312.zip/_pyodide/_base.py", line 629, in pyimport_impl res = import(stem, fromlist=fromlist) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/session/metadata/entry.py", line 1, in import requests ModuleNotFoundError: No module named 'requests' at pyodide-internal:generated/pyodide.asm:20:9998 in new_error at wasm://wasm/0265dd42:1:1493017 in $wrap_exception at wasm://wasm/0265dd42:1:1493363 in $pythonexc2js at pyodide-internal:generated/pyodide.asm:20:607956 in Module._pythonexc2js at pyodide-internal:generated/pyodide.asm:20:64098 in Module.callPyObjectKwargs at pyodide-internal:generated/pyodide.asm:20:65055 in Module.callPyObject at pyodide-internal:generated/pyodide.asm:20:79132 in apply at pyodide-internal:generated/pyodide.asm:20:77371 in apply at pyodide-internal:generated/pyodide.asm:20:102862 in pyimport at pyodide:python-entrypoint-helper:31:18 in pyimportMainModule (Code: 10021)
"
Expected behavior
Won't show any errors
Steps to reproduce
Please provide the following:
app = Flask(name)
@app.route('/overlay', methods=['GET']) def overlay_image(): base_image_url = request.args.get('base') overlay_image_url = 'https://www.overlayimage.png'
if name == 'main': app.run(host='0.0.0.0', port=8000)" in the entry.py
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response