bioelectric-interfaces / nfb

Build experiments in real-time EEG-MEG paradigm.
https://bioelectric-interfaces.github.io/nfb/
32 stars 24 forks source link

Command pynfb not running NFB Lab after installation #69

Open damienbalay opened 2 years ago

damienbalay commented 2 years ago

Hello, when using the command pynfb in the terminal, NFB Lab does not turn on. I cannot see what I have done wrong or what can be done to fix the problem, does somebody have an idea please?? The steps I carried out for the installation of NFB Lab are described below.

OS: (Windows 10 Professionel, Processeur: Intel Core i5-3320M CPU, systeme 64 bits) NFB Lab version: (latest version)

To Reproduce Steps to reproduce the behavior:

  1. Go to https://www.python.org/downloads/windows/
  2. Download Python 3.9.10 - Jan. 14, 2022 Windows installer (64-bit)
  3. follow the steps as described in this link https://phoenixnap.com/kb/how-to-install-python-3-windows
  4. I checked in the terminal that python was well installed, and also checked for the installation of the pip 21.2.4 updated to 21.3.1
  5. I thereafter used the command pip install https://github.com/bioelectric-interfaces/nfb/archive/refs/heads/master.zip
  6. Everything downloaded itself without a problem
  7. I thereafter used the command pynfb to initiate NFB Lab but nothing happens...

I hope I have been precise enough, hopefully someone can help me fix the problem, Many thanks

damienbalay commented 2 years ago

When using the function pynfb-d, the last line indicates a ModuleNotFoundError: ModuleNotFoundError: No module named 'matplotlib.backends.backend_qt4agg'

damienbalay commented 2 years ago

I have managed to resolve the issue on my own, many thanks

MikhaKny commented 2 years ago

Hello! I have the same problem... Could you share the solution, please?

Many thanks

sasha1618 commented 2 years ago

Hello! I have the same problem... Could you share the solution, please?

Many thanks

Change this row: from matplotlib.backends.backend_qt4agg

To this: from matplotlib.backends.backend_qt5agg

This backend is used in two files so far: 1) ./pynfb/postprocessing/widgets.py 2) ./pynfb/protocols/ssd/topomap_canvas.py