unable to install kivy-garden packages

2,378 views
Skip to first unread message

DanielK

unread,
Feb 22, 2014, 4:12:18 PM2/22/14
to kivy-...@googlegroups.com
I followed the instructions (https://github.com/kivy/kivy/wiki/Using-Kivy-with-an-existing-Python-installation-on-Windows-(64-or-32-bit)) to get kivy 1.8.0 integrated with my standard python.
This seemed to be successful, I could run run some of my scripts.

Then I tried to install some of the garden modules (http://kivy.org/docs/api-kivy.garden.html).

I started with:

C:\Python27\Lib\site-packages\kivy> pip.exe install -U kivy-garden
Requirement already up-to-date: kivy-garden in c:\python27\lib\site-packages
Requirement already up-to-date: requests in c:\python27\lib\site-packages (from kivy-garden)
Cleaning up...

Looks ok to me, but the next step fails:

C:\Python27\Lib\site-packages\kivy> garden install filebrowser
C:\Python27\Lib\site-packages\kivy>python.exe C:\Python27\Scripts\garden install filebrowser
python.exe: can't open file 'C:\Python27\Scripts\garden': [Errno 2] No such file or directory
PS C:\Python27\Lib\site-packages\kivy>

In comparison to the standalone kivy distribution I recognised, that the garden-script was indeed missing, and I copied it from the standalone distribution.
Now I get:
C:\Python27\Lib\site-packages\kivy> garden install filebrowser
 
C:\Python27\Lib\site-packages\kivy>python.exe C:\Python27\Scripts\garden install filebrowser
Traceback (most recent call last):
  File "C:\Python27\Scripts\garden", line 5, in <module>
    pkg_resources.run_script('Kivy-Garden==0.1.1', 'garden')
  File "C:\Python27\lib\site-packages\pkg_resources.py", line 488, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "C:\Python27\lib\site-packages\pkg_resources.py", line 1348, in run_script
    raise ResolutionError("No script named %r" % script_name)
pkg_resources.ResolutionError: No script named 'garden'
C:\Python27\Lib\site-packages\kivy>

I also tried the garden.bat:

C:\Python27\Lib\site-packages\kivy> garden.bat install filebrowser

C:\Python27\Lib\site-packages\kivy>python.exe C:\Python27\Scripts\garden install filebrowser
Traceback (most recent call last):
  File "C:\Python27\Scripts\garden", line 5, in <module>
    pkg_resources.run_script('Kivy-Garden==0.1.1', 'garden')
  File "C:\Python27\lib\site-packages\pkg_resources.py", line 488, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "C:\Python27\lib\site-packages\pkg_resources.py", line 1348, in run_script
    raise ResolutionError("No script named %r" % script_name)
pkg_resources.ResolutionError: No script named 'garden'

Help is welcome!

loaded_truss

unread,
Feb 22, 2014, 6:01:28 PM2/22/14
to kivy-...@googlegroups.com
First, what did you copy from the standalone dist? Both garden and garden.bat?

What happens if you try to uninstall garden and reinstall instead of upgrade?

Finally, try downloading the zip from https://pypi.python.org/pypi/kivy-garden/0.1.1 directly and run setup.py on it.

Daniel Krause

unread,
Feb 23, 2014, 3:09:54 AM2/23/14
to kivy-...@googlegroups.com
I copied just garden (not garden.bat, that was already there).

Following your suggestions.
Unistall:
C:\Users\mdk> pip.exe uninstall kivy-garden
Uninstalling Kivy-Garden:
  c:\python27\lib\site-packages\garden\__init__.py
  c:\python27\lib\site-packages\garden\__init__.pyc
  c:\python27\lib\site-packages\kivy_garden-0.1.1-py2.7.egg-info
  c:\python27\scripts\garden
  c:\python27\scripts\garden.bat
Proceed (y/n)? y
  Successfully uninstalled Kivy-Garden

Install:
C:\Users\mdk> pip.exe install kivy-garden
Downloading/unpacking kivy-garden
  Downloading kivy-garden-0.1.1.tar.gz
  Running setup.py (path:c:\users\mdk\appdata\local\temp\pip_build_mdk\kivy-garden\setup.py) egg_info for package kivy-g
arden

Requirement already satisfied (use --upgrade to upgrade): requests in c:\python27\lib\site-packages (from kivy-garden)
Installing collected packages: kivy-garden
  Running setup.py install for kivy-garden

Successfully installed kivy-garden
Cleaning up...

Install filebrowser:
C:\Users\mdk> garden install filebrowser

C:\Users\mdk>python.exe C:\Python27\Scripts\garden install filebrowser
Garden package already installed in C:\Users\mdk\.kivy\garden\garden.filebrowser

Starting python and import:
C:\Users\mdk> python.exe
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from kivy.garden import filebrowser
[INFO              ] Kivy v1.8.0
[INFO              ] [Logger      ] Record log in C:\Users\mdk\.kivy\logs\kivy_14-02-23_0.txt
[INFO              ] [Factory     ] 157 symbols loaded
[DEBUG             ] [Cache       ] register <kv.image> with limit=None, timeout=60s
[DEBUG             ] [Cache       ] register <kv.atlas> with limit=None, timeout=Nones
[INFO              ] [Image       ] Providers: img_tex, img_dds, img_pygame, img_pil, img_gif
[DEBUG             ] [Cache       ] register <kv.texture> with limit=1000, timeout=60s
[DEBUG             ] [Cache       ] register <kv.shader> with limit=1000, timeout=3600s
[DEBUG             ] [Cache       ] register <kv.lang> with limit=None, timeout=Nones
[INFO              ] [Text        ] Provider: pygame
[WARNING           ] [Call to deprecated function __call__ in C]\Python27\lib\site-packages\kivy\utils.py line 246.Calle
d from C:\Users\mdk\.kivy\garden\garden.filebrowser\__init__.py line 77 by <module>().
>>>

Seems to work, thank you!


--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/y6CdnlfuVP0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages