Hello,
I try to use Cython with Python3 (Anaconda3) under Windows 7. After having solved a problem in distutils by editing the file cygwinccompiler.py (cf. Building minimal cython file with python 3.3 (Anaconda) under windows 7), modules can be built without any problems:
C:\path\testcython> python setup.py build
running build
running build_ext
cythoning testcython.pyx to testcython.c
building 'testcython' extension
C:\Prog\Anaconda3\Scripts\gcc.bat -mdll -O -Wall -IC:\Prog\Anaconda3\include -IC
:\Prog\Anaconda3\include -c testcython.c -o build\temp.win-amd64-3.4\Release\tes
tcython.o
writing build\temp.win-amd64-3.4\Release\testcython.def
C:\Prog\Anaconda3\Scripts\gcc.bat -shared -s build\temp.win-amd64-3.4\Release\te
stcython.o build\temp.win-amd64-3.4\Release\testcython.def -LC:\Prog\Anaconda3\l
ibs -LC:\Prog\Anaconda3\PCbuild\amd64 -lpython34 -lmsvcr100 -o build\lib.win-amd
64-3.4\testcython.pyd
However, as soon as there is an import or a print statement in the .pyx file, the produced .pyd file makes Python crash. For example, if testcython.pyx contains
def say_hello():
print('Hello')
it gives
In [1]: import testcython # no crash here
In [2]: testcython.say_hello()
Hello
Here the "Python.exe has stopped working" window pops up and it's finished.
In that kind of situation (crash without error log, segmentation fault I suppose), what can I do to understand the problem?
Does anyone understand what happens here with Cython, Python 3 (Anaconda3) under Windows?
I am quite stuck and really need some help on this...
PS: This problem is specific to Python 3 (Anaconda) under Windows. No problem with Python 2.7 (Anaconda) under Windows and no problem with Python 3 (Anaconda) under Linux.
--
---
You received this message because you are subscribed to a topic in the Google Groups "cython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cython-users/VnbIV7UsFtA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cython-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.