Coder Social home page Coder Social logo

kivy-garden / garden Goto Github PK

View Code? Open in Web Editor NEW
39.0 39.0 18.0 39 KB

The kivy garden installation script, split into its own package for convenient use in buildozer.

License: MIT License

Python 51.59% Batchfile 0.05% HTML 31.62% JavaScript 1.07% CSS 15.67%

garden's People

Contributors

akshayaurora avatar aphonicchaos avatar dessant avatar foreverwintr avatar jfinkhaeuser avatar keyweeusr avatar kuzi117 avatar lilyfoote avatar matham avatar scitesy avatar tito avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

garden's Issues

Cannot run Garden install "package" on Windows 10

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!

garden install fails

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).

"garden install" trying to use 'http' and not 'https'

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

kivy-garden garden bug (garden search fails)

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)

(venv) jb@jb-u16v1:~/python/meteread/bin$ garden search [INFO ] [Logger ] Record log in /home/jb/.kivy/logs/kivy_16-10-03_1.txt [INFO ] [Kivy ] v1.9.1 [INFO ] [Python ] v2.7.12 (default, Jul 1 2016, 15:12:24) [GCC 5.4.0 20160609] anchoredscrollview - Anchored ScrollView Kivy widget androidtabs - No description androidvlc - No description animlabel - An animated label implementation, allowing for custom transform functions animlabel_bezier - an extension of the animlabel tool, to make a label follow a bezier path bar - Bar widget represents the 0-100 range percentage value as a coloured rectangle. It is known as used in statistics graphs. cefpython - CEFPython Kivy widget circulardatetimepicker - Android-like date & time picker for Kivy circularlayout - CircularLayout for Kivy collider - Collides a point with a space defined by a curve. contextmenu - No description datetimepicker - roulette based datetime selector like in iOS and android. ddd - A 3d view widget for kivy desktopvideoplayer - No description docbrowser - Browser for view documentation of Python modules filebrowser - An advanced file browser. filechooserthumbview - FileChooserThumbView for Kivy gauge - Kivy Widget Gauge geartick - A gear based Ticker for use in rotating sliders graph - Displays plots on a graph. hotkeybehavior - Global HotKey behavior for a Kivy root widget iconfonts - Simple helper functions to make easier to use icon fonts in Labels and derived widgets inkcanvas - Gesture recognition knob - Knob widget for Kivy. magnet - A magnet widget for kivy garden mapview - Mapview is a Kivy widget for displaying interactive maps. matplotlib - Matplotlib backends using kivy modernmenu - a stylized menu system for kivy moretransitions - More transitions for Kivy screen manager Traceback (most recent call last): File "/home/jb/python/venv/bin/garden", line 223, in GardenTool().main(sys.argv[1:]) File "/home/jb/python/venv/bin/garden", line 90, in main if self.options.kivy and garden_kivy_dir is None: AttributeError: 'Namespace' object has no attribute 'kivy' (venv) jb@jb-u16v1:~/python/meteread/bin$

garden install --app flag installs in libs/garden/garden.[pkg]

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

Error : pkg_resources.ResolutionError: No script named 'garden'

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'

AttributeError: 'Namespace' object has no attribute 'kivy'

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'

garden: command not found

Following the official install instructions for kivy garden fail on Debian 10:

Example execution

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:~$ 

System info

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:~$ 

While installing garden graph getting error

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

"import kivy" fails with abort, so except ImportError never caught

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.

garden does not handle capital letters properly

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'

garden installation script does not work under windows

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.

TypeError When Installing New Widget Python3

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

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.