By Mandar
Hello, I am trying to deploy my Python/Flask app using digitalocen’s app platform. This is my first time
I am getting below error with python version - 3.10.4
[2022-05-02 04:33:16] Failed to build backports.zoneinfo
[2022-05-02 04:33:16] ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml-based projects
[2022-05-02 04:33:16] ERROR: failed to build: exit status 1
Try one - As per below link, I tried to setup ryntime.txt with python-3.8.10
error - i got from digitalocean app platform - deployment
Requested runtime (��python-3.8.10) is not available for this stack (heroku-18).
Can someone suggest the resolution for this error please?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
For now the issue has been resolved by removing backports.zoneinfo from requirement.txt. App seems to work fine after removing this library :)
Not an intelligent solution, but it works and take me to the next roadblock
I was facing the same error while creating my container. I solved the error by using the exact version of my Python venv i.e. 3.8.9
Earlier for the image, I was using 3.8-alpine for a lighter version of the image. But, it wasn’t working out for me and got the same error as yours.
Hope this helps! Thanks.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.