Closed okorolev closed 6 years ago
Thanks for reporting it. I've successfully reproduced the bug. It doesn't even have to be an asynchronous connection, just importing pycurl.
It looks very odd. I'll look into it thoroughly, as soon as I can.
I think I've found the source of the problem:
libcurl
library that's shipped with Mac. Of course, this libcurl
library is linked with the libldap
that can be found on the OS by default.libldap
which is distributed with the module itself.So when importing both modules, the interpreter loads two different versions of the libldap
library causing this weird assertion failure that you've experienced.
To prove my theory I built curl
on a Mac without LDAP/LDAPS support, built and installed the pycurl module (linked with my LDAPless libcurl
library) then I was able to import both pycurl and bonsai and ran the example.
But unfortunately, I don't have a fix that can solve this. The best solution that I read so far was rebuilding the libcurl
to also use the newer libldap
library. I haven't come across any other solution that can solve this somehow with code or configuration (on bonsai's side).
Hi!
Code:
Output:
Platform: