Skip to content

fix: pin setuptools<82 to avoid pkg_resources issue#506

Merged
db0 merged 7 commits intomainfrom
setuptools
Mar 22, 2026
Merged

fix: pin setuptools<82 to avoid pkg_resources issue#506
db0 merged 7 commits intomainfrom
setuptools

Conversation

@tazlin
Copy link
Copy Markdown
Member

@tazlin tazlin commented Mar 22, 2026

This should address the CI failing for the related reason:

Traceback (most recent call last):
  File "/home/runner/work/AI-Horde/AI-Horde/server.py", line 18, in <module>
    from horde.argparser import args
  File "/home/runner/work/AI-Horde/AI-Horde/horde/__init__.py", line 12, in <module>
    import horde.routes  # noqa F401
  File "/home/runner/work/AI-Horde/AI-Horde/horde/routes.py", line 24, in <module>
    from horde.database import functions as database
  File "/home/runner/work/AI-Horde/AI-Horde/horde/database/__init__.py", line 5, in <module>
    import horde.database.threads as threads
  File "/home/runner/work/AI-Horde/AI-Horde/horde/database/threads.py", line 9, in <module>
    import patreon
  File "/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/patreon/__init__.py", line 1, in <module>
    from .api import API
  File "/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/patreon/api.py", line 10, in <module>
    from patreon.utils import user_agent_string
  File "/opt/hostedtoolcache/Python/3.10.20/x64/lib/python3.10/site-packages/patreon/utils.py", line 1, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

@tazlin tazlin added the allow-ci A PR with this label will run through CI. label Mar 22, 2026
tazlin added 3 commits March 21, 2026 23:40
Raise the sleep delay from 5 to 10 seconds in maintests.yml and prtests.yml before running the register curl step. This gives the test server more time to start and reduces flaky failures when extracting the API key.
Extend the sleep from 10s to 35s in CI workflows to give `python server.py` more time to initialize before running registration and tests, reducing intermittent startup-related failures. Updated .github/workflows/maintests.yml and .github/workflows/prtests.yml.
@db0 db0 merged commit 44d7988 into main Mar 22, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

allow-ci A PR with this label will run through CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants