You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JPype is incompatible with Python 3.7: Fatal Python error: _Py_InitializeCore: main interpreter already initialized #331
It 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 :-)
Yes. That is one of the lines that caused PyPy to fail. Unfortunately, there were additional issues so I never go around to patching it and didn't look at the PEP to see if it belonged. Thanks for catching it.
Hi are you going to release the fixes package anytime soon? I ran into this problem today and would very much prefer to use an official release from PyPy rather than a patched one. Thanks! :)
My PR #332 has been merged, and in the meanwhile, Python 3.7.1 has been released. Since Python 3.7.1, calling Py_Initialize() twice is accepted again ;-)
Activity
vstinner commentedon Jun 21, 2018
Note: I found the issue when running the test suite of https://github.com/konlpy/konlpy with Python 3.7.
marscher commentedon Jun 21, 2018
vstinner commentedon Jun 21, 2018
I'm actually trying to do that.
marscher commentedon Jun 21, 2018
vstinner commentedon Jun 21, 2018
cc @hroncok
vstinner commentedon Jun 21, 2018
Yep, I found it! I proposed the PR #332 to fix this bug.
Merge pull request #332 from vstinner/patch-1
rapgro commentedon Jun 21, 2018
FTC, PEP 432
Thrameos commentedon Jun 21, 2018
Yes. That is one of the lines that caused PyPy to fail. Unfortunately, there were additional issues so I never go around to patching it and didn't look at the PEP to see if it belonged. Thanks for catching it.
mludvig commentedon Nov 5, 2018
Hi are you going to release the fixes package anytime soon? I ran into this problem today and would very much prefer to use an official release from PyPy rather than a patched one. Thanks! :)
vstinner commentedon Nov 5, 2018
My PR #332 has been merged, and in the meanwhile, Python 3.7.1 has been released. Since Python 3.7.1, calling Py_Initialize() twice is accepted again ;-)