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
This works fine in Cygwin (cython/cython3 0.25) but fails in Windows (cython 0.29) with a Type Error:
File "C:\Python37\lib\site-packages\Cython\Compiler\Nodes.py", line 499, in analyse_declarations
env.add_include_file(self.include_file, self.verbatim_include, late)
TypeError: add_include_file() takes 2 positional arguments but 4 were given
The reason seems to be that in Compiler/Symtab.py, the signature of ModuleScope::add_include_file has been enhanced to 4 arguments:
I use a statement similar to
in my .pyx file.
This works fine in Cygwin (cython/cython3 0.25) but fails in Windows (cython 0.29) with a Type Error:
The reason seems to be that in Compiler/Symtab.py, the signature of ModuleScope::add_include_file has been enhanced to 4 arguments:
cython/Cython/Compiler/Symtab.py
Line 1298 in 3bc22a9
Unfortunately, Scope::add_include_file has not been adapted properly:
cython/Cython/Compiler/Symtab.py
Line 972 in 3bc22a9
As soon as I modify Scope::add_include_file to just forward the new arguments, everything is working again.
The text was updated successfully, but these errors were encountered: