Can't import modules downloaded through garden

913 views
Skip to first unread message

Lawrence Moore

unread,
Jul 17, 2015, 12:51:42 PM7/17/15
to kivy-...@googlegroups.com
I was trying to use a module downloaded through garden, but something seems to be going wrong.  Let me use the module graph as an example.  I downloaded it through garden:

     garden install graph

This works fine. 
Then when I do this in the interpreter:

    from kivy.garden.graph import Graph

I get the following error:

     Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     ImportError: No module named graph

 Could someone tell me what I'm doing wrong? 

    

Kived Devik

unread,
Jul 17, 2015, 2:20:18 PM7/17/15
to kivy-...@googlegroups.com
What platform? On OS X the garden tool installs flowers to `~/.kivy/garden`, but Kivy doesn't load from that location - the garden packages need to be copied to `/Applications/Kivy.app/Contents/Resources/.kivy/garden`.

--
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+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lawrence Moore

unread,
Jul 17, 2015, 2:46:19 PM7/17/15
to kivy-...@googlegroups.com
OSX.  I'll give that a try.  Thanks!

Lawrence Moore

unread,
Jul 17, 2015, 5:13:19 PM7/17/15
to kivy-...@googlegroups.com
Unfortunately, that didn't seem to work. Here's my current file setup:

> pwd
/Applications/Kivy.app/Contents/Resources/.kivy/garden

> ls
LICENSE            docs            requirements.txt
README.md        examples        screenshot.png
__init__.py        mapview

Yet when I run

from kivy.garden.mapview import MapView

I still get "No module named mapview"



On Friday, July 17, 2015 at 11:20:18 AM UTC-7, Ryan Pessa wrote:

Kived Devik

unread,
Jul 17, 2015, 6:35:19 PM7/17/15
to kivy-...@googlegroups.com

Why did you move the contents of the garden.mapview folder instead of moving the folder itself?

Yoel Koenka

unread,
Feb 25, 2016, 9:11:43 AM2/25/16
to Kivy users support
Thanks a lot! saved my ass.
This has to come into their official installation notes somehow.
Reply all
Reply to author
Forward
0 new messages