Cython pyd module in PyCharm CE

Answered

Hello

I am currently using PyCharm 2018.1.5 CE and I tried coding Cython in CE though it does not support Cython.

Everything worked fine including a building process but PyCharm does not recognize the generated xx.pyd file as a module.

It shows a red underscore on the import statement warning 'No module named xx.'

But it runs without any error and behaves as it has to.

I just want to suppress the faulty underscore and enable autocomplete for the pyd library. Is there a solution to this?

I attached the screenshot. Thank you.

 

0
2 comments

Hi, as you wrote yourself - CE does not support Cython, it can't introspect Cython code so no completion is possible. You can suppress import errors by Alt+Enter | Ignore unresolved reference.

0
Avatar
Permanently deleted user

oh...

0

Please sign in to leave a comment.