Closed mikidep closed 4 years ago
I suspect this is related to gevent, not grequests. I suggest trying with a newer/older version, if possible.
I have experienced a similar issue where importing grequests will cause a segmentation fault on MacOS El Capitan. Creating a virtualenv seemed to resolve the issue for whatever reason.
The behavior was different between Python versions (3.6 segfaulted but 3.5 worked, independent of whether I used gevent 1.2.0 or 1.2.2). Inside of a virtualenv, however, it always just worked.
$ python3
Python 3.6.3 (v3.6.3:2c5fed86e0, Oct 3 2017, 00:32:08)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import grequests
Segmentation fault: 11
but in the virtualenv...
(testvenv)$ python
Python 3.6.3 (v3.6.3:2c5fed86e0, Oct 3 2017, 00:32:08)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import grequests
>>> exit()
Seems to be fixed with newer versions of gevent
Resulting in a crash. I will provide any kind of dumps if needed.