da-rth / yasb

A highly configurable cross-platform (Windows) status bar written in Python.
MIT License
1.39k stars 81 forks source link

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

Open ryannewcomer opened 1 year ago

ryannewcomer commented 1 year ago

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

  1. 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

Dott-rus commented 1 year ago

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 commented 9 months ago

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.