Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load default dictionaries #1

Closed
nsmarkop opened this issue Feb 18, 2018 · 0 comments · Fixed by #5
Closed

Unable to load default dictionaries #1

nsmarkop opened this issue Feb 18, 2018 · 0 comments · Fixed by #5

Comments

@nsmarkop
Copy link

When I switch to this system in Plover, I get the following module not found error:

2018-02-17 18:36:08,494 [Dummy-1] ERROR: engine update failed
Traceback (most recent call last):
  File "C:\Users\nsmar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pkg_resources\__init__.py", line 432, in get_provider
    module = sys.modules[moduleOrReq]
KeyError: 'plover_palantype_system'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "O:\Software\Projects\plover\plover\engine.py", line 136, in run
    if func(*args, **kwargs):
  File "O:\Software\Projects\plover\plover\engine.py", line 253, in _update
    copy_default_dictionaries(config_dictionaries.keys())
  File "O:\Software\Projects\plover\plover\engine.py", line 63, in copy_default_dictionaries
    shutil.copyfile(resource_filename(default_dictionary), dictionary)
  File "O:\Software\Projects\plover\plover\resource.py", line 22, in resource_filename
    return pkg_resources.resource_filename(*_asset_split(resource_name))
  File "C:\Users\nsmar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pkg_resources\__init__.py", line 1206, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File "C:\Users\nsmar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pkg_resources\__init__.py", line 434, in get_provider
    __import__(moduleOrReq)
ModuleNotFoundError: No module named 'plover_palantype_system'

It seems that as a result the "sample.json" dictionary is not properly loaded (stuck with a refresh icon, nothing is in it when double clicking).

Might be due to the system.py defining the default dictionaries as plover_palantype_system instead of plover_palantype?

DICTIONARIES_ROOT = 'asset:plover_palantype_system:dictionaries'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant