Is Kivy Possible With Latest PyCharm?

I've been trying to get Kivy to work with PyCharm.  So far no luck.

Peter Hanley states on his blog post here...

https://coderwall.com/p/te13rg

"Note: Recent versions of (either/both) Pycharm & Kivy (Pycharm 3.0 & Kivy 1.8.0 at least) have changed so that /usr/local/bin/kivy, which is (now?) a shell script that executes your default python, can not be used as a python interpreter within Pycharm"

Does this mean it's just not possible any longer?
0
3 comments
Avatar
Permanently deleted user
It is possible to use PyCharm with kivy.

This works for me, add these to your (project) interpreter paths in PyCharm:
/Applications/Kivy.app/Contents/Resources/kivy
/Applications/Kivy.app/Contents/Resources/lib
0
Avatar
Permanently deleted user
Gretna's response only seems to work if you do it in your main PyCharm Python Interpreter (not in a virtual environment).  Tested in PyCharm 3.4 with Python 2.7.6.
0
Avatar
Permanently deleted user

Anyone having trouble with the latest Kivy version? I'm using PyCharm CE 2016.2.3, Kivy 1.9.1.

For some reason my Kivy installation doesn't have the lib directory at /Applications/Kivy.app/Contents/Resources/lib

I added a path to /Applications/Kivy.app/Contents/Resources/kivy/kivy/lib instead, which is probably the wrong thing to do =\

The good news is the red underlines beneath Kivy code disappeared. The bad news is I can't launch Kivy apps from inside PyCharm. I tried out this guide which yields an ugly error on the very last USE_OSX_FRAMEWORKS=0 pip3 install kivy step

I'm now going to try out this older guide for the Kivy 1.9.0 instructions to see if that happens to do the trick.

0

Please sign in to leave a comment.