[miso-users] sashimi matplotlib complaint about DISPLAY environment variable -- fix import

Sol Katzman solkatzman at sbcglobal.net
Mon Dec 3 21:08:01 EST 2012


Dear Yarden,

I was getting crashes when trying to run sashimi on cluster nodes that have no display.

The problem was that the initializing call to matplotlib was failing because of no
DISPLAY environment variable. Or, the inability to connect to the $DISPLAY if I
tried to set one.

A local matplotlib guru gave me the fix, which is to tell matplotlib to "use a different backend."

WAS:
import matplotlib

IS:
import matplotlib
matplotlib.use('Agg')


Please consider changing Sashimi.py in the next release to incorporate this fix.

Thanks,
/Sol.


More information about the miso-users mailing list