VisoMaster icon indicating copy to clipboard operation
VisoMaster copied to clipboard

WSL Install - can't run

Open Dunc4n1dah0 opened this issue 1 year ago • 2 comments

Win11, WSL2, Ubuntu 24

$ python main.py
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "/home/x/VisoMaster/venv/lib/python3.12/site-packages/cv2/qt/plugins" even though it was found.
Traceback (most recent call last):
  File "/home/x/VisoMaster/main.py", line 14, in <module>
    _style = qdarktheme.load_stylesheet(custom_colors={"primary": "#4facc9"})+'\n'+_style
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: load_stylesheet() got an unexpected keyword argument 'custom_colors'

$ export QT_QPA_PLATFORM=xcb

$ python main.py
Traceback (most recent call last):
  File "/home/x/VisoMaster/main.py", line 14, in <module>
    _style = qdarktheme.load_stylesheet(custom_colors={"primary": "#4facc9"})+'\n'+_style
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: load_stylesheet() got an unexpected keyword argument 'custom_colors'

Dunc4n1dah0 avatar Apr 03 '25 06:04 Dunc4n1dah0

Try upgrading qdarktheme in the environment-

python -m pip install --upgrade qdarktheme

axel-devs avatar May 18 '25 20:05 axel-devs

i think you are having this error because of python version, try pip install PyQtDarkTheme-fork

sawk1 avatar Sep 01 '25 13:09 sawk1