You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I'm currently on step 8 of Writing pre-recorded data from HDD to the buffer (https://github.com/eegsynth/eegsynth/blob/master/doc/tutorial1.md) and I keep getting the same error, "Cannot connect to redis server" although redis server is open and working.
Any clue?
hal-9000:~ mariana$ redis-cli ping
PONG
hal-9000:~ mariana$ cd eegsynth/module/playbacksignal
hal-9000:playbacksignal mariana$ ls
README.md dump.rdb playbacksignal.ini playbacksignal.py
hal-9000:playbacksignal mariana$ python3 playbacksignal.py -i ../../inifiles/playbacksignal.ini
File "playbacksignal.py", line 57
print "Error: cannot connect to redis server"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Error: cannot connect to redis server")?
The text was updated successfully, but these errors were encountered:
Hi,
It seems you are attempting to run the eegsynth from Python 3.
The "missing parentheses" error is a change between Python 2 and Python 3;
in Python 2, the syntax :
print "whatever"
was still acceptable while in python 3 you have to write :
print("whatever")
The reason behind the eegsynth being written for Python 2 is for
compatibility with Raspberry Pi, if I'm correct.
I would suggest running a virtual environment (for example, using
miniconda) under python 2 when you need to run the EEGSYNTH.
https://conda.io/docs/user-guide/tasks/manage-environments.html
Cheers
Nicolas
On Thu, Oct 18, 2018 at 6:37 PM mercuriaretrograda ***@***.***> wrote:
Hello!
I'm currently on step 8 of *Writing pre-recorded data from HDD to the
buffer* (https://github.com/eegsynth/eegsynth/blob/master/doc/tutorial1.md)
and I keep getting the same error, "Cannot connect to redis server"
although redis server is open and working.
Any clue?
hal-9000:~ mariana$ redis-cli ping
PONG
hal-9000:~ mariana$ cd eegsynth/module/playbacksignal
hal-9000:playbacksignal mariana$ ls
README.md dump.rdb playbacksignal.ini playbacksignal.py
hal-9000:playbacksignal mariana$ python3 playbacksignal.py -i
../../inifiles/playbacksignal.ini
File "playbacksignal.py", line 57
print "Error: cannot connect to redis server"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean
print("Error: cannot connect to redis server")?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#249>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACgk8cUkIcQonqyR5DQ3tQXZ-0U7bv5kks5umK40gaJpZM4Xt009>
.
Hello!
I'm currently on step 8 of Writing pre-recorded data from HDD to the buffer (https://github.com/eegsynth/eegsynth/blob/master/doc/tutorial1.md) and I keep getting the same error, "Cannot connect to redis server" although redis server is open and working.
Any clue?
hal-9000:~ mariana$ redis-cli ping
PONG
hal-9000:~ mariana$ cd eegsynth/module/playbacksignal
hal-9000:playbacksignal mariana$ ls
README.md dump.rdb playbacksignal.ini playbacksignal.py
hal-9000:playbacksignal mariana$ python3 playbacksignal.py -i ../../inifiles/playbacksignal.ini
File "playbacksignal.py", line 57
print "Error: cannot connect to redis server"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Error: cannot connect to redis server")?
The text was updated successfully, but these errors were encountered: