Skip to content

Example main.py run: AttributeError: module 'PyQtAds' has no attribute 'CDockManager' #735

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

Open
andry81 opened this issue Apr 16, 2025 · 6 comments

Comments

@andry81
Copy link

andry81 commented Apr 16, 2025

System:

  • Python 3.12.2 (PyQt5, PyQtAds)
  • Windows 8.1

$ py main.py

Traceback (most recent call last):
  File "...\QtADS\examples\centralwidget\main.py", line 104, in <module>
    w = MainWindow()
        ^^^^^^^^^^^^
  File "...\QtADS\examples\centralwidget\main.py", line 23, in __init__
    QtAds.CDockManager.setConfigFlag(QtAds.CDockManager.OpaqueSplitterResize, True)
    ^^^^^^^^^^^^^^^^^^
AttributeError: module 'PyQtAds' has no attribute 'CDockManager'

I've checked the site-packages and didn't found any py modules. But instead have found sip modules.

Do I need to somehow compile sip modules? There is no instructions about it in the readme.

@githubuser0xFFFF
Copy link
Owner

@andry81 The PyQtAds package is a third party contribution and I cannot help you in this case. Maybe you can contact the authors of the contribution to get some help?

@andry81
Copy link
Author

andry81 commented May 4, 2025

@andry81 The PyQtAds package is a third party contribution and I cannot help you in this case. Maybe you can contact the authors of the contribution to get some help?

You have main.py in the examples. The PyQtAds is installed. I have tried to just run the python entry point. And it does not work from the box. Then why to hold it anyway? May be add details with what version of PyQt a user have to run?

My modules list, just in case:

packaging                   24.2
pip                         25.0.1
prompt_toolkit              3.0.47

PyQt5                       5.15.11
PyQt5-Qt5                   5.15.2
PyQt5_sip                   12.17.0
PyQtAds                     3.8.1

setuptools                  78.1.0
sip                         6.10.0

wheel                       0.42.0

@githubuser0xFFFF
Copy link
Owner

What do you mean with: "Then why to hold it anyway?"

@andry81
Copy link
Author

andry81 commented May 5, 2025

What do you mean with: "Then why to hold it anyway?"

It just couldn't run from the box.

@githubuser0xFFFF
Copy link
Owner

githubuser0xFFFF commented May 5, 2025

Yes, but if you fix it then maybe it will run and other users are happy if you contribute your fix.

@andry81
Copy link
Author

andry81 commented May 5, 2025

Yes, but if you fix it then maybe it will run and other users are happy if you contribute your fix.

And how it works before?

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

2 participants