cemmanouilidis / naturalscrolling

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

AttributeError: 'module' object has no attribute 'device' #32

Closed er-mo closed 12 years ago

er-mo commented 12 years ago
~$ naturalscrolling -d

 PyUDev

Input devices:
                ==============
        event2 Power Button
        event4 Video Bus
        event1 Power Button
        event0 Lid Switch
        event3 AT Translated Set 2 keyboard
        event5 SynPS/2 Synaptics TouchPad

Input devices keys:
               ==============
event2 => {UDEV_LOG: 3},{DEVPATH: /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2},{PRODUCT: 19/0/1/0},{NAME: "Power Button"},{PHYS: "LNXPWRBN/button/input0"},{PROP: 0},{EV: 3},{KEY: 10000000000000 0},{MODALIAS: input:b0019v0000p0001e0000-e0,1,k74,ramlsfw},{SUBSYSTEM: input},
event4 => {UDEV_LOG: 3},{DEVPATH: /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:01/input/input4},{PRODUCT: 19/0/6/0},{NAME: "Video Bus"},{PHYS: "LNXVIDEO/video/input0"},{PROP: 0},{EV: 3},{KEY: 3e000b00000000 0 0 0},{MODALIAS: input:b0019v0000p0006e0000-e0,1,kE0,E1,E3,F1,F2,F3,F4,F5,ramlsfw},{SUBSYSTEM: input},
event1 => {UDEV_LOG: 3},{DEVPATH: /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input1},{PRODUCT: 19/0/1/0},{NAME: "Power Button"},{PHYS: "PNP0C0C/button/input0"},{PROP: 0},{EV: 3},{KEY: 10000000000000 0},{MODALIAS: input:b0019v0000p0001e0000-e0,1,k74,ramlsfw},{SUBSYSTEM: input},
event0 => {UDEV_LOG: 3},{DEVPATH: /devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input0},{PRODUCT: 19/0/5/0},{NAME: "Lid Switch"},{PHYS: "PNP0C0D/button/input0"},{PROP: 0},{EV: 21},{SW: 1},{MODALIAS: input:b0019v0000p0005e0000-e0,5,kramlsfw0,},{SUBSYSTEM: input},
event3 => {UDEV_LOG: 3},{DEVPATH: /devices/platform/i8042/serio0/input/input3},{PRODUCT: 11/1/1/ab41},{NAME: "AT Translated Set 2 keyboard"},{PHYS: "isa0060/serio0/input0"},{PROP: 0},{EV: 120013},{KEY: 402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe},{MSC: 10},{LED: 7},{MODALIAS: input:b0011v0001p0001eAB41-e0,1,4,11,14,k71,72,73,74,75,76,77,79,7A,7B,7C,7D,7E,7F,80,8C,8E,8F,9B,9C,9D,9E,9F,A3,A4,A5,A6,AC,AD,B7,B8,B9,D9,E2,ram4,l0,1,2,sfw},{SUBSYSTEM: input},
event5 => {UDEV_LOG: 3},{DEVPATH: /devices/platform/i8042/serio4/input/input5},{PRODUCT: 11/2/7/25b1},{NAME: "SynPS/2 Synaptics TouchPad"},{PHYS: "isa0060/serio4/input0"},{PROP: 1},{EV: b},{KEY: 6420 30000 0 0 0 0},{ABS: 11000003},{MODALIAS: input:b0011v0002p0007e25B1-e0,1,3,k110,111,145,14A,14D,14E,ra0,1,18,1C,mlsfw},{SUBSYSTEM: input},

XinputWarper

First XID: 10

Devices:
    ==========
Traceback (most recent call last):
  File "/usr/bin/naturalscrolling", line 46, in <module>
    naturalscrolling.main()
  File "/usr/lib/pymodules/python2.7/naturalscrolling/__init__.py", line 39, in main
    Debugger().execute()
  File "/usr/lib/pymodules/python2.7/naturalscrolling_lib/debugger.py", line 30, in execute
    devices = UDevObservator().gather_devices()
  File "/usr/lib/pymodules/python2.7/naturalscrolling_lib/udevobservator.py", line 70, in gather_devices
    for device_name in self.gather_devices_names_with_xid():
  File "/usr/lib/pymodules/python2.7/naturalscrolling_lib/udevobservator.py", line 58, in gather_devices_names_with_xid
    except pyudev.device.DeviceNotFoundAtPathError:
AttributeError: 'module' object has no attribute 'device'
alxypoly commented 12 years ago

Dear Erkan

Thank you for your feedback on this issue. We will try our best to solve this issue

Naturalscrolling Support Team


Áðï: Erkan Molla reply@reply.github.com Ðñïò: Alexandros Xypolytos alxypoly@yahoo.gr ÓôÜëèçêå: 10:44 ì.ì. Ôñßôç, 24 Áðñéëßïõ 2012 Èåìá: [naturalscrolling] AttributeError: 'module' object has no attribute 'device' (#32)

~$ naturalscrolling -d

PyUDev

Input devices:                 ==============         event2 Power Button         event4 Video Bus         event1 Power Button         event0 Lid Switch         event3 AT Translated Set 2 keyboard         event5 SynPS/2 Synaptics TouchPad

Input devices keys:               ============== event2 => {UDEV_LOG: 3},{DEVPATH: /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2},{PRODUCT: 19/0/1/0},{NAME: "Power Button"},{PHYS: "LNXPWRBN/button/input0"},{PROP: 0},{EV: 3},{KEY: 10000000000000 0},{MODALIAS: input:b0019v0000p0001e0000-e0,1,k74,ramlsfw},{SUBSYSTEM: input}, event4 => {UDEV_LOG: 3},{DEVPATH: /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:01/input/input4},{PRODUCT: 19/0/6/0},{NAME: "Video Bus"},{PHYS: "LNXVIDEO/video/input0"},{PROP: 0},{EV: 3},{KEY: 3e000b00000000 0 0 0},{MODALIAS: input:b0019v0000p0006e0000-e0,1,kE0,E1,E3,F1,F2,F3,F4,F5,ramlsfw},{SUBSYSTEM: input}, event1 => {UDEV_LOG: 3},{DEVPATH: /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input1},{PRODUCT: 19/0/1/0},{NAME: "Power Button"},{PHYS: "PNP0C0C/button/input0"},{PROP: 0},{EV: 3},{KEY: 10000000000000 0},{MODALIAS: input:b0019v0000p0001e0000-e0,1,k74,ramlsfw},{SUBSYSTEM: input}, event0 => {UDEV_LOG: 3},{DEVPATH: /devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input0},{PRODUCT: 19/0/5/0},{NAME: "Lid Switch"},{PHYS: "PNP0C0D/button/input0"},{PROP: 0},{EV: 21},{SW: 1},{MODALIAS: input:b0019v0000p0005e0000-e0,5,kramlsfw0,},{SUBSYSTEM: input}, event3 => {UDEV_LOG: 3},{DEVPATH: /devices/platform/i8042/serio0/input/input3},{PRODUCT: 11/1/1/ab41},{NAME: "AT Translated Set 2 keyboard"},{PHYS: "isa0060/serio0/input0"},{PROP: 0},{EV: 120013},{KEY: 402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe},{MSC: 10},{LED: 7},{MODALIAS: input:b0011v0001p0001eAB41-e0,1,4,11,14,k71,72,73,74,75,76,77,79,7A,7B,7C,7D,7E,7F,80,8C,8E,8F,9B,9C,9D,9E,9F,A3,A4,A5,A6,AC,AD,B7,B8,B9,D9,E2,ram4,l0,1,2,sfw},{SUBSYSTEM: input}, event5 => {UDEV_LOG: 3},{DEVPATH: /devices/platform/i8042/serio4/input/input5},{PRODUCT: 11/2/7/25b1},{NAME: "SynPS/2 Synaptics TouchPad"},{PHYS: "isa0060/serio4/input0"},{PROP: 1},{EV: b},{KEY: 6420 30000 0 0 0 0},{ABS: 11000003},{MODALIAS: input:b0011v0002p0007e25B1-e0,1,3,k110,111,145,14A,14D,14E,ra0,1,18,1C,mlsfw},{SUBSYSTEM: input},

XinputWarper

First XID: 10

Devices:     ========== Traceback (most recent call last):   File "/usr/bin/naturalscrolling", line 46, in     naturalscrolling.main()   File "/usr/lib/pymodules/python2.7/naturalscrolling/init.py", line 39, in main     Debugger().execute()   File "/usr/lib/pymodules/python2.7/naturalscrolling_lib/debugger.py", line 30, in execute     devices = UDevObservator().gather_devices()   File "/usr/lib/pymodules/python2.7/naturalscrolling_lib/udevobservator.py", line 70, in gather_devices     for device_name in self.gather_devices_names_with_xid():   File "/usr/lib/pymodules/python2.7/naturalscrolling_lib/udevobservator.py", line 58, in gather_devices_names_with_xid     except pyudev.device.DeviceNotFoundAtPathError: AttributeError: 'module' object has no attribute 'device'


Reply to this email directly or view it on GitHub: https://github.com/cemmanouilidis/naturalscrolling/issues/32

zedtux commented 12 years ago

@ermolla you're using an old version of NaturalScrolling. The current master branch has a fix.

Which version of Ubuntu are you using?

er-mo commented 12 years ago

Dear Support Team

I just made a fresh install of the naturalscrolling from its own PPA. But I get again the same error: "AttributeError: 'module' object has no attribute 'device'"

I am using Ubuntu 11.04

zedtux commented 12 years ago

Alright. Thank you.

Then I will package the latest changes in order to fix your issue. (I should have forgot it sorry.)

zedtux commented 12 years ago

I'm building version 0.5.5 in testing PPA right now.

zedtux commented 12 years ago

This issue is a duplicate of the issue #29