cnvogelg / amitools

Various tools for using AmigaOS programs on other platforms
257 stars 71 forks source link

Running on Windows error #26

Closed lab313ru closed 8 years ago

lab313ru commented 8 years ago

Error happening at line (when running on Windows with system Python, not by MSYS2):

from musashi import emu

Fatal Python error: PyThreadState_Get: no current thread

rmtew commented 8 years ago

Did you google the error? More often than not, a likely reason can be found for the problem, and the person who would otherwise look at the bug and fix it would have do the same.

From: http://doc.aldebaran.com/2-1/dev/python/tips-and-tricks.html You are using a version of Python that is not binary compatible with the one used to compile the Python bindings.

Pretty good lead. I suspect it'll be the cause of your problem.

On Wed, Dec 16, 2015 at 4:08 AM, Lab 313 notifications@github.com wrote:

Error happening at line (when running on Windows with system Python, not by MSYS2):

from musashi import emu

Fatal Python error: PyThreadState_Get: no current thread

— Reply to this email directly or view it on GitHub https://github.com/cnvogelg/amitools/issues/26.

lab313ru commented 8 years ago

It looks like it is a Cython problem. When I'm trying to debug vamos code in PyCharm or in other py-debugger, it throws this error. Without debugger environment - works good.

cnvogelg commented 8 years ago

Actually Cython itself states that you have to compile your Cython code with the same environment you used for compiling Python itself. By using another Python executable this cannot be guaranteed...

Simply stick with MSYS2's Python and everything is ok.