Skip to content

catch runtimeerror for pylab import (migrated from Trac #330) #327

Closed

Description

@networkx-trac

Original ticket https://networkx.lanl.gov/trac/ticket/330
Reported 2010-03-23 by @dschult, assigned to @dschult.

There are a number of imports of pylab in drawing/nx_pylab.py
They explicitly except/pass a RunTimeError while importing pylab.
I see that Scipy put in a check for this with a reasonable error message.

Passing the exception leads to spurious error messages later on when
the pylab module is used. It looks like the exception should be raised
rather than excepted.

Activity

  1. networkx-trac commented on Jul 20, 2012

    @networkx-trac
    Author

    Comment in Trac by @dschult, 2010-03-24

    (In [1595]) Catch RunTimeError when importing matplotlib/pylab
    and give reasonable error message.

    Fixes #330

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions