On 13/05/2020 5:01 am, Wahabo Ouedraogo wrote:
Greetings,
When i run my code, i obtain this error:
Traceback (most recent call last):File "d:/Documents/VISUAL STUDIO CODE EXO/Untitled-f.py", line 58, in <module>w = Window()File "d:/Documents/VISUAL STUDIO CODE EXO/Untitled-f.py", line 49, in __init__self.dockArea = pg.DockArea()AttributeError: module 'pyqtgraph' has no attribute 'DockArea'PS D:\Documents\VISUAL STUDIO CODE EXO\MEMOIRE> & C:/Users/ThinkPad/AppData/Local/Programs/Python/Python38/python.exe "d:/Documents/VISUAL STUDIO CODE EXO/Untitled-f.py"PS D:\Documents\VISUAL STUDIO CODE EXO\MEMOIRE>
here, the script:
from PyQt5.QtCore import *from PyQt5.QtGui import *from PyQt5.QtWidgets import *import pyqtgraph as pg
/.../self.dockArea = pg.DockArea()
Perfectly normal. The package pyqtgraph has no DockArea
attribute. It suffices to type dir(pg) to see it, couldn't
you do it yourself before complaining? No idea where did you copy
the included script from, but I suggest to verify:
from pyqtgraph.dockarea import DockArea
At least it works here.
Jerzy Karczmarczuk
/Caen, France/