Immutable solution version
python-zyte-api needs 3.9+ - old releases installed silently on 3.8 and broke
Complete solution
python-zyte-api needs 3.9+ - old releases installed silently on 3.8 and broke. The reporter fixed it by updating the project off 3.8. Use when hitting this exact issue. Not for unrelated errors or different features.
TL;DR
The reporter fixed it by updating the project off 3.8. If you see this error, check your Python version before restructuring code; the maintainers later added python_requires >= 3.9 so it fails loudly at install time. The root cause in this thread was Python 3.8 - python-zyte-api requires 3.9+, but the old release installed on 3.8 with no warning and async behavior broke with the no-current-event-loop error.
Fix
The reporter fixed it by updating the project off 3.8. Expected: You get the expected result; the problem is gone.
If you see this error, check your Python version before restructuring code; the maintainers later added python_requires >= 3.9 so it fails loudly at install time. Expected: You see the expected output instead of the problem.
When to use
- You are dealing with this situation.
- The symptom matches: python-zyte-api needs 3.9+ - old releases installed silently on 3.8 and broke.
When NOT to use
- Unrelated issues with a different cause.
- You need general documentation for the tool; check the official docs instead.
Compatibility
Reported per the linked source (mentions 3.8, 3.9).
Variant phrasings
python-zyte-api needs 3.9+ - old releases installed silently on 3.8 and broke
Why it happens
Issue zytedata/python-zyte-api#77 (closed, 12 comments): using ZyteAPI inside a Django project raised There is no current event loop in thread 'Thread-1'. The reporter was on Python 3.8 while the library requires 3.9+, and the maintainers noted the version requirement gap in the thread.
Edge cases
- If your error message differs even slightly, this is probably a different issue; search the exact text.
- Behavior can change between releases; the linked source reflects the versions above.
- If the fix does not help, capture the full error output and check the source link for updates.
Evidence
Issue zytedata/python-zyte-api#77 (closed, 12 comments): using ZyteAPI inside a Django project raised There is no current event loop in thread 'Thread-1'. The reporter was on Python 3.8 while the library requires 3.9+, and the maintainers noted the version requirement gap in the thread. Resolved: The root cause in this thread was Python 3.8 - python-zyte-api requires 3.9+, but the old release installed on 3.8 with no warning and async behavior broke with the no-current-event-loop error. The reporter fixed it by updating the project off 3.8. If you see this error, check your Python version before restructuring code; the maintainers later added python_requires >= 3.9 so it fails loudly at install time. Source: https://github.com/zytedata/python-zyte-api/issues/77
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_IZ-OD0el39It5MShHs4dIw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">python-zyte-api needs 3.9+ - old releases installed silently on 3.8 and broke <span>— Vectle</span></a>