No "garden" folder? ( './garden': [Errno 2] No such file or directory )

1,059 views
Skip to first unread message

Turbolego

unread,
Feb 3, 2014, 2:23:52 PM2/3/14
to kivy-...@googlegroups.com
I'm trying to install kivy designer using the instructions from this page: https://github.com/kivy/kivy-designer

But i fail at this step: 

python ./garden install filebrowser

Error:

TURBOLEGOs-MacBook-Pro:tools TURBOLEGO$ python ./garden install filebrowser
python: can't open file './garden': [Errno 2] No such file or directory

And i have the latest version:

TURBOLEGOs-MacBook-Pro:tools TURBOLEGO$ python -c 'import kivy; print(kivy.__path__)'

[INFO              ] Kivy v1.8.1-dev

['/Library/Python/2.7/site-packages/kivy']

Please advise.


Ben Rousch

unread,
Feb 3, 2014, 2:36:14 PM2/3/14
to kivy-...@googlegroups.com
It looks like some of the Garden docs are out of date. Garden is no longer bundled with Kivy, it is a separate package you install via pip. After it's installed, you can use it via the `garden` command, without the ./

I think now you need to:
    * Upgrade setuptools if yours is old
    * pip install kivy-garden
    * garden install filebrowser


--
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/groups/opt_out.



--
 Ben Rousch
   bro...@gmail.com
   http://clusterbleep.net/
Message has been deleted

Turbolego

unread,
Feb 3, 2014, 2:51:18 PM2/3/14
to kivy-...@googlegroups.com
I tried this:

TURBOLEGOs-MacBook-Pro:kivy TURBOLEGO$ pip install kivy-garden

Requirement already satisfied (use --upgrade to upgrade): kivy-garden in /Library/Python/2.7/site-packages

Cleaning up...

TURBOLEGOs-MacBook-Pro:kivy TURBOLEGO$ 


I'll try updating my setuptools.

Ben Rousch

unread,
Feb 3, 2014, 2:52:26 PM2/3/14
to kivy-...@googlegroups.com
If garden is installed, then you can start using it. Note that you need to run it without the ./ in front of garden

Turbolego

unread,
Feb 3, 2014, 2:55:24 PM2/3/14
to kivy-...@googlegroups.com
I updated my setuptools using the instructions here: https://pypi.python.org/pypi/setuptools#upgrading-from-distribute

but when i try to run garden wihtout ./ i get this:

TURBOLEGOs-MacBook-Pro:tools TURBOLEGO$ python garden install filebrowser

python: can't open file 'garden': [Errno 2] No such file or directory

Any ideas?

Ben Rousch

unread,
Feb 3, 2014, 2:58:19 PM2/3/14
to kivy-...@googlegroups.com
Just use `garden install filebrowser`. It is a command now, not a Python file for you to run.

Turbolego

unread,
Feb 3, 2014, 3:05:37 PM2/3/14
to kivy-...@googlegroups.com
Yay! now we're getting somewhere...

TURBOLEGOs-MacBook-Pro:tools TURBOLEGO$ garden install filebrowser

Garden tool require requests library.

Try to "pip install requests" in root

TURBOLEGOs-MacBook-Pro:tools TURBOLEGO$ sudo pip install requests
Password:
Downloading/unpacking requests
  Downloading requests-2.2.1-py2.py3-none-any.whl (625kB): 625kB downloaded
Installing collected packages: requests
Successfully installed requests
Cleaning up...

And trying the command again:

garden install filebrowser
Downloading http://github.com/kivy-garden/garden.filebrowser/archive/master.zip ...
Done! garden.filebrowser is installed at: /Users/TURBOLEGO/.kivy/garden/garden.filebrowser
Cleaning...

Continuing the guide from: https://github.com/kivy/kivy-designer

git clone http://github.com/kivy/kivy-designer/
cd kivy-designer
python main.py

I get this error: "ImportError: No module named pygments"

Full output from terminal:

[INFO              ] Kivy v1.8.1-dev

[INFO              ] [Logger      ] Record log in /Users/TURBOLEGO/.kivy/logs/kivy_14-02-03_3.txt

[INFO              ] [Factory     ] 157 symbols loaded

[DEBUG             ] [Cache       ] register <kv.lang> with limit=None, timeout=Nones

[DEBUG             ] [Cache       ] register <kv.image> with limit=None, timeout=60s

[DEBUG             ] [Cache       ] register <kv.atlas> with limit=None, timeout=Nones

[INFO              ] [Image       ] Providers: img_imageio, img_tex, img_dds, img_pygame, img_gif (img_pil ignored)

[DEBUG             ] [Cache       ] register <kv.texture> with limit=1000, timeout=60s

[DEBUG             ] [Cache       ] register <kv.shader> with limit=1000, timeout=3600s

[DEBUG             ] [Window      ] Ignored <egl_rpi> (import error)

[INFO              ] [Window      ] Provider: pygame(['window_egl_rpi'] ignored)

[DEBUG             ] [Window      ] Display driver Quartz

[DEBUG             ] [Window      ] Actual window size: 800x600

[DEBUG             ] [Window      ] Actual color bits r8 g8 b8 a8

[DEBUG             ] [Window      ] Actual depth bits: 24

[DEBUG             ] [Window      ] Actual stencil bits: 8

[DEBUG             ] [Window      ] Actual multisampling samples: 2

[INFO              ] [GL          ] OpenGL version <2.1 NVIDIA-8.18.28 310.40.05f01>

[INFO              ] [GL          ] OpenGL vendor <NVIDIA Corporation>

[INFO              ] [GL          ] OpenGL renderer <NVIDIA GeForce GT 330M OpenGL Engine>

[INFO              ] [GL          ] OpenGL parsed version: 2, 1

[INFO              ] [GL          ] Shading version <1.20>

[INFO              ] [GL          ] Texture max size <8192>

[INFO              ] [GL          ] Texture max units <16>

[DEBUG             ] [Shader      ] Fragment compiled successfully

[DEBUG             ] [Shader      ] Vertex compiled successfully

[DEBUG             ] [ImageImageIO] Load </Library/Python/2.7/site-packages/kivy/data/glsl/default.png>

[INFO              ] [GL          ] BGRA texture support is available

[INFO              ] [Window      ] virtual keyboard not allowed, single mode, not docked

[INFO              ] [Text        ] Provider: pygame

[WARNING           ] Call to deprecated function __call__ in /Library/Python/2.7/site-packages/kivy/utils.py line 246.Called from /Users/TURBOLEGO/.kivy/garden/garden.filebrowser/__init__.py line 77 by <module>().

[DEBUG             ] [Cache       ] register <kv.loader> with limit=500, timeout=60s

[INFO              ] [Loader      ] using a thread pool of 2 workers

[DEBUG             ] [Cache       ] register <textinput.label> with limit=None, timeout=60.0s

[DEBUG             ] [Cache       ] register <textinput.width> with limit=None, timeout=60.0s

 Traceback (most recent call last):

   File "main.py", line 2, in <module>

     from designer.app import DesignerApp

   File "/Users/TURBOLEGO/kivy/kivy/tools/kivy-designer/designer/app.py", line 29, in <module>

     from designer.uix.kv_lang_area import KVLangArea

   File "/Users/TURBOLEGO/kivy/kivy/tools/kivy-designer/designer/uix/kv_lang_area.py", line 3, in <module>

     from kivy.uix.codeinput import CodeInput

   File "/Library/Python/2.7/site-packages/kivy/uix/codeinput.py", line 37, in <module>

     from pygments import highlight

 ImportError: No module named pygments


Thanks for your help so far! Seems like i just need "pygments" now?

Turbolego

unread,
Feb 3, 2014, 3:08:21 PM2/3/14
to kivy-...@googlegroups.com
SUCESS!

All i had to do, was:

pip install pygments

And then:

python main.py 

I'm now running kivy-designer!

THANKS!

Bill Janssen

unread,
Mar 15, 2014, 5:45:56 PM3/15/14
to kivy-...@googlegroups.com
Whoops!  Tried this on my Mac, and I seem to have borked easy_install without doing whatever it was that was necessary to update setuptools.

% sudo easy_install -U setuptools
Password:
Searching for distribute
Reading http://pypi.python.org/simple/distribute/
Best match: distribute 0.7.3
Downloading https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip#md5=c6c59594a7b180af57af8a0cc0cf5b4a
Processing distribute-0.7.3.zip
Writing /tmp/easy_install-BVLZ4K/distribute-0.7.3/setup.cfg
Running distribute-0.7.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-BVLZ4K/distribute-0.7.3/egg-dist-tmp-enq4Nr
warning
: install_lib: 'build/lib' does not exist -- no Python modules to install
Removing distribute 0.6.28 from easy-install.pth file
Adding distribute 0.7.3 to easy-install.pth file
Installed /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/distribute-0.7.3-py2.7.egg
Processing dependencies for distribute
Searching for setuptools>=0.7
Reading http://pypi.python.org/simple/setuptools/
Reading http://peak.telecommunity.com/snapshots/
Reading https://pypi.python.org/pypi/setuptools
Best match: setuptools 3.2
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-3.2.zip#md5=562bec581b860df302d24eed5672df4c
Processing setuptools-3.2.zip
Writing /tmp/easy_install-spW4d9/setuptools-3.2/setup.cfg
Running setuptools-3.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-spW4d9/setuptools-3.2/egg-dist-tmp-cOzWc7
Removing setuptools 0.6c12dev-r85381 from easy-install.pth file
Adding setuptools 3.2 to easy-install.pth file
Installing easy_install script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Installing easy_install-2.7 script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Installed /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-3.2-py2.7.egg
Finished processing dependencies for distribute
% pip install kivy-garden
Downloading/unpacking kivy-garden
 
Running setup.py egg_info for package kivy-garden
   
The required version of setuptools (>=1.1.6) is not available,
   
and can't be installed while this script is running. Please
    install a more recent version first, using
    '
easy_install -U setuptools'.
   
    (Currently using setuptools 0.6c11 (/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg))
    Complete output from command python setup.py egg_info:
    The required version of setuptools (>=1.1.6) is not available,
and can'
t be installed while this script is running. Please
install a more recent version first
, using
'easy_install -U setuptools'.


(Currently using setuptools 0.6c11 (/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg))
----------------------------------------
Command python setup.py egg_info failed with error code 2 in /private/var/folders/n_/2fwsybk96m712499402fbw0h0000gp/T/pip-build-wjanssen/kivy-garden
Storing complete log in /Users/wjanssen/Library/Logs/pip.log
%

Dang setuptools has never given me anything but problems.

Bill

Juvenal Claros

unread,
Aug 11, 2016, 1:44:21 PM8/11/16
to Kivy users support
hi.
im working at windows 7 and try it the same but give me the next error:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\windows\system32>cd /

C:\>cd Python34

C:\Python34>garden install filebrowser
'garden' is not recognized as an internal or external command,
operable program or batch file.

C:\Python34>cd Scripts

C:\Python34\Scripts>garden install filebrowser

C:\Python34\Scripts>python.exe C:\Python34\Scripts\garden install filebrowser

Garden tool require requests library.
Try to "pip install requests" in root

C:\Python34\Scripts>pip.exe install requests
Requirement already satisfied (use --upgrade to upgrade): requests in c:\python3
4\lib\site-packages

C:\Python34\Scripts>pip.exe install --upgrade requests
Requirement already up-to-date: requests in c:\python34\lib\site-packages

C:\Python34\Scripts>garden install filebrowser

C:\Python34\Scripts>python.exe C:\Python34\Scripts\garden install filebrowser

Garden tool require requests library.
Try to "pip install requests" in root

C:\Python34\Scripts>

Reply all
Reply to author
Forward
0 new messages