Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Invalid DISPLAY variable #1

Open
cmagness opened this issue Oct 26, 2018 · 2 comments
Open

RuntimeError: Invalid DISPLAY variable #1

cmagness opened this issue Oct 26, 2018 · 2 comments
Assignees
Labels

Comments

@cmagness
Copy link
Collaborator

monitors side of things crashes when trying to produce plots

full traceback:

Traceback (most recent call last):
File "/user/cmagness/miniconda3_linux/envs/monitors/bin/cm_monitors", line 11, in
load_entry_point('cosmo-peewee==0.0.1', 'console_scripts', 'cm_monitors')()
File "/user/cmagness/miniconda3_linux/envs/monitors/lib/python2.7/site-packages/cosmo_peewee-0.0.1-py2.7.egg/cosmo_peewee/database/ingest.py", line 764, in run_monitors
osm_monitor()
File "/user/cmagness/miniconda3_linux/envs/monitors/lib/python2.7/site-packages/cosmo_peewee-0.0.1-py2.7.egg/cosmo_peewee/osm/monitor.py", line 1746, in monitor
make_plots(flash_data, rawacq_data, monitor_dir)
File "/user/cmagness/miniconda3_linux/envs/monitors/lib/python2.7/site-packages/cosmo_peewee-0.0.1-py2.7.egg/cosmo_peewee/osm/monitor.py", line 783, in make_plots
fig = plt.figure(figsize=(16,8))
File "/user/cmagness/miniconda3_linux/envs/monitors/lib/python2.7/site-packages/matplotlib/pyplot.py", line 548, in figure
**kwargs)
File "/user/cmagness/miniconda3_linux/envs/monitors/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 161, in new_figure_manager
return cls.new_figure_manager_given_figure(num, fig)
File "/user/cmagness/miniconda3_linux/envs/monitors/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 167, in new_figure_manager_given_figure
canvas = cls.FigureCanvas(figure)
File "/user/cmagness/miniconda3_linux/envs/monitors/lib/python2.7/site-packages/matplotlib/backends/backend_qt5agg.py", line 24, in init
super(FigureCanvasQTAgg, self).init(figure=figure)
File "/user/cmagness/miniconda3_linux/envs/monitors/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 234, in init
_create_qApp()
File "/user/cmagness/miniconda3_linux/envs/monitors/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 125, in _create_qApp
raise RuntimeError('Invalid DISPLAY variable')
RuntimeError: Invalid DISPLAY variable

@cmagness cmagness added the bug label Oct 26, 2018
@cmagness cmagness self-assigned this Oct 26, 2018
@cmagness
Copy link
Collaborator Author

this was resolved by some changes mees made to the plotting algorithm

@cmagness
Copy link
Collaborator Author

cmagness commented Feb 1, 2019

this actually was not resolved by a different version of the code, but was resolved by running the code outside of a cron job. something about the servers is making this crash. needs further investigating.

@cmagness cmagness reopened this Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant