OpenBCI_Python: "NameError: global name 'Peripheral' is not defined"/ LINUX

alirazaaliraza Islamabad
edited November 2018 in Ganglion
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? 

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 
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)
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.
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

Sign In or Register to comment.