riptano / ccm

A script to easily create and destroy an Apache Cassandra cluster on localhost
Apache License 2.0
1.22k stars 303 forks source link

WSL Error - from ccsm #700

Closed shanoaice closed 5 years ago

shanoaice commented 5 years ago

When I attempt to open the ccsm I got an error

/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
Traceback (most recent call last):
  File "/usr/bin/ccsm", line 94, in <module>
    import ccm
  File "/usr/lib/python2.7/dist-packages/ccm/__init__.py", line 1, in <module>
    from ccm.Conflicts import *
  File "/usr/lib/python2.7/dist-packages/ccm/Conflicts.py", line 26, in <module>
    from ccm.Constants import *
  File "/usr/lib/python2.7/dist-packages/ccm/Constants.py", line 30, in <module>
    CurrentScreenNum = gtk.gdk.display_get_default().get_default_screen().get_number()
AttributeError: 'NoneType' object has no attribute 'get_default_screen'

Operating System: Ubuntu 18.04 - Windows Subsystem for Linux

shanoaice commented 5 years ago

Seems like ccm made this error

shanoaice commented 5 years ago

I have a guess about what happened, let me find out.

shanoaice commented 5 years ago

OK, It's just because I forgot to set DISPLAY enviroment variable