alexozer / flitter

A LiveSplit-inspired speedrunning split timer for Linux/macOS terminal. Supports global hotkeys.
MIT License
132 stars 11 forks source link

Exception when running example splits: Failure "Hotkeys stream exited unexpectedly" #12

Closed cassidoxa closed 5 years ago

cassidoxa commented 5 years ago

I've successfully built flitter but when I try to run flitter splits.scm with the example, I see the timer as it's shown in the screenshot for just a moment then get the following error:

Uncaught exception:

  (Failure "Hotkeys stream exited unexpectedly")

Raised at file "src/event_loop.ml", line 169, characters 4-241
Re-raised at file "src/core/lwt.ml", line 2987, characters 20-29
Called from file "src/unix/lwt_main.ml", line 26, characters 8-18
Called from file "bin/main.ml", line 1, characters 9-23

I ran opam list and lwt is the latest version, 4.1.0. Also using opam 2.0.0 and ocaml 4.07.0 but on debian 9 stable. I installed opam manually from the unstable repo.

alexozer commented 5 years ago

Have you installed pynput like this?

$ pip3 install --user pynput

If so, could you tell me what happens when you run this?

$ echo 'import pynput' | /usr/bin/env python3
cassidoxa commented 5 years ago

That was the problem, thanks. I had Anaconda python in my path rather than the system's python so it couldn't find pynput. Simply had to remove it from my path and flitter works as intended.

alexozer commented 5 years ago

Great, glad to hear!