failed to load *.pyd package

Answered

Hello,

I have been in this issue for days with no luck. I am using a code for running webots robotics controller from PyCharm . I carried  all the steps and created a configuration file as in below:

 

I added the required folder as the root source folder and checked to add it to PYTHONATH

The controller.py is recognized. However, it keeps reporting that _controller.pyd was not found although it is located in the same folder.

 

On the controller.py, although it is shown in auto-completion,  the error still occurs.

 

The software author reported it works on his machine as posted here . All help is appreciated.

 

Note that I don't feel confident that adding it to the path is a solution as PYTHONPATH should be enough to recognize it if not mistaken. However, it is still a problem that _controller.pyd is not detected.

 

 

0
2 comments

Hi, do you get ImportError running epuck_go_forward.py in the terminal?

Speaking of the unresolved reference - PyCharm cannot inspect `pyd` files with the static analyzer so it builds skeletons for any `pyd` file found in sys.path. Therefore make sure `python37` is present in the interpreter paths and do File | Invalidate Caches & Restart.

0
Avatar
Permanently deleted user

Hello,

I have similar issue. I have put *.pyd libs to interpreter path. I did "Invalidate Caches" but pycharm show "No module name XXX". I also check that python console load pyd modules.

*.pyd modules are from the same python release what my interpreter.

I see that pycharm index paths to *.pyd files, also see in some few seconds is trying to generate skeltons for that *.pyd but nothing bo be generated in "Binary Skeletons".

I've tried on different release of pycharm (Community: 2021.2.2/2019.3.5/2018.3.7 and Proffesional 2021.2.2).

Can I try to run generating skeletons separetly foreach *.pyd lib\file?

Are there exists some tool for creating stub\skeletons for *.pyd files?

0

Please sign in to leave a comment.