BillBillBillBill / Tickeys-linux

Instant audio feedback when typing. For Linux.
https://pypi.python.org/pypi/tickeys
MIT License
277 stars 41 forks source link

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused #30

Open john-x opened 7 years ago

john-x commented 7 years ago

I've been having some difficulty running Tickeys on BunsenLabs Linux (Debian 8 based distro). When I run 'sudo tickeys' I get this error:

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

No available audio device

Full output:

Root checking...                                                                                                              [16/1923]
Root checking success. You have the root permission
System checking...
System checking success. Your system is supported
[INFO              ] [Logger      ] Record log in /root/.kivy/logs/kivy_17-08-13_7.txt
[INFO              ] [Kivy        ] v1.9.0
[INFO              ] [Python      ] v2.7.9 (default, Jun 29 2016, 13:08:31) 
[GCC 4.9.2]
[INFO              ] [Factory     ] 173 symbols loaded
[INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_pygame, img_pil (img_ffpyplayer ignored)
[INFO              ] [Text        ] Provider: pygame
[INFO              ] [Window      ] Provider: pygame(['window_egl_rpi'] ignored)
libpng warning: iCCP: known incorrect sRGB profile
[WARNING           ] [WinPygame   ] Video: failed (multisamples=2)
[WARNING           ] [WinPygame   ] trying without antialiasing
[INFO              ] [GL          ] OpenGL version <2.1 Mesa 10.3.2>
[INFO              ] [GL          ] OpenGL vendor <Intel Open Source Technology Center>
[INFO              ] [GL          ] OpenGL renderer <Mesa DRI Mobile Intel® GM45 Express Chipset >
[INFO              ] [GL          ] OpenGL parsed version: 2, 1
[INFO              ] [GL          ] Shading version <1.20>
[INFO              ] [GL          ] Texture max size <8192>
[INFO              ] [GL          ] Texture max units <16>
[INFO              ] [Window      ] virtual keyboard not allowed, single mode, not docked
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

No available audio device
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tickeys/run.py", line 17, in run_GUI
    TickeysApp().run()
  File "/usr/local/lib/python2.7/dist-packages/kivy/app.py", line 798, in run
    root = self.build()
  File "/usr/local/lib/python2.7/dist-packages/tickeys/GUI.py", line 359, in build
    root = Main()
  File "/usr/local/lib/python2.7/dist-packages/tickeys/GUI.py", line 341, in __init__
    self.detecter = KeyboardHandler()
  File "/usr/local/lib/python2.7/dist-packages/tickeys/keyboardHandler.py", line 28, in __init__
    self.sp = SoundPlayer()
  File "/usr/local/lib/python2.7/dist-packages/tickeys/soundPlayer.py", line 20, in __init__
    self.mixer.init(frequency=22050)
error: No available audio device
Run GUI Fail, reason: