OpenBCI_Python: "NameError: global name 'Peripheral' is not defined"/ LINUX
Basically we are trying to connect our Ganglion device to python so we can build a real time application in python.
We have checked our device in Open_BCI GUI linux and its connecting properly.
we are trying to connect Ganglion device with OpenBCI_Python through linux using user.py but eventually ended up in a error named "NameError: name 'Peripheral' is not defined" in terminal . Can anyone help us to resolve it?
We have checked our device in Open_BCI GUI linux and its connecting properly.
we are trying to connect Ganglion device with OpenBCI_Python through linux using user.py but eventually ended up in a error named "NameError: name 'Peripheral' is not defined" in terminal . Can anyone help us to resolve it?
Specifications:
Ubuntu 18.04 LTS
Open_BCI Python downloaded and installed from github Link: (https://github.com/OpenBCI/OpenBCI_Python)
Installed all Requirements Link: (https://github.com/OpenBCI/OpenBCI_Python/blob/master/requirements.txt)
Python 3.6 and 2.7
Installed all Requirements Link: (https://github.com/OpenBCI/OpenBCI_Python/blob/master/requirements.txt)
Python 3.6 and 2.7
pip3 and 2
Error details:
Picture in link: https://ibb.co/cnE4Sf
(Avoid semi colon in end, simply copy till 'f' and paste in browser)
1. It seems it is related to bluepy.btle
2. Tested with root privileges.
Solution Tried:
1. Different version of python (i.e 2.7 version)
2. Installed package using pip2 as well.
3. Installed updated version of bluepy to test. link: (https://github.com/IanHarvey/bluepy)
1. Different version of python (i.e 2.7 version)
2. Installed package using pip2 as well.
3. Installed updated version of bluepy to test. link: (https://github.com/IanHarvey/bluepy)
4. Tested on different system i.e Ubuntu 16.04 LTS on different pc but encountered same error in the end.
Extra information:
1.Device mac address shows in Hci tool le scan.
1.Device mac address shows in Hci tool le scan.
2. Device works properly with windows.
Please suggest some solution to our problem or an alternate way to connect our Ganglion device with python for application building.
Comments
https://github.com/sccn/labstreaminglayer/wiki
Please tell me how to be sure that python external libraries are correctly loaded.
I am working with built-in version of python (2.7) right now and I am sure that this is not any hardware issue. I Installed all mentioned requirements with specified version and checked the code in Open BCI_Python Ganglion.py which exactly matches the code you provided through link.
Link to issue #87 that is already being opened.
Link to mine's issue https://github.com/OpenBCI/OpenBCI_Python/issues/103
Thanks @wjcroft
Stay in touch