0

I am using APScheduler to run some background tasks periodically and I use python 3.8.10 but with our pyproject.toml based projects build fails to add this dependency(APScheduler==3.9.1) from requirement.txt with the following error

*ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml-based projects
error building image: error building stage: failed to execute command: waiting for process to exit: exit status 1*

It looks like the backports.zoneinfo expects the python version to be 3.8.9 but we use 3.8.10 and they recommend us to ignore backports.zoneinfo;python_version<"3.9" but not sure how can i do that using project.toml or tox.ini file that uses requirements.txt. i just want to ignore this child dependency library backports.zoneinfo from APAscheduler, Any idea?

Abdul Salam
  • 198
  • 1
  • 2
  • 10
  • One time you speak of 3.8.9 vs 3.8.10 and then you about < 3.9 - your problem is not clear to me. If you want to install a package only for a specific python version, you can use something like this: https://stackoverflow.com/a/32643122/672833 – Jürgen Gmach May 19 '22 at 14:11

0 Answers0