Closed nigelcharman closed 7 months ago
Seems to have been an issue in requests-ratelimiter 0.5.0 released an hour ago. Seems to be fixed in 0.5.1 released 20 minutes ago.
Yeah, it looks like the job ran within a 43-minute window of time in which there was a bug in the latest version of requests-ratelimiter. Sorry about that.
I'd recommend installing dependencies from a full lockfile (or output of pip freeze
). That requirements.txt
has pinned versions of its top-level dependencies, but any transitive dependencies (including requests-ratelimiter) will use the latest version available.
Yeah, we tend to be susceptible to that sort of thing by running hourly with a pip install
each time. I'll lock at using the full lockfile (or output of pip freeze
).
If you do want to try using a tool that handles lockfiles (like poetry, pipenv, or pdm), I would be happy to help set that up.
Meanwhile, a simple short-term option is:
pip install -r requirements.txt
pip freeze > requirements_lock.txt
requirements_lock.txt
The problem
The hourly GitHub Actions job for https://github.com/EcoNet-NZ/inaturalist-to-cams is failing with "WARNING Parameters missing or invalid:1/1 cannot come before 1/1"
The error appears to be coming from pyrate-limiter being called from pyinaturalist:
See https://github.com/EcoNet-NZ/inaturalist-to-cams/issues/75 for full stack trace.
Expected behavior
The code has been working for about a year and no code changes were made before this issue occurred.
We do a
pip install -r requirements.txt
prior to each GitHub Actions run (with results being cached). See https://github.com/EcoNet-NZ/inaturalist-to-cams/blob/main/requirements.txt.The GitHub Actions log is https://github.com/EcoNet-NZ/inaturalist-to-cams/actions/runs/7692270856/job/20958903852.
Steps to reproduce the behavior
I think it's coming from the
import pyinaturalist
line.Workarounds
None known
Environment
Ubuntu 22.0.3 LTS Python 3.9.18 pyinaturalist 0.18.0
Collecting pyrate-limiter<3.0 (from requests-ratelimiter>=0.3.2->pyinaturalist==0.18.0->-r requirements.txt (line 1)) Using cached pyrate_limiter-2.10.0-py3-none-any.whl (16 kB)