{"action":"created","issue":{"url":"https://api.github.com/repos/AdaptiveParticles/LibAPR/issues/102","repository_url":"https://api.github.com/repos/AdaptiveParticles/LibAPR","labels_url":"https://api.github.com/repos/AdaptiveParticles/LibAPR/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/AdaptiveParticles/LibAPR/issues/102/comments","events_url":"https://api.github.com/repos/AdaptiveParticles/LibAPR/issues/102/events","html_url":"https://github.com/AdaptiveParticles/LibAPR/issues/102","id":387661382,"node_id":"MDU6SXNzdWUzODc2NjEzODI=","number":102,"title":"python bindings crash at import (linux/mac) ","user":{"login":"maweigert","id":11042162,"node_id":"MDQ6VXNlcjExMDQyMTYy","avatar_url":"https://avatars3.githubusercontent.com/u/11042162?v=4","gravatar_id":"","url":"https://api.github.com/users/maweigert","html_url":"https://github.com/maweigert","followers_url":"https://api.github.com/users/maweigert/followers","following_url":"https://api.github.com/users/maweigert/following{/other_user}","gists_url":"https://api.github.com/users/maweigert/gists{/gist_id}","starred_url":"https://api.github.com/users/maweigert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maweigert/subscriptions","organizations_url":"https://api.github.com/users/maweigert/orgs","repos_url":"https://api.github.com/users/maweigert/repos","events_url":"https://api.github.com/users/maweigert/events{/privacy}","received_events_url":"https://api.github.com/users/maweigert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-12-05T09:19:02Z","updated_at":"2018-12-05T09:31:17Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nFirst, thanks for the great package, which I would love to use from within python.\r\nI followed the install instructions for python support (`cmake -DAPR_BUILD_PYTHON_WRAPPERS=ON ..`) and everything builds fine. However if I try to import the built python module (`pyApr.so`) via `import pyApr` it crashes at (1) Mac and (2) Linux with the following errors:\r\n\r\n(1) OSX 10.12.6, clang 8.0.0, python 3.6.4\r\n\r\n```\r\nTermination Signal:    Illegal instruction: 4\r\ndyld: in dlopen()\r\nBUG IN LIBTRACE: MH not found\r\nThread 0 Crashed:: Dispatch queue: com.apple.main-thread\r\n0   libsystem_trace.dylib         \t0x00007fff9c24de97 _os_trace_image_was_unloaded + 271\r\n1   dyld                          \t0x000000010f2cacb2 dyld::removeImage(ImageLoader*) + 343\r\n```\r\n\r\n(2) Ubuntu 16.04, gcc 6.4.0, python 3.5.2\r\n```\r\nImportError: /home/mweigert/cpp/LibAPR/build/pyApr.so: undefined symbol: _Py_ZeroStruct\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/AdaptiveParticles/LibAPR/issues/comments/444418972","html_url":"https://github.com/AdaptiveParticles/LibAPR/issues/102#issuecomment-444418972","issue_url":"https://api.github.com/repos/AdaptiveParticles/LibAPR/issues/102","id":444418972,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDQxODk3Mg==","user":{"login":"krzysg","id":6569957,"node_id":"MDQ6VXNlcjY1Njk5NTc=","avatar_url":"https://avatars1.githubusercontent.com/u/6569957?v=4","gravatar_id":"","url":"https://api.github.com/users/krzysg","html_url":"https://github.com/krzysg","followers_url":"https://api.github.com/users/krzysg/followers","following_url":"https://api.github.com/users/krzysg/following{/other_user}","gists_url":"https://api.github.com/users/krzysg/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysg/subscriptions","organizations_url":"https://api.github.com/users/krzysg/orgs","repos_url":"https://api.github.com/users/krzysg/repos","events_url":"https://api.github.com/users/krzysg/events{/privacy}","received_events_url":"https://api.github.com/users/krzysg/received_events","type":"User","site_admin":false},"created_at":"2018-12-05T09:31:17Z","updated_at":"2018-12-05T09:31:17Z","author_association":"MEMBER","body":"Python 2 is used by default, check that line in CMakeLists.txt file:\r\n`\r\nset(PYBIND11_PYTHON_VERSION 2.7)\r\n`"}}
{"actor":{"display_login":"krzysg"}}