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

[BUG]import error: can't import QtWidgets #102

Open
ryannewcomer opened this issue Jul 18, 2023 · 2 comments
Open

[BUG]import error: can't import QtWidgets #102

ryannewcomer opened this issue Jul 18, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ryannewcomer
Copy link

Expected Behavior

it should wrok

Current Behavior

i run pip -r requirements.txt, then run python src/main.py, and it said :
ImportError: DLL load failed while importing QtWidgets: The specified module could not be found.

Possible Solution

i install QtWidgets with pip, and it still don't work, then i install PyQt6, still don't work

Steps to Reproduce

1.clone yasb
2.pip install -r requirements.txt
3.python src/main.py
4. show error

Context (Environment)

os: window 11
the error:
image
i have move the style.css and config.yam to C:/User//.yasb:
Screenshot 2023-07-18 130625

@ryannewcomer ryannewcomer added the bug Something isn't working label Jul 18, 2023
@Dott-rus
Copy link

Dott-rus commented Aug 2, 2023

I had this problem, it's possibly a corrupted DLL. It can be resolved by reinstalling PyQt. pip install PyQt6 --force and you maybe need to reboot your pc. now it works

@Wizarth
Copy link

Wizarth commented Dec 14, 2023

On a suggestion from the Discord. I tried installing PyQt6-ctools, which fixed it for me. I notice that as part of that, it downgraded PyQt6 from 6.6.1 to 6.4.3 , which is probably relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants