{"action":"created","issue":{"url":"https://api.github.com/repos/originell/jpype/issues/331","repository_url":"https://api.github.com/repos/originell/jpype","labels_url":"https://api.github.com/repos/originell/jpype/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/originell/jpype/issues/331/comments","events_url":"https://api.github.com/repos/originell/jpype/issues/331/events","html_url":"https://github.com/originell/jpype/issues/331","id":334479401,"node_id":"MDU6SXNzdWUzMzQ0Nzk0MDE=","number":331,"title":"JPype is incompatible with Python 3.7: Fatal Python error: _Py_InitializeCore: main interpreter already initialized","user":{"login":"vstinner","id":194129,"node_id":"MDQ6VXNlcjE5NDEyOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/194129?v=4","gravatar_id":"","url":"https://api.github.com/users/vstinner","html_url":"https://github.com/vstinner","followers_url":"https://api.github.com/users/vstinner/followers","following_url":"https://api.github.com/users/vstinner/following{/other_user}","gists_url":"https://api.github.com/users/vstinner/gists{/gist_id}","starred_url":"https://api.github.com/users/vstinner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vstinner/subscriptions","organizations_url":"https://api.github.com/users/vstinner/orgs","repos_url":"https://api.github.com/users/vstinner/repos","events_url":"https://api.github.com/users/vstinner/events{/privacy}","received_events_url":"https://api.github.com/users/vstinner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-21T12:51:54Z","updated_at":"2018-06-21T12:54:29Z","closed_at":null,"author_association":"NONE","body":"Since Python 3.7, calling Py_Initialize() twice now fails with a fatal error:\r\n\r\n```\r\nFatal Python error: _Py_InitializeCore: main interpreter already initialized\r\n```\r\n\r\nBut PyInit__jpype() calls Py_Initialize() at native/python/jpype_python.cpp:161:\r\n\r\nhttps://github.com/originell/jpype/blob/490eb6511a0a0b57be2191cbbf3a90bac45e5879/native/python/jpype_python.cpp#L150-L157\r\n\r\nIt doesn't make sense to call Py_Initialize() in the initialization function of a module, since Python must be initialized to able to... import jpype :-)\r\n\r\nThe fix is just to remove the call."},"comment":{"url":"https://api.github.com/repos/originell/jpype/issues/comments/399093312","html_url":"https://github.com/originell/jpype/issues/331#issuecomment-399093312","issue_url":"https://api.github.com/repos/originell/jpype/issues/331","id":399093312,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTA5MzMxMg==","user":{"login":"marscher","id":170287,"node_id":"MDQ6VXNlcjE3MDI4Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/170287?v=4","gravatar_id":"","url":"https://api.github.com/users/marscher","html_url":"https://github.com/marscher","followers_url":"https://api.github.com/users/marscher/followers","following_url":"https://api.github.com/users/marscher/following{/other_user}","gists_url":"https://api.github.com/users/marscher/gists{/gist_id}","starred_url":"https://api.github.com/users/marscher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marscher/subscriptions","organizations_url":"https://api.github.com/users/marscher/orgs","repos_url":"https://api.github.com/users/marscher/repos","events_url":"https://api.github.com/users/marscher/events{/privacy}","received_events_url":"https://api.github.com/users/marscher/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T12:54:29Z","updated_at":"2018-06-21T12:54:29Z","author_association":"COLLABORATOR","body":"there is the edit button hidden somewhere in the right upper corner :)\n"}}
{"actor":{"display_login":"marscher"}}