GitHubPoster: generating duolingo poster failed

I met this error when generating poster for duolingo

image

File "/home/<user>/GitHubPoster/loader/base_loader.py", line 29, in <listcomp>
month_list = [m for m in month_list if m < pendulum.now()]  
ValueError: Posix spec does not match last transition     

I think we need to check if the timezone matches?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 27 (27 by maintainers)

Most upvoted comments

Yep, thanks, got my results there

Can you use GitHub Actions to generate it ? Maybe its your timezone problem It maybe right. Just set the secret. image

ok, I found the problem was caused by calling pendulum.now() on this line after commenting the line, the problem was solved, but anyways I think we can add timezone info on the settings since you already hardcoded timezone info on the config

P.S or delete the hardcoded timezone info as I didn’t see a difference after removing it

No difference for comment that line, Just we do not need to get the data after Today. So I filtered it