Skip to content

Debug on your personal computer

Ana Sofia Carmo edited this page Jun 27, 2023 · 11 revisions

Debug PyEpiBOX on your personal computer

In order to debug the code on your personal computer, you'll still have to connect to the PreEpiSeizures WIFI (hosted by EpiBOX Core) but you'll also have to stop the PyEpiBOX running on EpiBOX Core. Here's how:

How to stop PyEpiBOX from running on EpiBOX Core

  1. On you terminal, open a connection to EpiBOX Core: ssh [email protected]

  2. Input the password preepiseizures

  3. Type the following and input the same password: systemctl stop epibox

  4. You should get the output ==== AUTHENTICATION COMPLETE ===

Debug the code

  1. Clone or fork the repository

  2. Create an environment (e.g. using conda or venv) and activate it

  3. Install the local version of PyEpiBOX: pip install -e .

  4. Run: python -m epibox

WARNING

If you get an incompatibility warning after making a change in your code, you'll have to bump up the code version by running:

bump

Alternatively, you can run:

pip uninstall epibox

pip install -e .

error: subprocess-exited-with-error

How to deal with the following error when installing pybluez2:

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [8 lines of output] running egg_info creating C:\Users\anaso\AppData\Local\Temp\pip-pip-egg-info-zpfr7njx\pybluez2.egg-info writing C:\Users\anaso\AppData\Local\Temp\pip-pip-egg-info-zpfr7njx\pybluez2.egg-info\PKG-INFO writing dependency_links to C:\Users\anaso\AppData\Local\Temp\pip-pip-egg-info-zpfr7njx\pybluez2.egg-info\dependency_links.txt writing eager_resources to C:\Users\anaso\AppData\Local\Temp\pip-pip-egg-info-zpfr7njx\pybluez2.egg-info\eager_resources.txt writing top-level names to C:\Users\anaso\AppData\Local\Temp\pip-pip-egg-info-zpfr7njx\pybluez2.egg-info\top_level.txt writing manifest file 'C:\Users\anaso\AppData\Local\Temp\pip-pip-egg-info-zpfr7njx\pybluez2.egg-info\SOURCES.txt' error: package directory 'bluetooth\windows' does not exist [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

Downgrade to python 3.9