Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 20.04 the new viewer errors out.. #177

Open
Zibri opened this issue Mar 25, 2022 · 0 comments
Open

Ubuntu 20.04 the new viewer errors out.. #177

Zibri opened this issue Mar 25, 2022 · 0 comments

Comments

@Zibri
Copy link

Zibri commented Mar 25, 2022

# muselsl view -v 2
Looking for an EEG stream...
Start acquiring data.
Setting up band-pass filter from 3 - 40 Hz

FIR filter parameters
---------------------
Designing a one-pass, zero-phase, non-causal bandpass filter:
- Windowed time-domain design (firwin) method
- Hamming window with 0.0194 passband ripple and 53 dB stopband attenuation
- Lower passband edge: 3.00
- Lower transition bandwidth: 2.00 Hz (-6 dB cutoff frequency: 2.00 Hz)
- Upper passband edge: 40.00 Hz
- Upper transition bandwidth: 10.00 Hz (-6 dB cutoff frequency: 45.00 Hz)
- Filter length: 423 samples (1.652 sec)

WARNING: Traceback (most recent call last):
  File "/usr/local/bin/muselsl", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/muselsl/__main__.py", line 57, in main
    cli = CLI(args.command)
  File "/usr/local/lib/python3.8/dist-packages/muselsl/cli.py", line 9, in __init__
    getattr(self, command)()
  File "/usr/local/lib/python3.8/dist-packages/muselsl/cli.py", line 244, in view
    view(args.window, args.scale, args.refresh, args.figure, args.version,
  File "/usr/local/lib/python3.8/dist-packages/muselsl/view.py", line 5, in view
    viewer_v2.view()
  File "/usr/local/lib/python3.8/dist-packages/muselsl/viewer_v2.py", line 89, in view
    app.run()
  File "/usr/lib/python3/dist-packages/vispy/app/_default_app.py", line 62, in run
    return default_app.run()
  File "/usr/lib/python3/dist-packages/vispy/app/application.py", line 152, in run
    return self._backend._vispy_run()
  File "/usr/lib/python3/dist-packages/vispy/app/backends/_egl.py", line 112, in _vispy_run
    self._vispy_process_events()
  File "/usr/lib/python3/dist-packages/vispy/app/backends/_egl.py", line 107, in _vispy_process_events
    win._on_draw()
  File "/usr/lib/python3/dist-packages/vispy/app/backends/_egl.py", line 246, in _on_draw
    self._vispy_canvas.events.draw(region=None)  # (0, 0, w, h))
  File "/usr/lib/python3/dist-packages/vispy/util/event.py", line 455, in __call__
    self._invoke_callback(cb, event)
  File "/usr/lib/python3/dist-packages/vispy/util/event.py", line 473, in _invoke_callback
    _handle_exception(self.ignore_callback_errors,
  << caught exception here: >>
  File "/usr/lib/python3/dist-packages/vispy/util/event.py", line 471, in _invoke_callback
    cb(event)
  File "/usr/local/lib/python3.8/dist-packages/muselsl/viewer_v2.py", line 260, in on_draw
    [t.draw() for t in self.names + self.quality]
  File "/usr/local/lib/python3.8/dist-packages/muselsl/viewer_v2.py", line 260, in <listcomp>
    [t.draw() for t in self.names + self.quality]
  File "/usr/lib/python3/dist-packages/vispy/visuals/visual.py", line 435, in draw
    if self._prepare_draw(view=self) is False:
  File "/usr/lib/python3/dist-packages/vispy/visuals/text/text.py", line 588, in _prepare_draw
    n_pix = (self._font_size / 72.) * transforms.dpi  # logical pix
TypeError: unsupported operand type(s) for *: 'float' and 'NoneType'
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (egl) at 0x7f55cbb60e50>> for DrawEvent
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (egl) at 0x7f55cbb60e50>> repeat 2
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (egl) at 0x7f55cbb60e50>> repeat 4
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (egl) at 0x7f55cbb60e50>> repeat 8
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (egl) at 0x7f55cbb60e50>> repeat 16
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (egl) at 0x7f55cbb60e50>> repeat 32
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (egl) at 0x7f55cbb60e50>> repeat 64
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (egl) at 0x7f55cbb60e50>> repeat 128
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (egl) at 0x7f55cbb60e50>> repeat 256
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (egl) at 0x7f55cbb60e50>> repeat 512
ERROR: Invoking <bound method Canvas.on_draw of <Canvas (egl) at 0x7f55cbb60e50>> repeat 1024

Everything else works..
I tried uninstalling vispy and reinstalling with apt install python3-vispy... but nothing..
then I uninstalled python3-vispy and reinstalled vispy using
pip install vispy

I always get the same error.

Viewer 1 works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant