highfestiva/finplot

[BUG] Animations print "QPainter::drawPicture: Painter not active" upon every refresh

alexandercommon opened this issue · 3 comments

  • I realize finplot is not a web lib. (Hint: it's native!)
  • I've read the snippets and not found what I'm looking for.
  • I've searched for any related issues and avoided creating a duplicate issue.
  • I've updated finplot (pip install -U finplot).
  • I've supplied the required data to run my code below.

Code to reproduce

https://github.com/highfestiva/finplot/blob/master/finplot/examples/animate.py

Describe the bug

No matter what I do, whenever I run an animation it prints "QPainter::drawPicture: Painter not active". This happens in my own code, and in the example code. Although the plotting seems to be working fine, that I can see.

Expected behavior

It would be nice if this didn't do this. I can't use the console if it's doing this.

Screenshots

Probably not needed.

Reproducible in:

OS: Windows 10 22H2 - build 19045.3803
finplot version: Version: 1.9.3
pyqtgraph version: 0.13.3
pyqt version: 6.6.1

I solved this, just submitting for others to be aware of.

The issue was solved by downgrading pyqt to version 5.

This is something new in the new PyQt6 or perhaps Qt6. Don't know if it's a bug on their side, but I'll keep my eye on it, and if they don't fix it soon I'll investigate further. Please keep open.

I found the bug on my end, it should be fixed in 23a92b1. Also, please use PyQt6 instead of PyQt5, as the previous version is no longer supported.