Report this

What is the reason for this report?

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

Posted on May 2, 2022

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?



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!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.