Error messages when running simple scripts

55 views
Skip to first unread message

Monte Milanuk

unread,
May 22, 2015, 8:28:06 PM5/22/15
to kivy-...@googlegroups.com
So... new to kivy, getting a bunch of messages spit out at me every time I run a script, some of which look like errors.

/usr/bin/python3.4 /home/monte/python/kivy/book/main.py
[INFO              ] [Logger      ] Record log in /home/monte/.kivy/logs/kivy_15-05-22_31.txt
[INFO              ] [Kivy        ] v1.9.0
[INFO              ] [Python      ] v3.4.0 (default, Apr 11 2014, 13:05:11) 
[GCC 4.8.2]
[INFO              ] [Factory     ] 173 symbols loaded
[INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO              ] [OSC         ] using <multiprocessing> for socket
[INFO              ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO              ] [GL          ] OpenGL version <b'3.0 Mesa 10.1.3'>
[INFO              ] [GL          ] OpenGL vendor <b'Intel Open Source Technology Center'>
[INFO              ] [GL          ] OpenGL renderer <b'Mesa DRI Intel(R) Ivybridge Mobile '>
[INFO              ] [GL          ] OpenGL parsed version: 3, 0
[INFO              ] [GL          ] Shading version <b'1.30'>
[INFO              ] [GL          ] Texture max size <8192>
[INFO              ] [GL          ] Texture max units <16>
[INFO              ] [Window      ] auto add sdl2 input provider
[INFO              ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO              ] [ProbeSysfs  ] device match: /dev/input/event4
[INFO              ] [MTD         ] Read event from </dev/input/event4>
[INFO              ] [Base        ] Start application main loop
 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/event4'
 
[INFO              ] [Base        ] Leaving application in progress...

Process finished with exit code 0

Running Ubuntu 14.04 LTS, using kivy 1.9.0 installed from the PPA listed on the kivy site.  Not sure who I should be contacting with this...

Thanks,

Monte

Alexander Taylor

unread,
May 22, 2015, 9:16:52 PM5/22/15
to kivy-...@googlegroups.com
You can ignore that PermissionError, it arises because all potential input devices are queried but this one isn't available to the application.

We should probably suppress the printing of the exception message, but you don't need to worry about it unless you have specific input problems of some kind (and even then it's probably not the cause).

Monte Milanuk

unread,
May 23, 2015, 8:38:07 PM5/23/15
to kivy-...@googlegroups.com
Okay, good to know.  Seemed odd, considering the first few scripts ran just fine.  Kind of disconcerting for a first impression, though.
Reply all
Reply to author
Forward
0 new messages