'import pydot' reported as 'Unresolved import'
Brought to you by:
fabioz
Create a script:
import pydot
edges=[("1","2"), ("1","3"), ("1","4"), ("3","4")]
g=pydot.graph_from_edges(edges)
g.write_jpeg('graph_from_edges_dot.jpg', prog='dot')
Observe that "import pydot" reported as error "Unresolved import". But script can run without any problems.
You have that error from the pydev extensions code-analysis or pylint? What's the pythonpath you're using? (if you added pydot and didn't reconfigure the interpreter pythonpath, those errors would be expected)
> You have that error from the pydev extensions code-analysis or pylint?
code-analysis.
> What's the pythonpath you're using? (if you added pydot and didn't
reconfigure the interpreter pythonpath, those errors would be expected)
Looking into Preferences->PyDev->Interpreter-Python->Libaries
I see that pydot-1.xxx.egg is included.
(I did remove interpreter and added it back after installing pydot to make sure that new lib is picked up)