JigsawWM icon indicating copy to clipboard operation
JigsawWM copied to clipboard

unable to start example wm.py

Open rsa17826 opened this issue 6 months ago • 2 comments

when i try and run wm.py i get AttributeError: module 'jigsawwm.daemon' has no attribute 'ThreadedService' at services.pyw line 18

class CaffeineService(daemon.ThreadedService):
    name = "Caffeine"
    autorun = False

and it becomes very laggy making it almost imposable to move the mouse until i kill the py script after which i can move the mouse normally again without it lagging.

rsa17826 avatar Jun 07 '25 16:06 rsa17826

Try the latest code.

pip install git+https://github.com/klesh/JigsawWM.git

It should work.

klesh avatar Jun 09 '25 03:06 klesh

in the newest release, and in the newest code there is not wm.py anymore, and when trying to run full.pyw i get

Traceback (most recent call last):
  File "c:\Users\User\AppData\Local\Programs\Python\Python313\Lib\runpy.py", line 198, in _run_module_as_main
    return _run_code(code, main_globals, None,
                     "__main__", mod_spec)
  File "c:\Users\User\AppData\Local\Programs\Python\Python313\Lib\runpy.py", line 88, in _run_code
    exec(code, run_globals)
    ~~~~^^^^^^^^^^^^^^^^^^^
  File "c:\Users\User\Downloads\programs\VSCodium\data\extensions\ms-python.debugpy-2025.6.0-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy\__main__.py", line 71, in <module>
    cli.main()
    ~~~~~~~~^^
  File "c:\Users\User\Downloads\programs\VSCodium\data\extensions\ms-python.debugpy-2025.6.0-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 501, in main
    run()
    ~~~^^
  File "c:\Users\User\Downloads\programs\VSCodium\data\extensions\ms-python.debugpy-2025.6.0-win32-x64\bundled\libs\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 351, in run_file
    runpy.run_path(target, run_name="__main__")
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\User\Downloads\programs\VSCodium\data\extensions\ms-python.debugpy-2025.6.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 309, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
                  ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\User\Downloads\programs\VSCodium\data\extensions\ms-python.debugpy-2025.6.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 278, in _get_code_from_file
    with io_open_code(decoded_path) as f:
         ~~~~~~~~~~~~^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\User\\Desktop\\JigsawWM\\example\\jigsaw.pyw'

jigsaw.pyw doesnt exist because it was not anywhere in the newest version what file am i intended to run now?, and why doesnt wm.py exist anymore?

when using the old wm.py i now get this error

Exception has occurred: ImportError cannot import name 'daemon' from 'jigsawwm' (c:\Users\User\AppData\Local\Programs\Python\Python313\Lib\site-packages\jigsawwm_init_.py) File "C:\Users\User\Desktop\JigsawWM\example\jmk.pyw", line 5, in from jigsawwm import daemon File "C:\Users\User\Desktop\JigsawWM\example\jigsaw.pyw", line 1, in from jmk import * ImportError: cannot import name 'daemon' from 'jigsawwm' (c:\Users\User\AppData\Local\Programs\Python\Python313\Lib\site-packages\jigsawwm_init_.py)

and why is the folder sometimes called examples with s and other times called example no s?

rsa17826 avatar Jun 09 '25 17:06 rsa17826