Pydev: undefined variable error when importing compiled modules

I want to switch my python-IDE from idle to pydev (eclipse). I use a couple of modules that I have as compiled bytecode (* .pyc). In standby mode, this has never been a problem, and even offers code for these compiled modules. But pydev gives me a lot of "undefined variable" errors, however the code is interpreted correctly.

Is there a way pydev can handle bytecode modules, how does idle time do this? Perhaps without decompiling files?

+3
source share
1 answer

Try adding modules as forced built-in .

→ PyDev → - (Python/Jython/IronPython approriate), Forced Builtins ( ).

( , , , Fabric, fabric, fabric.api)

PyDev , , .

.pyc, , -, script __init__.py - (.. ), .

(. FAQ PyDev)

+1

Source: https://habr.com/ru/post/1789692/


All Articles