Kivy - 无法打开设备“/dev/input/event7"在 Ubuntu 上,没有权限 [英] Kivy - Unable to open device "/dev/input/event7" on Ubuntu, no permission

查看:27
本文介绍了Kivy - 无法打开设备“/dev/input/event7"在 Ubuntu 上,没有权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Ubuntu 16.04,每次运行任何 Kivy 应用程序(我是 Ubuntu 和 Kivy 的新手)时,我都会收到消息:

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. 

它正常工作,我只想知道为什么会出现该消息以及我是否可以摆脱它.我是从 PyCharm 还是终端运行应用程序都没有关系.当我在 Windows 中运行它时,没有此消息一切正常.

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.

推荐答案

出现此消息是因为 Kivy 查询每个输入设备以查看它是否应该监听它.访问不了这个没关系,很正常.

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.

这篇关于Kivy - 无法打开设备“/dev/input/event7"在 Ubuntu 上,没有权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆