thoughtspot / cs_tools

Scale your ThoughtSpot adoption with tools created by the ThoughtSpot Solutions Consulting organization.
https://thoughtspot.github.io/cs_tools/
Other
8 stars 6 forks source link

Please make sure that you have an X server running #61

Closed boonhapus closed 1 year ago

boonhapus commented 1 year ago
root@dummyserv:~$ cs_tools --version
Traceback (most recent call last):
  File "/tmp/dummyserv/.config/cs_tools/.cs_tools/bin/cs_tools", line 8, in <module>
    sys.exit(run())
ImportError: this platform is not supported: ('failed to acquire X connection: Bad display name ""', DisplayNameError(''))

Try one of the following resolutions:

 * Please make sure that you have an X server running, and that the DISPLAY environment variable is set correctly

pynput causes this.

We need to evaluate another library as roughly 25% of our Users are on Linux.

boonhapus commented 1 year ago

This can also manifest itself as Could not build wheels for evdev, which is required to install pyproject.toml-based projects

         | evdev/input.c:10:10: fatal error: Python.h: No such file or directory
         | #include <Python.h>
         | ^~~~~~~~~~
         | compilation terminated.
         | error: command '/usr/bin/gcc' failed with exit code 1
         | [end of output]
         | note: This error originates from a subprocess, and is likely not a problem with pip.
         | Failed building wheel for evdev
         | Building wheel for grpclib (pyproject.toml): started
15:22:35 | Building wheel for grpclib (pyproject.toml): finished with status 'done'
         | Created wheel for grpclib: filename=grpclib-0.4.4-py3-none-any.whl size=77136 sha256=55dcce2d3b00df58b1707ade4231ca6c19d8559d2f5ee13ca9e9a74e96b8ad97
         | Stored in directory: /tmp/pip-ephem-wheel-cache-rooece1n/wheels/64/22/ad/0d7c4059a15a9108a85d1ce827b396b17d41624e8a54553fd0
         | Successfully built cs_tools horde grpclib
         | Failed to build evdev
         | Could not build wheels for evdev, which is required to install pyproject.toml-based projects

Again, pynput causes this, as it relies on evdev which in turn needs python development headers.

The resolution here is to install python-devel, but we'll be moving off of this pynput package asap.

All it provides us is keyboard interactivity.

boonhapus commented 1 year ago

This should be solved as part of v1.4.4 .. so long 👋 pynput