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

QT import error: PySide6 - Shiboken.replaceModuleDict #11

Open
sebimoe opened this issue Dec 26, 2024 · 1 comment
Open

QT import error: PySide6 - Shiboken.replaceModuleDict #11

sebimoe opened this issue Dec 26, 2024 · 1 comment

Comments

@sebimoe
Copy link

sebimoe commented Dec 26, 2024

Installed using python .\setup.py in a new venv using Python 3.11.9.

--- Installation Summary ---

All libraries installed successfully on the first attempt.
Installation was successful! The program is ready to use.
To run it, enter the command: python ct2_main.py

Total installation time: 00:03:19.20

Running the app gives me:

(ctranslate2-faster-whisper-transcriber-3.3.0) PS C:\programs\ctranslate2-faster-whisper-transcriber-3.3.0> python ct2_main.py
Traceback (most recent call last):
  File "C:\programs\ctranslate2-faster-whisper-transcriber-3.3.0\ct2_main.py", line 23, in <module>
    from PySide6.QtWidgets import QApplication
  File "C:\programs\ctranslate2-faster-whisper-transcriber-3.3.0\Lib\site-packages\PySide6\__init__.py", line 141, in <module>
    Shiboken.replaceModuleDict(sys.modules["PySide6"], SubModule, ModuleDict(globals()))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'shiboken6.Shiboken' has no attribute 'replaceModuleDict'

Any ideas what could be wrong?

@auadbigname
Copy link

Just get a new version of the shiboken6

pip install --upgrade shiboken6

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

No branches or pull requests

2 participants