Kivy - Unable to open device “/dev/input/event7” on Ubuntu, no permission

我怕爱的太早我们不能终老 提交于 2021-01-29 07:19:18

问题


I'm using Ubuntu 16.04 and every time I run any Kivy App (I'm new to both Ubuntu and Kivy), I get the message:

[WARNING] [MTD] Unable to open device "/dev/input/event7". Please ensure you have the appropriate permissions. 

It works normally, I would just like to know why the message appears and if I can get rid of it. It doesn't matter if I run the app from PyCharm or Terminal. When I run it in Windows, everything is fine without this message.


回答1:


This message appears because Kivy queries each input device to see if it should listen to it. It doesn't matter that it failed to access this one, it's normal.

It's a minor bug that this message is printed each time, since it isn't really necessary, but nobody has ever got around to fixing it.



来源:https://stackoverflow.com/questions/53874166/kivy-unable-to-open-device-dev-input-event7-on-ubuntu-no-permission

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!