Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Dec 2020 03:31:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 252297] Issue with using py37-networkx and py37-matplotlib
Message-ID:  <bug-252297-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252297

            Bug ID: 252297
           Summary: Issue with using py37-networkx and py37-matplotlib
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: jeremy@coyotetrackz.com

I've been have an issue with python3 scripts using the networkx and matplot=
lib
libraries. An example python3 script is as follows:

#! /usr/bin/env python3

import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import networkx as nx

if __name__ =3D=3D '__main__':

        vertices =3D range(1, 10)
        edges =3D [(7,2), (2,3), (7,4), (4,5), (7,3), (1,6), (1,7), (2,8), =
(2,9)]

        G =3D nx.Graph()
        G.add_nodes_from(vertices)
        G.add_edges_from(edges)

        nx.draw(G)
        plt.savefig("node.png")


When the script get's to: nx.draw(G), the following error message is displa=
yed:

Traceback (most recent call last):
  File "./05_imaging.py", line 17, in <module>
    nx.draw(G)
  File "/usr/local/lib/python3.7/site-packages/networkx/drawing/nx_pylab.py=
",
line 126, in draw
    draw_networkx(G, pos=3Dpos, ax=3Dax, **kwds)
  File "/usr/local/lib/python3.7/site-packages/networkx/drawing/nx_pylab.py=
",
line 278, in draw_networkx
    edge_collection =3D draw_networkx_edges(G, pos, arrows=3Darrows, **kwds)
  File "/usr/local/lib/python3.7/site-packages/networkx/drawing/nx_pylab.py=
",
line 563, in draw_networkx_edges
    if not cb.iterable(width):
AttributeError: module 'matplotlib.cbook' has no attribute 'iterable'


>From looking into the issue, it seems that this is an issue of
'matplotli.cbook' being deprecated since version 3.0 of matplotlib ... but =
it
is still being referenced in the current version of py37-networkx.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252297-7788>