Spacemacs q-mode: Interactive Q-Shell not responding, only echoes

Anyone using q-mode for Spacemacs?   I am running Emacs 24.5.1 with Spacemacs in the terminal mode on the Ubuntu server.

Pressing SPC SPC q launches inferior q shell and I am getting the message in the minibuffer:

Starting q with the following command: “q”

However the Q-Shell buffer that opens does not show the input prompt q) Instead, writing any command in the buffer will just echo back without executing:

Things like C-c C-l for q-eval-line or C-c C-f for q-eval-function from Q-Script buffer pastes the string to Q-Shell buffer and then echoes that string again (like on the picture), but no response or evaluation from the q process.  

I am new to elisp and Emacs, so any pointers where to start investigating are much appreciated.

though it wasn’t written with spacemacs in mind, i know of a few others who are using q-mode.el with spacemacs.  it also seems to work fine for me (see below). i would have expected any errors you experienced to be printed in the *q-localhost* buffer.  for example, if i remove q from my path i get:

/bin/bash: q: command not found

Process q exited abnormally with code 127 at Wed May 10 23:54:13 2017

make sure you have ‘q’ in your path and the QHOME environment variable set before starting emacs. alternatively, you can customize the variable ‘inferior-q-program-name’ to be the full path to your q binary.

yeah, i use it both on mac and linux and it’s great

p.s. that project euler solution can be simpler

q)sum where any not til[1000]mod/:3 5

233168