cimport results in unresolved reference

Pycharm reports unresolved reference when using cimpoirt though it is valid code. How can I solve it?

1

Hi, could you please provide a zip of this project sample, including your setup.py, so I could reproduce the issue?

0

Hi, it seems only image files are accepted so please refere following images instead. 

 

Pycharm version : 2021.3.3 

python version: 3.10.4

OS: WSL2 Ubuntu 20.04.4 LTS

 

src/hello/foo.pyx

src/hello/foo.pxd

 

src/hello/__init__.py

 

src/__init__.py

 

src/main.pyx

 

setup.py

0

Thank you, I believe you have found a bug. I reported it as https://youtrack.jetbrains.com/issue/PY-55195/Unresolved-from-imports-in-Cython

Please follow the issue for updates, feel free to vote and comment, and let us know if you need any help. If you're not familiar with YouTrack, please see https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications 

0

请先登录再写评论。