LINUX.ORG.RU

Ошибка при запуску файла на kivy (Python)

 ,


0

2

Доброго времени суток! Написал элементарную программу (так сказать скопипастил) но при запуске файла ошибка.

/usr/bin/python3.4 /home/silentstorm/PycharmProjects/kivy/first_app.py
[INFO              ] [Logger      ] Record log in /home/silentstorm/.kivy/logs/kivy_16-02-08_4.txt
[INFO              ] [Kivy        ] v1.9.0
[INFO              ] [Python      ] v3.4.3 (default, Oct 14 2015, 20:28:29) 
[GCC 4.8.4]
[INFO              ] [Factory     ] 173 symbols loaded
[INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO              ] [Text        ] Provider: sdl2
[INFO              ] [OSC         ] using <multiprocessing> for socket
[INFO              ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO              ] [GL          ] OpenGL version <b'4.4.13374 Compatibility Profile Context 15.20.1013'>
[INFO              ] [GL          ] OpenGL vendor <b'ATI Technologies Inc.'>
[INFO              ] [GL          ] OpenGL renderer <b'AMD Radeon(TM) HD 6480G'>
[INFO              ] [GL          ] OpenGL parsed version: 4, 4
[INFO              ] [GL          ] Shading version <b'4.40'>
[INFO              ] [GL          ] Texture max size <16384>
[INFO              ] [GL          ] Texture max units <18>
[INFO              ] [Window      ] auto add sdl2 input provider
[INFO              ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO              ] [ProbeSysfs  ] device match: /dev/input/event6
[INFO              ] [MTD         ] Read event from </dev/input/event6>
[INFO              ] [Base        ] Start application main loop
[INFO              ] [GL          ] NPOT texture support is available
 Exception in thread Thread-1:
 Traceback (most recent call last):
   File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
     self.run()
   File "/usr/lib/python3.4/threading.py", line 868, in run
     self._target(*self._args, **self._kwargs)
   File "/usr/lib/python3/dist-packages/kivy/input/providers/mtdev.py", line 197, in _thread_run
     _device = Device(_fn)
   File "/usr/lib/python3/dist-packages/kivy/lib/mtdev.py", line 131, in __init__
     self._fd = os.open(filename, os.O_NONBLOCK | os.O_RDONLY)
 PermissionError: [Errno 13] Permission denied: '/dev/input/event6'
 
[INFO              ] [Base        ] Leaving application in progress...

Process finished with exit code 0

Гуглится за 1 секунду.

https://stackoverflow.com/questions/26164723/kivy-and-buildozer-permission-de...

not an issue. Your user doesn't have access to directly read the input device - but usually that's because it's a laptop touchpad which Kivy doesn't need to read anyway (it uses it as a mouse, not a touch input device). You can safely ignore that one - if it really bothers you, you can modify udev rules to give your user access to those devices.
tyakos ★★★
()
Последнее исправление: tyakos (всего исправлений: 1)

Я когда запускаю пример на kivy, у меня тоже пишет

OSError: [Errno 13] Permission denied: '/dev/input/event4'

Но сам пример работает.

pawnhearts ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.