cemmanouilidis / naturalscrolling

Natural Scrolling for Linux
GNU General Public License v3.0
69 stars 11 forks source link

KeyError: u'No such property: NAME' #27

Closed zedtux closed 12 years ago

zedtux commented 12 years ago

From kkolasa:

Error on execute naturalscrolling :

root@krzysiek-hp1:~/Pobrane# naturalscrolling

\ WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

\ WARNING : Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags' Traceback (most recent call last): File "/usr/bin/naturalscrolling", line 46, in naturalscrolling.main() File "/usr/lib/pymodules/python2.7/naturalscrolling/init.py", line 46, in main Indicator().start() File "/usr/lib/pymodules/python2.7/naturalscrolling/indicator.py", line 57, in init menu.refresh(udev_observator.gather_devices()) File "/usr/lib/pymodules/python2.7/naturalscrolling_lib/udevobservator.py", line 56, in gather_devices for device_name in self.gather_devices_names_with_xid(): File "/usr/lib/pymodules/python2.7/naturalscrolling_lib/udevobservator.py", line 46, in gather_devices_names_with_xid device_name = device.parent["NAME"][1:-1] File "/usr/lib/python2.7/dist-packages/pyudev/device.py", line 677, in getitem** raise KeyError('No such property: {0}'.format(property)) KeyError: u'No such property: NAME'

version 0.4.1 working OK

zedtux commented 12 years ago

Could you please provide (in a gist for example) the output of naturalscrolling -d following instructions from the wiki

zedtux commented 12 years ago

I've also requested build of packages including this fix.

zedtux commented 12 years ago

Update from kkolasa:

after patch working OK, debug output:

krzysiek@krzysiek-hp1:~/src/linux-3-git$ cd /tmp krzysiek@krzysiek-hp1:/tmp$ git clone git://github.com/cemmanouilidis/naturalscrolling.git Cloning into naturalscrolling... remote: Counting objects: 498, done. remote: Compressing objects: 100% (255/255), done. remote: Total 498 (delta 264), reused 443 (delta 209) Receiving objects: 100% (498/498), 226.91 KiB | 230 KiB/s, done. Resolving deltas: 100% (264/264), done. krzysiek@krzysiek-hp1:/tmp$ cd naturalscrolling krzysiek@krzysiek-hp1:/tmp/naturalscrolling$ ./bin/naturalscrolling -d

\ WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

\ WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

  • PyUDev

    Input devices:

          event2 Power Button
          event6 Video Bus
          event1 Lid Switch
          event0 Sleep Button
          event17 HD-Audio Generic HDMI/DP,pcm=3
          event4 Logitech USB Receiver
          event5 Logitech USB Receiver
          event13 HDA Intel PCH Line In at Sep Rear Jack
          event14 HDA Intel PCH Mic at Ext Right Jack
          event15 HDA Intel PCH Line Out at Sep Rear Jack
          event16 HDA Intel PCH HP Out at Ext Right Jack
          event10 HP HD Webcam [Fixed]
          event3 AT Translated Set 2 keyboard
          event9 SynPS/2 Synaptics TouchPad
          event7 ST LIS3LV02DL Accelerometer
          event11

    Traceback (most recent call last): File "./bin/naturalscrolling", line 46, in naturalscrolling.main() File "/tmp/naturalscrolling/naturalscrolling/init.py", line 39, in main Debugger().execute() File "/tmp/naturalscrolling/naturalscrolling_lib/debugger.py", line 15, in execute print "\t\t", device.sys_name, device.parent["NAME"][1:-1] File "/usr/lib/python2.7/dist-packages/pyudev/device.py", line 677, in getitem raise KeyError('No such property: {0}'.format(property)) KeyError: u'No such property: NAME' krzysiek@krzysiek-hp1:/tmp/naturalscrolling$