OneDeadKey / kalamine

Keyboard Layout Maker
MIT License
100 stars 29 forks source link

wkalamine failed with a MSKLC popup #133

Closed nemolivier closed 4 months ago

nemolivier commented 4 months ago

Launching wkalamine build beop.toml failed with a MSKLC popup « There was a problem loading this keyboard ». Cliquing on the « OK » button launch MSKLC without any launched keyboard.

Terminal output : 

❯ wkalamine build beop.toml
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Olivier\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts\wkalamine.exe\__main__.py", line 7, in <module>
  File "C:\Users\Olivier\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Olivier\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\Users\Olivier\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Olivier\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Olivier\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Olivier\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\kalamine\cli_msklc.py", line 53, in build
    msklc_mgr.build_msklc_dll()
  File "C:\Users\Olivier\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\kalamine\msklc_manager.py", line 121, in build_msklc_dll
    raise Exception(f"{full_dir} doesn't exist")
Exception: C:\Users\Olivier\Documents\kalamine\layouts\beponemo\i386 doesn't exist

beop.txt

Geobert commented 4 months ago

I don’t reproduce.

Can you provide the directory structure from the working directory please?

and try wkalamine build beop.toml --verbose

nemolivier commented 4 months ago

Didn't realy understood what you need. Hope this help.

 kalamine  lsd --tree
 .
├──  beponemo.klc
├──  dist
│   ├──  beponemo.ahk
│   ├──  beponemo.json
│   ├──  beponemo.keylayout
│   ├──  beponemo.klc
│   ├──  beponemo.svg
│   ├──  beponemo.xkb
│   └──  beponemo.xkb_custom
├──  docs
│   └──  README.md
├──  kalamine.watch.log
├──  layouts
│   ├──  ansi.toml
│   ├──  beop.toml
│   ├──  beop.txt
│   ├──  bepo.yaml
│   ├──  beponemo.klc
│   ├──  dist
│   │   ├──  bépo.ahk
│   │   ├──  bépo.json
│   │   ├──  bépo.keylayout
│   │   ├──  bépo.klc
│   │   ├──  bépo.svg
│   │   ├──  bépo.xkb
│   │   ├──  bépo.xkb_custom
│   │   ├──  ergol.ahk
│   │   ├──  ergol.json
│   │   ├──  ergol.keylayout
│   │   ├──  ergol.klc
│   │   ├──  ergol.svg
│   │   ├──  ergol.xkb
│   │   └──  ergol.xkb_custom
│   ├──  ergol.toml
│   ├──  intl.toml
│   ├──  log.txt
│   ├──  prog.toml
│   ├──  README.md
│   ├──  SAV.toml
│   └──  test.toml
├──  LICENSE
├──  Makefile
├──  MANIFEST.in
├──  pyproject.toml
├──  README.rst
├──  tests
│   ├──  __init__.py
│   ├──  test_macos.py
│   ├──  test_parser.py
│   ├──  test_serializer_ahk.py
│   ├──  test_serializer_keylayout.py
│   ├──  test_serializer_klc.py
│   ├──  test_serializer_xkb.py
│   └──  util.py
└──  watch.png
nemolivier commented 4 months ago

Here is the log file after generation dll with kalamine build then MSKLC. KeyboardVerify.log

Geobert commented 4 months ago

Nothing out of ordinary here, can you attached the klc as well please?

nemolivier commented 4 months ago

beponemo.klc.txt

fabi1cazenave commented 4 months ago

Fixed by #143, apparently.