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

Remove dependency on DISPLAY / X #254

Closed
mw55309 opened this issue May 26, 2017 · 4 comments
Closed

Remove dependency on DISPLAY / X #254

mw55309 opened this issue May 26, 2017 · 4 comments

Comments

@mw55309
Copy link

mw55309 commented May 26, 2017

So it turns out if you don't have X enabled / forwarded and $DISPLAY is not set, then nothing in sourmash works, even the functions that don't plan on plotting anything

@mw55309
Copy link
Author

mw55309 commented May 26, 2017

E.g.

~$ sourmash
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused

(sourmash:21985): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
Traceback (most recent call last):
File "/usr/local/bin/sourmash", line 9, in
load_entry_point('sourmash==1.0', 'console_scripts', 'sourmash')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2569, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2229, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2235, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python2.7/dist-packages/sourmash_lib/main.py", line 10, in
from sourmash_lib import fig as sourmash_fig
File "/usr/local/lib/python2.7/dist-packages/sourmash_lib/fig.py", line 8, in
import pylab
File "/usr/local/lib/python2.7/dist-packages/matplotlib-2.0.2-py2.7-linux-x86_64.egg/pylab.py", line 1, in
from matplotlib.pylab import *
File "/usr/local/lib/python2.7/dist-packages/matplotlib-2.0.2-py2.7-linux-x86_64.egg/matplotlib/pylab.py", line 257, in
from matplotlib import cbook, mlab, pyplot as plt
File "/usr/local/lib/python2.7/dist-packages/matplotlib-2.0.2-py2.7-linux-x86_64.egg/matplotlib/pyplot.py", line 115, in
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/usr/local/lib/python2.7/dist-packages/matplotlib-2.0.2-py2.7-linux-x86_64.egg/matplotlib/backends/init.py", line 32, in pylab_setup
globals(),locals(),[backend_name],0)
File "/usr/local/lib/python2.7/dist-packages/matplotlib-2.0.2-py2.7-linux-x86_64.egg/matplotlib/backends/backend_gtk3agg.py", line 11, in
from . import backend_gtk3
File "/usr/local/lib/python2.7/dist-packages/matplotlib-2.0.2-py2.7-linux-x86_64.egg/matplotlib/backends/backend_gtk3.py", line 54, in
cursors.MOVE : Gdk.Cursor.new(Gdk.CursorType.FLEUR),
TypeError: constructor returned NULL

@ctb
Copy link
Contributor

ctb commented May 26, 2017 via email

@ctb
Copy link
Contributor

ctb commented Feb 18, 2018

This seems to no longer be an issue with newer matplotlib, but we should add to known issues.

@ctb
Copy link
Contributor

ctb commented Feb 28, 2018

closed by #419.

@ctb ctb closed this as completed Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants