Giter Site home page Giter Site logo

jacob-winch / nathacks_2022_python_boiler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neuralbertatech/nathacks_2022_python_boiler

0.0 0.0 0.0 7.62 MB

This is a python application to be used as a starting point for projects in natHacks 2022. It lets you connect to your EEG hardware, record data, and run tasks. Good luck in the hackathon!

C++ 0.16% Python 88.11% C 0.76% PureBasic 8.64% Jupyter Notebook 2.33%

nathacks_2022_python_boiler's Introduction

NATHacks 2022 - Python Boiler

This is a collection of tools created to help jumpstart users on working with BCI hardware.

Installation

Requirements

  • Python 3.9 or above
  • virtualenv
  • All requirements within requirements.txt (refer to above for installation)

From Source

Clone the repository:

git clone https://github.com/neuralbertatech/natHACKS_2022_Python_Boiler
cd natHACKS_2022_Python_Boiler

Create a virtual environment to install the dependencies:

python -m venv <Environment-Name>  # For example  $ python -m venv python_boiler

Activate the virtual environment and install the dependencies (Platform-Specific):

Linux / MacOS (??????)

./<Environment-Name>/Scripts/activate  # ./python_boiler/Scripts/activate
pip install -r requirements.txt

Windows (Powershell)

./<Environment-Name>/Scripts/Activate.ps1
pip install -r requirements.txt

Getting Started

Now to get started simply run:

./main_menu.py
# or
python ./main_menu.py

Known Issues

AttributeError from 'serial'

$ python .\main_menu.py
Logger: MenuWindow: INFO at: 2022-07-04 21:16:35,431, line 90: Program started at 1656990995.4310365
INFO:MenuWindow:Program started at 1656990995.4310365
Logger: GraphWindow: INFO at: 2022-07-04 21:16:35,457, line 28: Program started at 1656990995.4570363
INFO:GraphWindow:Program started at 1656990995.4570363
Traceback (most recent call last):
  File ".\natHACKS_2022_Python_Boiler\test_python_boiler\lib\site-packages\pygatt\backends\bgapi\bgapi.py", line 32, in <module>
    import termios
ModuleNotFoundError: No module named 'termios'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".\natHACKS_2022_Python_Boiler\main_menu.py", line 104, in <module>
    from arduino_windows import ard_wind_on as ard_turn_on
  File .\natHACKS_2022_Python_Boiler\arduino_windows.py", line 4, in <module>
    import pygatt
  File ".\natHACKS_2022_Python_Boiler\test_python_boiler\lib\site-packages\pygatt\__init__.py", line 14, in <module>
    from .backends import BGAPIBackend, GATTToolBackend, BLEAddressType  # noqa
  File ".\natHACKS_2022_Python_Boiler\test_python_boiler\lib\site-packages\pygatt\backends\__init__.py", line 2, in <module>
    from .bgapi.bgapi import BGAPIBackend  # noqa
  File ".\natHACKS_2022_Python_Boiler\test_python_boiler\lib\site-packages\pygatt\backends\bgapi\bgapi.py", line 36, in <module>
    BGAPIError, serial.serialutil.SerialException)
AttributeError: module 'serial' has no attribute 'serialutil'

This issue occures when you have both serial and pyserial installed on your machine. To resolve run:

# Remove old serial libraries
pip uninstall serial
pip uninstall pyserial

# Install a fresh version of pyserial
pip install pyserial

nathacks_2022_python_boiler's People

Contributors

psaunderualberta avatar existentialist-robot avatar zacharyselk avatar madeleine36 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.