Autocomplete in PyCharm for Python compiled extensions -


when writing python code using compiled extensions (the opencv python bindings, example), pycharm doesn't seem aware of availability. imports marked grey underline, saying "unresolved reference" tooltip, , autocomplete doesn't work, either. (except function names used in code.)

this isn't caused wrong module paths, code runs without error when started. also, after import modules in python shell, autocomplete starts working expected.

is there solution or architectural limitation compiled extensions? there other ides manage cope problem?

the imports marked grey underline, saying "unresolved reference" tooltip

this means pycharm can't see module import. in editing mode, pycharm relies on availability of python sources of imported modules. if module not written in python c extension module, pycharm generates 'skeleton' contains function prototypes, , uses completion.

in shell mode, pycharm uses live imported objects completion, different results.

make sure opencv installation visible python interpreter chose project (file / settings / python interpreter). if interpreter correct, try removing , re-adding (this time-consuming bit, sorry).

if nothing helps, file bug.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -