VisoMaster
VisoMaster copied to clipboard
WSL Install - can't run
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'
Try upgrading qdarktheme in the environment-
python -m pip install --upgrade qdarktheme
i think you are having this error because of python version, try
pip install PyQtDarkTheme-fork