I have always been able to cythonize code on my Windows 7 (64-bit) machine with Python 2.7. However of late I am getting following error
error: \Intel\iCLS was unexpected at this time.
A search on this topic suggests issues with spaces and other such characters in bat scripts. However this occurs for the very basic hello world example as well which I tried to cythonize as below:
[cmd_prompt] C:\MyScripts\Python\Cython\hello_world>python setup.py build_ext --inplace
Compiling helloworld.py because it changed.
[1/1] Cythonizing helloworld.py
running build_ext
building 'helloworld' extension
error: \Intel\iCLS was unexpected at this time.
Updating to cython 0.24 did not help.
[Update 1]: I found that I can cythonize the code using cython -a helloworld.py
. So I am guessing it's the use of distutils to cythonize that has this issue. Also I compared the .c files that was generated by the successful cythonize with the one that failed and found that they only differ in the beginning. The failed version has this at the top
/* BEGIN: Cython Metadata
{
"distutils": {}
}
END: Cython Metadata */
I would appreciate any insights on how to resolve this issue?