Unresolved references with pythonnet
Hello!
I am struggling in using the pythonnet package (3.0.1) with pycharm 2022.3.1 (Community Edition) and python 3.10. I have had a look at a few example code snippets, while non of those worked. I always have the problem that pycharm does not correctly resolve the references of the package. Setting up new environments and even a complete fresh install of python and pycharm did not resolve this issue. Also trying to repair the IDE did not help.
Any suggestions what the issue is here?
Thanks,
Jens

Post is closed for comments.
Hello,
I have reported it as a bug, please vote for it in order to be notified about any updates.
https://youtrack.jetbrains.com/issue/PY-58809/Pythonnet-package-imports-are-not-resolved
I apologize for the inconvenience.
I have the same problem. I can run pythonnet from a terminal (outside of Pycharm) and it works perfectly but the install in Pycharm is using the wrong module (clr_loader). I've tried uninstalling and reinstalling clr and pythonnet in Pycharm but it always imports incorrectly. Looks like it's looking for style_builder.
Hi Gunterl0801, To have a single discussion thread, and in order for all engineers involved in the issue to see the comments, I suggest closing this thread and continuing the discussion in the YouTrack issue PY-58809. If you have any new information related to the case, please add the comment there.
To find out more about using YouTrack, please see https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications