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

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

Closed
foongminwong opened this issue Apr 21, 2023 · 3 comments
Closed

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

foongminwong opened this issue Apr 21, 2023 · 3 comments

Comments

@foongminwong
Copy link

foongminwong commented Apr 21, 2023

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 #298 and #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
Copy link

demotu commented Apr 21, 2023

As shown in your pip error message, PySide6-QtAds 4.0.1.2 requires PySIde6 6.4.3, but you have PySIde6 6.5.0 (and the equivalent versions for Essentials and shiboken) installed.
Yes, if you want to use PySide6-QtAds 4.0.1.2, you need to downgrade to PySIde6 6.4.3 (and when you do, it should also automatically downgrade the Essentials and Shiboken libraries).

PySide6-QtAds needs to be updated to PySide6 6.5.0, hopefully @mborgerson can do that.

Although @mborgerson also replies here, maybe for specific requests related to PySide6, we should do it at https://github.com/mborgerson/pyside6_qtads, this is where PySide6-QtAds is being developed.

@mborgerson
Copy link

mborgerson commented Apr 22, 2023

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

Apparently there is an issue when PyQt5 is also installed. Try uninstalling it: pip uninstall PyQt5 PyQt5-sip QyQt5-Qt5 then run the sample again.

PySide6-QtAds needs to be updated to PySide6 6.5.0, hopefully @mborgerson can do that.

Just made a release. PySide6-QtAds v4.0.1.3 should work with PySide6 v6.5.0.

Although @mborgerson also replies here, maybe for specific requests related to PySide6, we should do it at https://github.com/mborgerson/pyside6_qtads, this is where PySide6-QtAds is being developed.

Yeah, please file PySide6-QtAds-specific issues on my pyside6_qtads fork for tracking

@foongminwong
Copy link
Author

Thank you for the replies @demotu @mborgerson ! Just refiled the issue

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

No branches or pull requests

4 participants