kivy / kivy-designer

UI designer for Kivy - DEPRECATED
https://kivy-designer.readthedocs.io
MIT License
821 stars 209 forks source link

crash in menu "edit profile" #380

Open cmougin opened 6 years ago

cmougin commented 6 years ago

on a fresh new install, I launched and chose "new project" with "BoxLayout". then clic on Menu:RUN/Edit Profiles… => crash, see full trace below. I'm running on Windows 7, Python 2.7.13. 2 errors and many warnings at start up in the console: C:\Utilisateurs\FR20340\OneDrive\Personnel\hacking\kivy-designer>python -m designer [INFO ] [Logger ] Record log in C:\Utilisateurs\FR20340.kivy\logs\kivy_18-05-07_27.txt [INFO ] [Kivy ] v1.10.0 [INFO ] [Python ] v2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] [INFO ] [Factory ] 194 symbols loaded [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored) [INFO ] [Text ] Provider: sdl2 [INFO ] [OSC ] using for socket [INFO ] [Window ] Provider: sdl2 [INFO ] [GL ] Using the "OpenGL" graphics system [INFO ] [GL ] GLEW initialization succeeded [INFO ] [GL ] Backend used [INFO ] [GL ] OpenGL version <4.4.0 - Build 20.19.15.4312> [INFO ] [GL ] OpenGL vendor [INFO ] [GL ] OpenGL renderer <Intel(R) HD Graphics 520> [INFO ] [GL ] OpenGL parsed version: 4, 4 [INFO ] [GL ] Shading version <4.40 - Build 20.19.15.4312> [INFO ] [GL ] Texture max size <16384> [INFO ] [GL ] Texture max units <32> [INFO ] [Shader ] fragment shader: <WARNING: 0:7: '' : #version directive missing> [INFO ] [Shader ] vertex shader: <WARNING: 0:7: '' : #version directive missing> [INFO ] [Window ] auto add sdl2 input provider [INFO ] [Window ] virtual keyboard not allowed, single mode, not docked [ERROR ] [filechooser ] win32file module is missing [ERROR ] [filechooser ] we cant check if a file is hidden or not [WARNING] [IOError ] [Errno 2] No such file or directory: 'C:\Utilisateurs\FR20340\.kivy\garden\garden.xpopup\xpopup.mo'. Switch to the defaults. [INFO ] [Clipboard ] Provider: winctypes [INFO ] [Base ] Start application main loop [INFO ] [GL ] NPOT texture support is available [WARNING] [Accordion ] not enough space for displaying all children [WARNING] [Accordion ] need 220px, got 100px [WARNING] [Accordion ] layout aborted. [WARNING] [Accordion ] not enough space for displaying all children [WARNING] [Accordion ] need 176px, got 100px [WARNING] [Accordion ] layout aborted. [WARNING] [Accordion ] not enough space for displaying all children [WARNING] [Accordion ] need 220px, got 100px [WARNING] [Accordion ] layout aborted. [WARNING] [Accordion ] not enough space for displaying all children [WARNING] [Accordion ] need 176px, got 100px [WARNING] [Accordion ] layout aborted. [WARNING] [Accordion ] not enough space for displaying all children [WARNING] [Accordion ] need 176px, got 100px [WARNING] [Accordion ] layout aborted. [WARNING] [Accordion ] not enough space for displaying all children [WARNING] [Accordion ] need 176px, got 100px [WARNING] [Accordion ] layout aborted. [WARNING] [Accordion ] not enough space for displaying all children [WARNING] [Accordion ] need 176px, got 100px [WARNING] [Accordion ] layout aborted. [WARNING] [Accordion ] not enough space for displaying all children [WARNING] [Accordion ] need 176px, got 100px [WARNING] [Accordion ] layout aborted. [WARNING] [Call to deprecated function init in C]\Python27\lib\site-packages\kivy\uix\selectableview.py line 38.Called from C:\Python27\lib\site-packages\kivy\uix\listview.py line 593 by init(). [WARNING] [Accordion ] not enough space for displaying all children [WARNING] [Accordion ] need 220px, got 100px [WARNING] [Accordion ] layout aborted. [WARNING] [Lang ] The file main.kv is loaded multiples times, you might have unwanted behaviors.

Regards Christophe PS: btw, PIP is installed on my system. PJ: Below trace stack:

Environment Info

Pip is not installed

Traceback

Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\kivy\core\window\window_sdl2.py", line 663, in mainloop
    self._mainloop()
  File "C:\Python27\lib\site-packages\kivy\core\window\window_sdl2.py", line 405, in _mainloop
    EventLoop.idle()
  File "C:\Python27\lib\site-packages\kivy\base.py", line 342, in idle
    self.dispatch_input()
  File "C:\Python27\lib\site-packages\kivy\base.py", line 327, in dispatch_input
    post_dispatch_input(*pop(0))
  File "C:\Python27\lib\site-packages\kivy\base.py", line 233, in post_dispatch_input
    listener.dispatch('on_motion', etype, me)
  File "kivy\_event.pyx", line 718, in kivy._event.EventDispatcher.dispatch (kivy\_event.c:8191)
  File "C:\Python27\lib\site-packages\kivy\core\window\__init__.py", line 1192, in on_motion
    self.dispatch('on_touch_up', me)
  File "kivy\_event.pyx", line 718, in kivy._event.EventDispatcher.dispatch (kivy\_event.c:8191)
  File "C:\Python27\lib\site-packages\kivy\core\window\__init__.py", line 1228, in on_touch_up
    if w.dispatch('on_touch_up', touch):
  File "kivy\_event.pyx", line 718, in kivy._event.EventDispatcher.dispatch (kivy\_event.c:8191)
  File "C:\Python27\lib\site-packages\kivy\uix\widget.py", line 479, in on_touch_up
    if child.dispatch('on_touch_up', touch):
  File "kivy\_event.pyx", line 718, in kivy._event.EventDispatcher.dispatch (kivy\_event.c:8191)
  File "C:\Python27\lib\site-packages\kivy\uix\widget.py", line 479, in on_touch_up
    if child.dispatch('on_touch_up', touch):
  File "kivy\_event.pyx", line 718, in kivy._event.EventDispatcher.dispatch (kivy\_event.c:8191)
  File "designer\uix\contextual.py", line 342, in on_touch_up
  File "C:\Python27\lib\site-packages\kivy\uix\widget.py", line 479, in on_touch_up
    if child.dispatch('on_touch_up', touch):
  File "kivy\_event.pyx", line 718, in kivy._event.EventDispatcher.dispatch (kivy\_event.c:8191)
  File "C:\Python27\lib\site-packages\kivy\uix\widget.py", line 479, in on_touch_up
    if child.dispatch('on_touch_up', touch):
  File "kivy\_event.pyx", line 718, in kivy._event.EventDispatcher.dispatch (kivy\_event.c:8191)
  File "C:\Python27\lib\site-packages\kivy\uix\scrollview.py", line 833, in on_touch_up
    if self.dispatch('on_scroll_stop', touch):
  File "kivy\_event.pyx", line 718, in kivy._event.EventDispatcher.dispatch (kivy\_event.c:8191)
  File "C:\Python27\lib\site-packages\kivy\uix\scrollview.py", line 872, in on_scroll_stop
    self.simulate_touch_down(touch)
  File "C:\Python27\lib\site-packages\kivy\uix\scrollview.py", line 596, in simulate_touch_down
    ret = super(ScrollView, self).on_touch_down(touch)
  File "C:\Python27\lib\site-packages\kivy\uix\widget.py", line 457, in on_touch_down
    if child.dispatch('on_touch_down', touch):
  File "kivy\_event.pyx", line 718, in kivy._event.EventDispatcher.dispatch (kivy\_event.c:8191)
  File "C:\Python27\lib\site-packages\kivy\uix\widget.py", line 457, in on_touch_down
    if child.dispatch('on_touch_down', touch):
  File "kivy\_event.pyx", line 718, in kivy._event.EventDispatcher.dispatch (kivy\_event.c:8191)
  File "C:\Python27\lib\site-packages\kivy\uix\behaviors\button.py", line 151, in on_touch_down
    self.dispatch('on_press')
  File "kivy\_event.pyx", line 714, in kivy._event.EventDispatcher.dispatch (kivy\_event.c:8146)
  File "kivy\_event.pyx", line 1225, in kivy._event.EventObservers.dispatch (kivy\_event.c:14035)
  File "kivy\_event.pyx", line 1109, in kivy._event.EventObservers._dispatch (kivy\_event.c:12816)
  File "C:\Python27\lib\site-packages\kivy\lang\builder.py", line 64, in custom_callback
    exec(__kvlang__.co_value, idmap)
  File "C:\Utilisateurs\FR20340\OneDrive\Personnel\hacking\kivy-designer\designer\designer.kv", line 1902, in <module>
    on_press: root.action_btn_edit_prof_project_pressed()
  File "designer\app.py", line 1568, in action_btn_edit_prof_project_pressed
  File "designer\core\profile_settings.py", line 142, in load_profiles
  File "designer\core\profile_settings.py", line 170, in update_panel
  File "C:\Python27\lib\site-packages\kivy\uix\settings.py", line 975, in add_json_panel
    panel = self.create_json_panel(title, config, filename, data)
  File "C:\Python27\lib\site-packages\kivy\uix\settings.py", line 990, in create_json_panel
    with open(filename, 'r') as fd:
IOError: [Errno 2] No such file or directory: u'designer\\data\\settings\\build_profile.json'

End of Traceback