tb2097 / wacom-gui

Python/PyQt Wacom GUI for KDE
GNU General Public License v3.0
133 stars 35 forks source link

but_loc[bid] = buttons[bid]['pos'] KeyError: 'pos' KeyError: 'pos' #56

Open vido89 opened 2 years ago

vido89 commented 2 years ago

Everything was working fine and now Im getting this

python2 ./wacom-gui.py 
invalid literal for float(): 42,10.5
invalid literal for float(): 42,10.5
Traceback (most recent call last):
  File "./wacom-gui.py", line 746, in <module>
    main()
  File "./wacom-gui.py", line 738, in main
    form = WacomGui()
  File "./wacom-gui.py", line 70, in __init__
    self.refreshTablets()
  File "./wacom-gui.py", line 113, in refreshTablets
    self.tabletSelect(0)
  File "./wacom-gui.py", line 305, in tabletSelect
    self.getConfigs(idx)
  File "./wacom-gui.py", line 264, in getConfigs
    self.loadConfig(dev, dev_id, self.config)
  File "./wacom-gui.py", line 283, in loadConfig
    self.configs[dev][config]['pad']['buttons'])
  File "/home/korisnik/Desktop/wacom-gui-Python3-Qt5-build/wacom-gui/pad.py", line 134, in init_keys
    but_loc[bid] = buttons[bid]['pos']
KeyError: 'pos'

I tried also Python3/Qt5-build but same issue Im using


NAME="Linux Mint"
VERSION="20.2 (Uma)"