`__main__.py` doesn't work with Python 3.14

Open Beginner friendly
#91 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
cli

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.

Description

bug

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.

Dominant language
Python
Stars
30
Forks
9
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from zytedata/python-zyte-api

All issues in zytedata/python-zyte-api

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.