Maciej Pasternacki

Results 10 comments of Maciej Pasternacki

@horpto which version of `setuptools` do you have in your system? If it's newer than 60.6.0, can you try downgrading to 60.6.0 and checking if it helps? I'm debugging a...

I can reproduce this with setuptools 60.7.0, and it does not happen with setuptools 60.6.0. It is still broken with current setuptools 60.8.1.

Update: this is not _only_ setuptools+gevent. In fresh `python:3.9` container with only `gevent` installed and `setuptools` upgraded, the snippet does not freeze. With our application's dependencies installed, it freezes. I'll...

> Update: this is not _only_ setuptools+gevent. In fresh `python:3.9` container with only `gevent` installed and `setuptools` upgraded, the snippet does not freeze. With our application's dependencies installed, it freezes....

https://gist.github.com/maciejp-ro/0b6c3bfca3c452d85c65b4dae319c821

I have also reproduced it without Docker, in a native MacOS virtualenv – `pip install -U setuptools` will make it freeze outside of container.

The following patch fixes the freeze, but it uses `importlib.metadata`, which was added in Python 3.8. [There is a backport](https://importlib-metadata.readthedocs.io/en/latest/using.html), but I'm not sure I'll be able to properly add...

Setuptools v60.8.2 that doesn't implicitly import threading has been released, this fixes the freeze. However, `pkg_resources` is deprecated and newer versions of Python include a replacement in stdlib. Setuptools maintainer...

Bumped into this as well – took me more than a day of trying to figure it out on Dec 8, a few days before this issue was filed; resumed...