kivy-garden / garden Goto Github PK
View Code? Open in Web Editor NEWThe kivy garden installation script, split into its own package for convenient use in buildozer.
License: MIT License
The kivy garden installation script, split into its own package for convenient use in buildozer.
License: MIT License
I have tried several times to install kivy garden packages using garden install "package" however I keep getting the following issue:
D:\path to venv>python.exe D:\path to venv\Scripts\garden install matplotlib
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python.exe: can't open file 'D:\Users\Fionn': [Errno 2] No such file or directory
I suspect the issue is potentially due to a space in my path however I won't be able to create a work around to this. I have tried adding garden to the path however I may not have added the correct folder to the path.
What I was hoping to do was to copy the files directly from github to the correct location however I am not sure how that could be done.
Any assistance would be hugely appreciated!
The executable has the name garden which is generic and may conflict with other binaries that have that name, in particular https://sourceforge.net/projects/garden/ Might it be possible to rename the executable file from garden to kivy-garden?
Hi,
Since last commit, I can't install anymore :
Traceback (most recent call last):
File "/home/kivy/venv/bin/garden", line 189, in
GardenTool().main(sys.argv[1:])
File "/home/kivy/venv/bin/garden", line 71, in main
options.func()
File "/home/kivy/venv/bin/garden", line 109, in cmd_install
fd = self.download(opts.package)
File "/home/kivy/venv/bin/garden", line 170, in download
data += buf
TypeError: Can't convert 'bytes' object to str implicitly
Plus 'pip list' shows Kivy-Garden in version 0.1.1
But if I use garden from previous commit (2017-07-21), everything is OK (trying to install mapview).
I'm trying to add the Kivy Garden Gauge widget from https://github.com/kivy-garden/garden.gauge on my raspberry pi 3 (jessie) and also on windoze 8.1 machine. It fails on both.
see below, error from RPi:
'''
pi@myrpi3:~/KivyProjects/new_proj $ garden install guage
[INFO ] [Logger ] Record log in /home/pi/.kivy/logs/kivy_16-05-12_4.txt
[INFO ] [Kivy ] v1.9.2-dev0
[INFO ] [Python ] v2.7.9 (default, Mar 8 2015, 00:52:26)
[GCC 4.9.2]
Downloading http://github.com/kivy-garden/garden.guage/archive/master.zip ...
Unable to find the garden package. (error=404)
'''
NOTE: it's trying to use 'HTTP' and not 'HTTPS'. I confirmed that the zip file doesn't exist at http://github.com/kivy-garden/garden.guage/archive/master.zip (get 404 like above). It does exist at https://github.com/kivy-garden/garden.guage/archive/master.zip
Same happens on Windoze 8.1 too, BTW.
Tried Google but couldn't find a way to force HTTPS on 'garden install'. Is that possible? How do I configure garden to force use of HTTPS?
Thanks
quotes should be added in garden.bat to be
python.exe "%~dp0garden" %*
instead of
python.exe %~dp0garden %*
garden install cefpython
produced an output of 54k lines, almost all of it being download progress reporting. It stressed the CPU, and the download took 15 minutes, despite having a fast connection.
garden search installed in virtual environment fails. Fresh virtual environment, simple list of modules fails, no code on my side involved so I believe it is an error in grden itself. Details:
(venv) jb@jb-u16v1:~/python/meteread/bin$ pip list
appdirs (1.4.0)
buildozer (0.32)
colorama (0.3.7)
Cython (0.24.1)
Jinja2 (2.8)
Kivy (1.9.1)
Kivy-Garden (0.1.4)
MarkupSafe (0.23)
pexpect (4.2.1)
pip (8.1.2)
pkg-resources (0.0.0)
ptyprocess (0.5.1)
python-for-android (0.4)
requests (2.11.1)
setuptools (28.2.0)
sh (1.11)
six (1.10.0)
virtualenv (15.0.3)
wheel (0.30.0a0)
Hi,
I am trying to use garden.mapview module but does not work as exptected with Xcode.
I followed the instructions in https://github.com/kivy-garden/garden.mapview
"garden install --app mapview".
However the application fails in Xcode
$> garden search
returns incomplete list of repositories. Thats because pagination of github api v3 is not handled accordingly in method cmd_search
If you install a garden package in your app it installed in libs/garden/garden.[pkg] directory, which makes it impossible to import.
E.g. garden install --app filebrowser
installs the filebrowser in libs/garden/garden.filebrowser
Is this a bug or by design?
If it's a bug, I'd be willing to fix it.
Kivy 1.9.1
OS: Windows 7
When I install garden via pip
(python2), the script bin/garden is not set with executable permission and can not be run.
Kivy v1.9.1
Python v2.7.10
Traceback (most recent call last):
File "/usr/local/bin/garden", line 4, in
import('pkg_resources').run_script('Kivy-Garden==0.1.4', 'garden')
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 739, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1486, in run_script
raise ResolutionError("No script named %r" % script_name)
pkg_resources.ResolutionError: No script named 'garden'
When executing garden search from commandline in Ubuntu 16.04 using python 2.7.
Seems to exists in both 1.9.0 from the ubuntu repository and 1.9.1 from the kivy site
http://pastebin.com/7R9MVwcF
jan@tobis:~/projects/kivylayouts$ garden search graph
[WARNING] [Config ] Older configuration version detected (13 instead of 14)
[WARNING] [Config ] Upgrading configuration in progress.
[INFO ] [Logger ] Record log in /home/jan/.kivy/logs/kivy_16-07-27_20.txt
[INFO ] [Kivy ] v1.9.1
[INFO ] [Python ] v2.7.11+ (default, Apr 17 2016, 14:00:29)
[GCC 5.3.1 20160413]
graph - Displays plots on a graph.
Traceback (most recent call last):
File "/usr/local/bin/garden", line 223, in <module>
GardenTool().main(sys.argv[1:])
File "/usr/local/bin/garden", line 90, in main
if self.options.kivy and garden_kivy_dir is None:
AttributeError: 'Namespace' object has no attribute 'kivy'
Following the official install instructions for kivy garden fail on Debian 10:
Here is an example execution using the commands documented in the above link:
user@disp3499:~$ sudo apt-get install python3 python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pip is already the newest version (18.1-5).
python3 is already the newest version (3.7.3-1).
The following packages were automatically installed and are no longer required:
linux-headers-4.19.0-6-amd64 linux-headers-4.19.0-6-common
linux-image-4.19.0-6-amd64 python-daemon python-lockfile python-qubesdb
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
user@disp3499:~$
user@disp3499:~$ sudo pip3 install requests
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.21.0)
user@disp3499:~$
user@disp3499:~$ pip3 install kivy-garden
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: kivy-garden in /home/user/.local/lib/python3.7/site-packages (0.1.4)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from kivy-garden) (2.21.0)
user@disp3499:~$
user@disp3499:~$ garden
bash: garden: command not found
user@disp3499:~$
user@disp3499:~$ python3 --version
Python 3.7.3
user@disp3499:~$ uname -a
Linux disp3499 4.19.132-1.pvops.qubes.x86_64 #1 SMP Tue Jul 14 03:42:21 UTC 2020 x86_64 GNU/Linux
user@disp3499:~$ cat /etc/issue
Debian GNU/Linux 10 \n \l
user@disp3499:~$ pip3 list
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Package Version
----------------- -------------
ansible 2.7.7
apache-libcloud 2.4.0
asn1crypto 0.24.0
bcrypt 3.1.6
certifi 2018.8.24
chardet 3.0.4
croniter 0.3.24
cryptography 2.6.1
cupshelpers 1.0
distro 1.3.0
docutils 0.16
entrypoints 0.3
httplib2 0.11.3
idna 2.6
Jinja2 2.10
jmespath 0.9.4
keyring 17.1.1
keyrings.alt 3.1.1
Kivy-Garden 0.1.4
lockfile 0.12.2
MarkupSafe 1.1.0
meld 3.20.0
msgpack 0.5.6
netaddr 0.7.19
ntlm-auth 1.1.0
numpy 1.16.2
olefile 0.46
paramiko 2.4.2
Pillow 5.4.1
pip 20.2.2
psutil 5.5.1
pyasn1 0.4.2
pycairo 1.16.2
pycrypto 2.6.1
pycups 1.9.73
pycurl 7.43.0.2
Pygments 2.6.1
PyGObject 3.30.4
pykerberos 1.1.14
PyNaCl 1.3.0
PySimpleSOAP 1.16.2
pysmbc 1.0.15.6
python-apt 1.8.4.1
python-daemon 2.2.3
python-dateutil 2.7.3
python-debian 0.1.35
python-debianbts 2.8.2
pytz 2019.1
pywinrm 0.3.0
pyxdg 0.25
PyYAML 3.13
qubesagent 4.0.56
QubesDB 1.0
qubesimgconverter 4.0.30
reportbug 7.5.3-deb10u1
requests 2.21.0
requests-kerberos 0.11.0
requests-ntlm 1.1.0
salt 2018.3.4
scour 0.37
SecretStorage 2.3.1
setuptools 40.8.0
simplejson 3.16.0
six 1.12.0
tornado4 4.5.3
urllib3 1.24.1
virtualenv 15.1.0
wheel 0.32.3
xcffib 0.8.1
xmltodict 0.11.0
user@disp3499:~$
"garden install" does not perform the requisite Cython installs for packages. See tickmarker for an example of this.
While installing garden graph i m getting an error ...
command used
1 python garden install graph
error
` (venv) C:\Users\AJU\PycharmProjects\KIVY\venv\Scripts>python garden.py install graph
[INFO ] [Logger ] Record log in C:\Users\AJU.kivy\logs\kivy_21-08-20_79.txt
[INFO ] [deps ] Successfully imported "kivy_deps.angle" 0.3.0
[INFO ] [deps ] Successfully imported "kivy_deps.glew" 0.3.0
[INFO ] [deps ] Successfully imported "kivy_deps.sdl2" 0.3.1
[INFO ] [Kivy ] v2.0.0
[INFO ] [Kivy ] Installed at "C:\Users\AJU\PycharmProjects\KIVY\venv\lib\site-packages\kivy_init_.py"
[INFO ] [Python ] v3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]
[INFO ] [Python ] Interpreter at "C:\Users\AJU\PycharmProjects\KIVY\venv\Scripts\python.exe"
Downloading http://github.com/kivy-garden/garden.graph/archive/master.zip ...
Progression 1024 |
Progression 2048 /
Progression 3072 -
Progression 4096
Progression 5120 |
Progression 6144 /
Progression 7168 -
Progression 8192
Progression 9216 |
Progression 10240 /
Progression 11264 -
Progression 12012
Download done (12012 downloaded)
Extracting...
Cleaning...
Traceback (most recent call last):
File "C:\Users\AJU\PycharmProjects\KIVY\venv\Scripts\garden.py", line 224, in
GardenTool().main(sys.argv[1:])
File "C:\Users\AJU\PycharmProjects\KIVY\venv\Scripts\garden.py", line 84, in main
options.func()
File "C:\Users\AJU\PycharmProjects\KIVY\venv\Scripts\garden.py", line 143, in cmd_install
self.extract(fd, tempdir)
File "C:\Users\AJU\PycharmProjects\KIVY\venv\Scripts\garden.py", line 215, in extract
z = zipfile.ZipFile(fd)
File "C:\Users\AJU\AppData\Local\Programs\Python\Python39\lib\zipfile.py", line 1257, in init
self._RealGetContents()
File "C:\Users\AJU\AppData\Local\Programs\Python\Python39\lib\zipfile.py", line 1324, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
I'm trying to run "garden" in a conda install script, but when it tries to do "import kivy", kivy complains about not being able to find a Text provider, and aborts! Of course, in this application, it doesn't need a Text provider (this is a Kivy bug, IMO), but it still doesn't help with garden.
Kivy-Garden (0.1.4)
Minor issue, but garden seem to ignore capital letters in some cases. Downloading the package works, but installation fails. FileBrowser
installation example below. Installing filebrowser
works fine, though.
$ garden install FileBrowser
[INFO ] [Logger ] Record log in /home/gunnar/.kivy/logs/kivy_17-02-08_9.txt
[INFO ] [Kivy ] v1.9.1
[INFO ] [Python ] v2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170118]
Downloading http://github.com/kivy-garden/garden.FileBrowser/archive/master.zip ...
('Progression', 1024, '|', '\r')
<...>
Download done (206964 downloaded)
Extracting...
Installing new version...
Cleaning...
Traceback (most recent call last):
File "/home/gunnar/app/kivy-garden/venv/bin/garden", line 223, in <module>
GardenTool().main(sys.argv[1:])
File "/home/gunnar/app/kivy-garden/venv/bin/garden", line 84, in main
options.func()
File "/home/gunnar/app/kivy-garden/venv/bin/garden", line 155, in cmd_install
move(source_directory, dest_dir)
File "/usr/lib/python2.7/shutil.py", line 302, in move
copy2(src, real_dst)
File "/usr/lib/python2.7/shutil.py", line 130, in copy2
copyfile(src, dst)
File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/tmp/garden-BcdygW/garden.FileBrowser-master'
The pip garden installation does not works under windows:
C:\Program Files\Python38\Scripts>garden.bat
C:\Program Files\Python38\Scripts>
C:\Program Files\Python38\Scripts>python.exe C:\Program Files\Python38\Scripts\garden
C:\Program Files\Python38\Scripts>
If I rename the garden
file in script
to garden.py and run after
C:\Program Files\Python38>python.exe Scripts\garden.py install graph
it works.
A bit nasty if you need to setup a new pc to run your old kivy stuff.
Traceback (most recent call last):
File "/usr/local/bin/garden", line 189, in
GardenTool().main(sys.argv[1:])
File "/usr/local/bin/garden", line 71, in main
options.func()
File "/usr/local/bin/garden", line 109, in cmd_install
fd = self.download(opts.package)
File "/usr/local/bin/garden", line 170, in download
data += buf
TypeError: Can't convert 'bytes' object to str implicitly
Installing garden.graph using python 3.3.2+.
Line in question
Install on OS X fails exactly as described here [https://www.bountysource.com/issues/27294650-how-to-use-kivy-garden-on-mac]
Help very much appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.