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

FileNotFoundError for default dictionaries #6

Open
nsmarkop opened this issue Nov 22, 2018 · 0 comments
Open

FileNotFoundError for default dictionaries #6

nsmarkop opened this issue Nov 22, 2018 · 0 comments

Comments

@nsmarkop
Copy link

Similar to #1 but not quite exactly the same error message.

O:\projects\software\stenography\plover>2018-11-21 20:38:52,200 [Dummy-1] ERROR: engine update failed
Traceback (most recent call last):
  File "O:\projects\software\stenography\plover\plover\engine.py", line 136, in run
    if func(*args, **kwargs):
  File "O:\projects\software\stenography\plover\plover\engine.py", line 244, in _update
    copy_default_dictionaries(config_dictionaries.keys())
  File "O:\projects\software\stenography\plover\plover\engine.py", line 63, in copy_default_dictionaries
    shutil.copyfile(resource_filename(default_dictionary), dictionary)
  File "C:\Users\nsmar\AppData\Local\Programs\Python\Python36-32\lib\shutil.py", line 120, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\nsmar\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\plover_palantype\\dictionaries\\palan_user.json'

I get this for both palan_user and palan_sample as both fail to load in the UI.

Looking in C:\Users\nsmar\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\plover_palantype, I only see the following files:

image

Adding my own copy of the dictionary results in stuck loading symbols / errors still for things until I remove the two failing built in ones (presumably due to the FileNotFoundErrors stopping something in the engine) -- after I remove them then the manually added dictionaries work as expected.

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

No branches or pull requests

1 participant