Help with running kivy project from PyCharm, IDLE or Eric on Manjaro Linux

286 views
Skip to first unread message

Donald Schwartfeger

unread,
Jul 19, 2017, 6:26:38 AM7/19/17
to kivy-...@googlegroups.com
Hi
I had things working fine a year or so ago but after updating IDE's and from kivy 1.8 to 1.10 I now have problems which I can't seem to sort out.

I can run examples from the command line in both python2.7 and python3.6 but if I try to run them from PyCharm or IDLE or Eric6 I get a window that shows the kivy icon but the window has no content and if I try to close the window it displays "Unresponsive" in the title-bar but doesn't close and i have to kill from the system or "stop" in PyCharm.

The IDE is useful for completion etc but I would dearly love to be able to run and debug from it.

Any help would be appreciated
thanks

Andreas Ecker

unread,
Jul 19, 2017, 8:18:01 AM7/19/17
to kivy-...@googlegroups.com
I'm using PyCharm with kivy apps under Linux/Ubuntu (14.04 and 16.05) and Windows (7, 10) without any problems since nearly 2 years now. I never experienced any of your problems.

Did you implement your own eventloop (or twisted) in your code?

For better help/answers please post a small code example that is reproducing your problem.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Donald Schwartfeger

unread,
Jul 20, 2017, 7:44:55 AM7/20/17
to kivy-...@googlegroups.com
No special eventloop etc.

I tied many of the examples in "/usr/share/kivy-examples/".
They all ran from PyCharm except "/usr/share/kivy-examples/widgets/colorpicker.py" which seems to do the same as my app which also uses a ColorPicker !

Does a copy of "/usr/share/kivy-examples/widgets/colorpicker.py" run from within PyCharm for anyone else?
Can anyone supply some code using a ColorPicker that will run from PyCharm? I could not get anything to work with a ColorPicker mentioned.

Has anyone got any ideas as to how to work around this apart from just running from the command line?

thanks

Donald Schwartfeger

unread,
Jul 20, 2017, 10:16:33 PM7/20/17
to Kivy users support

The following also do not run properly from the IDE but run from commandline-

/home/donald/PycharmProjects/test//kivy-examples/widgets/recycleview/basic_data.py
/home/donald/PycharmProjects/test/kivy-examples/widgets/recycleview/basic_data.py
/home/donald/PycharmProjects/test/kivy-examples/tutorials/notes/final/main.py = runs until note added
/home/donald/PycharmProjects/test/kivy-examples/svg/main.py
/home/donald/PycharmProjects/test/kivy-examples/settings/main.py = runs until option change in settings
/home/donald/PycharmProjects/test/kivy-examples/RST_Editor/main.py
/home/donald/PycharmProjects/test/kivy-examples/demo/showcase/main.py
/home/donald/PycharmProjects/test/kivy-examples/demo/shadereditor/main.py
/home/donald/PycharmProjects/test/kivy-examples/demo/multistroke/main.py
/home/donald/PycharmProjects/test/kivy-examples/demo/kivycatalog/main.py

and don't use a colorpicker

Many exit with a message similar to the following from commandline-

$python /home/donald/PycharmProjects/test/kivy-examples/tutorials/notes/final/main.py
{'note_index': 0, 'note_content': '', 'note_title': 'New note', 'index': 0}
process 19152: arguments to dbus_message_unref() were incorrect, assertion "message->generation == _dbus_current_generation" failed in file dbus-message.c line 1722.
This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace
Aborted (core dumped)

or

$ python /home/donald/PycharmProjects/test/kivy-examples/widgets/recycleview/basic_data.py
process 19098: arguments to dbus_message_unref() were incorrect, assertion "message->generation == _dbus_current_generation" failed in file dbus-message.c line 1722.
This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace
Aborted (core dumped)

Would the problem be connected to this? If so what does it mean and how can it be fixed?
thanks


Donald Schwartfeger

unread,
Jul 21, 2017, 2:07:12 AM7/21/17
to kivy-...@googlegroups.com
With further testing there seems to be a problem with anything that has a 'TextInput' !

Using a very simple example like "kivy-examples/guide/designwithkv/main.py" this runs fine in the IDE
but if I add A TextInput to it's "kivy-examples/guide/designwithkv/controller.kv" file as follows-


Enter #:kivy 1.0

<Controller>:
    label_wid
: my_custom_label

   
BoxLayout:
        orientation
: 'vertical'
        padding
: 20

       
Button:
            text
: 'My controller info is: ' + root.info
            on_press
: root.do_action()

       
Label:
            id
: my_custom_label
            text
: 'My label before button press'
       
TextInput:
            text
: 'Starting text'

then it will not run from the PyCharm IDE but

does with no problem from command: 
python kivy-examples/guide/designwithkv/main.py
except when closed exits with-

process 26123: arguments to dbus_message_unref() were incorrect, assertion "message->generation == _dbus_current_generation" failed in file dbus-message.c line 1722.

This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace
Aborted (core dumped)

Trying to debug seemed to raise an error in- "/usr/lib/python3.6/site-packages/kivy/core/clipboard/clipboard_xsel.py"
Does this signify a bug or what?
Reply all
Reply to author
Forward
0 new messages