Open leginonbot opened 7 months ago
Original Redmine Comment Author Name: Scott Stagg (Scott Stagg) Original Date: 2016-05-19T12:20:21Z
Ugh. Well, I guess matplotlib isn't going to work. I'm on vacation for a week, so Anchi can you just make the skip_summary_image option True all the time for now until I can figure out a better solution?
Original Redmine Comment Author Name: Anchi Cheng (@anchi2c) Original Date: 2016-05-19T12:21:47Z
r19778 is an workaround to avoid importing pyplot unless the image is produced and only make summary image when requested until it is properly fixed.
Enjoy the vacation
Original Redmine Comment Author Name: Anchi Cheng (@anchi2c) Original Date: 2016-05-19T12:46:44Z
apCtf.ctfdisplay would have the same problem. Will need a solution.
Original Redmine Comment Author Name: Anchi Cheng (@anchi2c) Original Date: 2016-05-19T17:31:18Z
Comment from Bill Rice
Looks like replace gtk_init with __gtk_init_check() should solve the problem:
from https://developer.gnome.org/gtk3/stable/gtk3-General.html#gtk-init-check
gtk_init_check (int argc,
char **argv);
This function does the same work as gtk_init() with only a single change: It does not terminate the program if the windowing system can’t be initialized. Instead it returns FALSE on failure.
This way the application can fall back to some other means of communication with the user - for example a curses or command line interface.
The main issue is that appionPBS.py runs on head node. so far the terminal never close, but Bill and future users will be doing remote log in and -X option does not allow nohup since it will lose the terminal. apCtf.ctfdisplay does not have this issue because it would be executed through the submitted job.
Original Redmine Comment Author Name: Neil Voss (@vosslab) Original Date: 2016-05-19T17:49:28Z
The only display ctfdisplay needs is matplotlib, I use the line:
from matplotlib import use
use('Agg')
from matplotlib import pyplot
to avoid the gtk requirement.
Author Name: Anchi Cheng (@anchi2c) Original Redmine Issue: 4188, https://emg.nysbc.org/redmine/issues/4188 Original Date: 2016-05-19 Original Assignee: Scott Stagg
Our alignment clussterm runs headless.
Running from command line without ssh -X gives