Menu

#894 'import pydot' reported as 'Unresolved import'

open
Editor (491)
5
2009-04-12
2009-04-11
No

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.

Discussion

  • Roman Dolgov

    Roman Dolgov - 2009-04-11
    • summary: import pydot report as 'Unresolved import' --> 'import pydot' reported as 'Unresolved import'
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-04-12
    • status: open --> pending
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-04-12

    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)

     
  • Roman Dolgov

    Roman Dolgov - 2009-04-12

    > 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)

     
  • Roman Dolgov

    Roman Dolgov - 2009-04-12
    • status: pending --> open
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.