Question

App platform error while deploying python/flask app - backports.zoneinfo

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

[https://stackoverflow.com/questions/71712258/error-could-not-build-wheels-for-backports-zoneinfo-which-is-required-to-insta]

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?


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.