Brainflow AttributeError's

edited August 2020 in Software

I’m trying to get connected to my Cyton via BrainFlow from the command line. I’ve been following the code samples however when I try to run the basic example I get the following:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/brainflow/board_shim.py", line 387, in init
    self.input_json = input_params.to_json ().encode ()
AttributeError: 'str' object has no attribute 'to_json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/Tyler/Documents/GetData.py", line 45, in
    main ()
  File "/Users/Tyler/Documents/GetData.py", line 22, in main
    board = brainflow.board_shim.BoardShim (0, '/dev/tty.usbserial-3')
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/brainflow/board_shim.py", line 389, in init
    self.input_json = input_params.to_json ()
AttributeError: 'str' object has no attribute 'to_json'

Programming is not my strong suit, so any help would be appreciated.

Comments

Sign In or Register to comment.