example from client tutorial doesn't work

Open
#242 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
48/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
documentation

Research direction

Start with the gevent section of the client tutorial at the linked documentation URL and review the linked reproduction gist. Done means the tutorial clearly explains whether gevent.monkey.patch_all() is required and the example no longer leaves that prerequisite implicit.

Written by the indexing model from the issue text.

Description

When using geventclient from ws4py as shown in tutorial, it blocks and doesn't let other greenlets to run.
Tutorial example: https://ws4py.readthedocs.io/en/latest/sources/clienttutorial/#gevent
Test to reproduce issue: https://gist.github.com/fried-sausage/0c645be0677359d70f72024b1d7a3e9b
mad_printer never gets a chance to run.
The solution for me was to add gevent.monkey.patch_all().
It is never mentioned in tutorial that user should monkey patch, however.

Dominant language
Python
Stars
1.1k
Forks
285
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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 Lawouach/WebSocket-for-Python

All issues in Lawouach/WebSocket-for-Python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.