Python: Importing an .so file

Hey all -

I'm at the tail end of my IntelliJ trial. It works pretty well for both Python and Javascript, but I'm running into an issue with a legacy project.

A barebones replication of my issue can would be with the following project structure:
/myProject/ is compiled c with Python.h (see is simply the following:

I am able to run via the command-line and IntelliJ (Shift+F10). My issue is that the line 'import myExtension' is marked with the error 'no module named myExtension'. I've tried invalidating caches and restarting (out of desperation). Is there any way I can get Intellij to recognize this c extension module?


Original message URL:

1 comment
Comment actions Permalink

This is a duplicate post and should be deleted. Sorry!


Please sign in to leave a comment.