question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kombu 4.2.2: py.test seems to fail/hang

See original GitHub issue

Hi guys,

My CI detected that the new release of Kombu is not working in my project anymore, specifically when trying to run py.test with my application.

So far I don’t know what the root cause of the problem is with Kombu, but pinning to 4.2.1 worked for us.

This is what I was able to pull out of pytest with PYTEST_DEBUG enabled, which pointed me down the road of “did they release a new version of Kombu”:

early skip of rewriting module: hiredis.hiredis [assertion]
    early skip of rewriting module: hiredis.version [assertion]
    early skip of rewriting module: redis.lock [assertion]
    early skip of rewriting module: redis.sentinel [assertion]
    early skip of rewriting module: django_celery_results.backends [assertion]
    early skip of rewriting module: django_celery_results.backends.cache [assertion]
    matched marked file 'celery.backends' (from 'celery') [assertion]
    find_module called for: celery.backends [assertion]
    rewriting '/usr/local/lib/python3.6/site-packages/celery/backends.py' [assertion]
    matched marked file 'celery.backends.base' (from 'celery') [assertion]
    find_module called for: celery.backends.base [assertion]
    rewriting '/usr/local/lib/python3.6/site-packages/celery/backends/base.py' [assertion]
    early skip of rewriting module: django_celery_results.backends.database [assertion]
    matched marked file 'celery.app.events' (from 'celery') [assertion]
    find_module called for: celery.app.events [assertion]
    rewriting '/usr/local/lib/python3.6/site-packages/celery/app/events.py' [assertion]
    matched marked file 'celery.events' (from 'celery') [assertion]
    find_module called for: celery.events [assertion]
    rewriting '/usr/local/lib/python3.6/site-packages/celery/events.py' [assertion]
    matched marked file 'celery.events.dispatcher' (from 'celery') [assertion]
    find_module called for: celery.events.dispatcher [assertion]
    rewriting '/usr/local/lib/python3.6/site-packages/celery/events/dispatcher.py' [assertion]
    matched marked file 'celery.events.event' (from 'celery') [assertion]
    find_module called for: celery.events.event [assertion]
    rewriting '/usr/local/lib/python3.6/site-packages/celery/events/event.py' [assertion]
    matched marked file 'celery.events.receiver' (from 'celery') [assertion]
    find_module called for: celery.events.receiver [assertion]
    rewriting '/usr/local/lib/python3.6/site-packages/celery/events/receiver.py' [assertion]
    early skip of rewriting module: kombu.mixins [assertion]
    early skip of rewriting module: kombu.utils.limits [assertion]

And it just hangs from there.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
grovescommented, Dec 17, 2018

It appears that 4.2.2 is cut from master instead of the 4.2 branch: https://github.com/celery/kombu/issues/966

Perhaps that explains why there’s more in it than allowing new redis clients?

2reactions
russozcommented, Jan 6, 2019

For the record I can confirm my problem disappeared with the re-release of 4.2.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kombu 4.2.0 documentation - Celery
This document is for Kombu's development version, which can be significantly different from previous releases. Get the stable docs here: 4.1.
Read more >
Untitled
+ tools/*.py can be run under python 3.0 + svm_set_quiet() in python interface to disable outputs + check gamma < 0 + internal...
Read more >
Untitled
Remove HMAC_MD5 from Requires and BuildRequires - Add Test::Pod to ... and TKS do not seem to have CRL checking enabled - Bugzilla...
Read more >
Python library issues and how to fix | GitAnswer
removal of kombu-4.2.2 from pypi ... Kombu 4.2.2: py.test seems to fail/hang ... kombu creating RabbitMQ connection in forked process hangs ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found