networkx problem

33 views
Skip to first unread message

William Martinez

unread,
May 6, 2021, 4:31:41 AM5/6/21
to opengm

Hello,
I'm running Python 2 in Ubuntu and have encountered a problem with opengm around networkx which I understood was only for Python 3..?

Here's the bugged line:
Any suggestions?

  File "pgm01.py", line 18, in <module>
    opengm.visualizeGm(gm,plotFunctions=False,plotNonShared=True,relNodeSize=0.9)
  File "/usr/lib/python2.7/dist-packages/opengm/_visu.py", line 37, in visualizeGm
    raise TypeError("\"import networkx as nx\" failed")    
TypeError: "import networkx as nx" failed

Reply all
Reply to author
Forward
0 new messages