morinted / plover_palantype

Palantype system and machine for Plover
4 stars 2 forks source link

FileNotFoundError for default dictionaries #6

Open nsmarkop opened 5 years ago

nsmarkop commented 5 years ago

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.