mborgerson / pyside6_qtads

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

ImportError: Could Not Import Module 'PySide6.QtWidgets' on Python 3.10 #20

Open xiaobai427 opened 1 year ago

xiaobai427 commented 1 year ago

I am encountering an issue when trying to use the PySide6QtAds package in my Python 3.10 environment on Windows. When I attempt to import the PySide6QtAds module in my script, I receive the following error message: ImportError: could not import module 'PySide6.QtWidgets' This occurs despite having PySide6 installed in my environment. I have already taken the following troubleshooting steps:

Reinstalling the PySide6 and PySide6QtAds packages Ensuring the required Qt libraries are installed and properly configured Verifying the architectures of Python, PySide6, and PySide6QtAds (all are 64-bit) Checking the system PATH to make sure it includes the directory where the necessary DLLs are located Despite these efforts, the issue persists. I would greatly appreciate any assistance or insights into resolving this import failure and understanding why

RubendeBruin commented 1 year ago

Hi @xiaobai427 , are you able to import PySide6.QtWidgets at all? For example by running the following Python code:

import PySide6.QtWidgets