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

Newer pyqtgraph releases (>0.13.0) no longer supports GraphicsWindow #87

Closed
ryosukecooltanaka opened this issue Oct 11, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@ryosukecooltanaka
Copy link

StreamingPositionPlot() in fishplots.py uses the GraphicsWindow attribute in pyqtgraph, which apparently no longer exists in the latest release (>0.13.0) (stytra protocols wouldn't run due to the AttributeError).
Installing stytra with pip currently automatically installs the latest version of pyqtgraph.
Downgrading pyqtgraph 0.12.4 fixed the issue.

@nvbln nvbln added the bug Something isn't working label Jun 26, 2023
@DaniParr
Copy link

DaniParr commented Aug 2, 2023

Editing fishplots.py from "class StreamingPositionPlot(pg.GraphicsWindow):" to "class StreamingPosition(pg.GraphicsView):" in line 16 and that solved that issue.
However, when I run it again another issue arises with utilities.py.
I then changed "if isinstance(v, collections.Mapping):" to "if isinstance(v, collections.ChainMap):" in line 242
and then running "python -m stytra.examples.looming_exp" worked fine for me! :)

@nvbln
Copy link
Contributor

nvbln commented Mar 5, 2024

I will close this as it has been fixed by PR #93.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants