-
Notifications
You must be signed in to change notification settings - Fork 301
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
🐛 BUG: python FastAPI worker: ModuleNotFoundError: No module named 'httpx' #2396
Comments
What does your requirements.txt file look like? It doesn't look like you have one defined |
Yes, because requirements.txt is not supported now, I did not add the requirements.txt file. |
|
Thank you for the reply. I hope to use requirements.txt to deploy the project as soon as possible. Do you have a specific timeline? A month, six months, or a year? |
Hey @yym68686, @mmabrouk, & @afeezaziz, Regarding timing on package support, I think a very rough estimate would be something like 6 months for open beta package support in prod. We don’t have a firm date, but in any case, I wouldn’t build something today with the expectation that this is just around the corner. Some context is that current Python startup times with packages are long enough where we think cold starts would impact end-users regularly in a non-trivial way. We are working on two things: reducing cold start length and reducing cold start frequency for Python. We’ve got a good plan on both (pre-initializing isolates with Pyodide and loading package memory snapshots to reduce time & smartly routing requests to re-use Workers that are already loaded), but it’ll take some time to execute on this. Sorry if that timeline is disappointing. It is longer than we wanted it to be on our end as well. |
Thanks for the quick answer @mikenomitch ! |
Which Cloudflare product(s) does this pertain to?
Workers Runtime
What version(s) of the tool(s) are you using?
wrangler 3.63.2
What version of Node are you using?
v20.13.1
What operating system and version are you using?
Mac 14.4.1
Describe the Bug
Observed behavior
display
Expected behavior
No error, can import the httpx module
Steps to reproduce
Please provide the following:
wrangler.toml
An error occurred immediately after executing wrangler deploy.
A git repo we can clone and run a test suite on, or which has a README with step-by-step instructions, is even better. In this case, please use the field below to provide a link to the minimal repro.
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
The text was updated successfully, but these errors were encountered: