-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows 10 compability issues #1
Comments
Hi @nkaenzig , thanks for the report! Can you try to run The rationale would be that the C file generated by Cython on my local machine might only be working on Unix like systems. I didn't want to include cython as a dependency, but we might have to. |
Hi @dbousque, thanks for the quick response. Running Running
Let me know how I can help to resolve that issue. Never worked with cython before.. |
Ok apparently it would be an issue with Cython/MinGW interop: cython/cython#2670 (comment). Try to run If everything is ok, running Let me know if I can help. |
Just tried out I've been googling the error as well, and as you did the only response I could find was the -DMS_WIN64 option.. Do you have an idea of something else we could try?
|
Just found this stackoverflow post, which might be relevant: |
Yep, you could try |
Already tried both options -DSIZEOF_VOID_P=8 and -DSIZEOF_VOID_P=4, doesn't work either :( |
Ah, I just saw that it looks like ext_modules=cythonize([Extension('batch_jaro_winkler', ['cbatch_jaro_winkler.pyx'])], language_level=python_version) with: ext_modules=cythonize([Extension('batch_jaro_winkler', ['cbatch_jaro_winkler.pyx'], define_macros=[('SIZEOF_VOID_P', '8'), ('MS_WIN64', '1')])], language_level=python_version) Additionally, try to clean the environment before/after each try, like we do in |
Just tried that out, unfortunately still getting that same error |
I tried to debug for MinGW on my Windows machine but it's a mess. The default Windows C compiler fails for another reason (can't find the size of If that works for you, you could go with "Ubuntu for Windows". Or if you really need to get this library working on Windows, things may work well if you go for a standard combination of Python version + MSVC version + standard terminal and PATH setup etc. (whatever that may be) like mentioned in the link from the official CPython website. |
I see, thanks a lot for looking into it. For now I will run it in WSL. |
Thanks for the report and investigation efforts, have a nice day! |
Hi. I have a similar problem on Mac OS. |
On Linux Ubuntu the module works perfectly, however when trying to install it on a windows 10 machine with anaconda (python 3.8.5), I get a C compiler error:
I installed the GCC compiler suite on windows using MinGW, following these instructions:
https://cython.readthedocs.io/en/latest/src/tutorial/appendix.html
Do you have an idea how we could achieve compability for windows?
Here is the full output i currently get on pip install:
The text was updated successfully, but these errors were encountered: