[Baypiggies] Does anyone know Kivy?

Glen Jarvis glen at glenjarvis.com
Fri May 25 14:02:15 EDT 2018


I've heard a lot of great rumblings about Kivy lately. Does any know this well enough (or want to know this well enough) to give a talk?

Several people in the audience have asked me if someone was going to speak on this.

I've not used it before but it looked super interesting. So, I created  a sandbox and checked to see what was involved (not reading any docs at all, but rolling up my sleeves and seeing what would come out):

python3 -m venv venv

source venv/bin/activate

pip install --upgrade pip

pip install kivy

Discovered first dependency: `No module named 'Cython'`

pip install Cython

pip install kivy

It looks like there may be some dependencies (possibly OS Dependencies). From this top level, I assume Kivy didn't have the Cython dependency in it's setup.py. There are probably other dependencies as well (and it could be that this simply is a Python 2.7 project and not yet Python 3 compatible (I didn't check)).  My five minute time-box is up. I imagine the install docs will help a person get started.

I'm curious if others have installed Kivy. Has anyone tried to port an app to either an Android or iPhone? Has anyone built a desktop app?  How does it package - as an installable DMG for OSX for example?  Or, is this packaging left to the developer?

I'd be very interested in a talk on the subject if someone is willing to make one...

Output from my last (pip install kivy) before my timebox ran out:

        cythoning /private/var/folders/35/lz6t83p56nd8td64ghzt12tm0000gn/T/pip-install-7ganudps/kivy/kivy/graphics/svg.pyx to /private/var/folders/35/lz6t83p56nd8td64ghzt12tm0000gn/T/pip-install-7ganudps/kivy/kivy/graphics/svg.c

     Error compiling Cython file:

     ------------------------------------------------------------

     ...

                     end = time()

                     Logger.debug("Svg: Loaded {} in {:.2f}s".format(filename, end - start))

                 finally:

                     fd.close()

         cdef void reload(self) except *:

             ^

     ------------------------------------------------------------

     kivy/graphics/svg.pyx:469:9: Signature not compatible with previous declaration

     Error compiling Cython file:

     ------------------------------------------------------------

     ...

             cpdef flag_update(self, int do_parent=?, list _instrs=?)

         ELSE:

             cpdef flag_update(self, int do_parent=?)

         cdef void flag_update_done(self)

         cdef void set_parent(self, Instruction parent)

         cdef void reload(self)

                        ^

     ------------------------------------------------------------

     kivy/graphics/instructions.pxd:36:20: Previous declaration is here

    building 'kivy.graphics.svg' extension

    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -arch x86_64 -I/private/var/folders/35/lz6t83p56nd8td64ghzt12tm0000gn/T/pip-install-7ganudps/kivy/kivy/include -I/private/var/folders/35/lz6t83p56nd8td64ghzt12tm0000gn/T/pip-install-7ganudps/kivy/kivy/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/Users/glenjarvis/Desktop/kivy_example/venv/include -I/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c /private/var/folders/35/lz6t83p56nd8td64ghzt12tm0000gn/T/pip-install-7ganudps/kivy/kivy/graphics/svg.c -o build/temp.macosx-10.13-x86_64-3.6/private/var/folders/35/lz6t83p56nd8td64ghzt12tm0000gn/T/pip-install-7ganudps/kivy/kivy/graphics/svg.o -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks

    /private/var/folders/35/lz6t83p56nd8td64ghzt12tm0000gn/T/pip-install-7ganudps/kivy/kivy/graphics/svg.c:1:2: error: Do not use this file, it is the result of a failed Cython compilation.

    #error Do not use this file, it is the result of a failed Cython compilation.

     ^

    1 error generated.

     error: command 'clang' failed with exit status 1

    ----------------------------------------

Command "/Users/glenjarvis/Desktop/kivy_example/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/35/lz6t83p56nd8td64ghzt12tm0000gn/T/pip-install-7ganudps/kivy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/35/lz6t83p56nd8td64ghzt12tm0000gn/T/pip-record-ubo6z31o/install-record.txt --single-version-externally-managed --compile --install-headers /Users/glenjarvis/Desktop/kivy_example/venv/include/site/python3.6/kivy" failed with error code 1 in /private/var/folders/35/lz6t83p56nd8td64ghzt12tm0000gn/T/pip-install-7ganudps/kivy/

Cheers,

Glen Jarvis
--
I use these email security features:
- PGP keys / Keybase:  https://keybase.io/glenjarvis
- One name: https://onename.com/glenjarvis
- ProtonMail (https://protonmail.com/) for end-to-end encryption
- Lavabit (glenjarvis at lavabit.com) for end-to-end encryption
- SPF, DKIM, and DMARC DNS (glenjarvis.com)
- DMARC policy of 'reject' (to reject all mails that don't pass security)

Sent with [ProtonMail](https://protonmail.com) Secure Email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20180525/4d602e19/attachment-0001.html>


More information about the Baypiggies mailing list