zytedata / zytedata/python-zyte-api
`__main__.py` doesn't work with Python 3.14
Open
Beginner friendly
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 30
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
As seen in some tests in #90 which call python -m zyte_api, it fails on Python 3.14, where asyncio.get_event_loop() doesn't create a loop if one doesn't exist. So this code needs to be changed.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with main.py and reproduce the failure using the tests from #90 that call python -m zyte_api under Python 3.14. Trace the event-loop setup and verify that invoking the module succeeds on Python 3.14 without breaking supported versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100