mborgerson / pyside6_qtads

Python bindings to Qt Advanced Docking System for PySide6
Other
22 stars 9 forks source link

Error: module 'PySide6QtAds' has no attribute 'ads' #16

Closed foongminwong closed 1 year ago

foongminwong commented 1 year ago

Moving issue from https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/issues/508

Hello, I got this error when running simple main.py and other examples.

PS E:\Qt-Advanced-Docking-System\examples\simple> python .\main.py
Traceback (most recent call last):
  File ".\main.py", line 52, in <module>
    w = MainWindow()
  File ".\main.py", line 26, in __init__
    self.dock_manager = QtAds.CDockManager(self)
AttributeError: Error evaluating `PySide6QtAds.ads.CDockManager.__init__`: module 'PySide6QtAds' has no attribute 'ads'

I came across the previous issues https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/issues/298 and https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/issues/494, upgraded PySide6-QtAds to 4.0.1.2, and it doesn't seem to fix the error on my end...

Environment: OS: Windows Server 2019 Standard Python Version: 3.8.16 Package Version: image image

Relevant Information I also received this error when I installed the latest PySide6, am not sure if this might cause the error... Does it mean I have to downgrade pyside6-essentials & shiboken6? image

demotu commented 1 year ago

I should probably repeat my answer here in case people get here with this issue...

As shown in your pip error message, at the time you tried, PySide6-QtAds 4.0.1.2 required PySIde6 6.4.3, but you had PySide6 6.5.0 installed (and the equivalent versions for essentials and shiboken).

But PySide6-QtAds 4.0.3 was just released and it is compatible with PySide6 6.5.0. See https://pypi.org/project/PySide6-QtAds/

foongminwong commented 1 year ago

Just reinstalled PySide6-QtAds 4.0.3 and it works, thank you!