Skip to content

module ‘evdev' has no attribute 'list_devices' #116

@Zireael

Description

@Zireael

Hi,
I'm trying to run example code from https://python-evdev.readthedocs.io/en/latest/usage.html on Ubuntu19 and getting an error that module ‘evdev' has no attribute 'list_devices'.
Relevant library versions are listed in the screenshot below.

import evdev

devices = [evdev. InputDevice(path) for path in evdev.list_devices()]
for device in devices
print(device.path, device.name, device.phys)

image

Any suggestion on what the issue could be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions