filebrowser error in windows for kivy

蹲街弑〆低调 提交于 2019-12-23 15:39:38

问题


I have installed dev version 1.8 for kivy. Now I am installing the kivy-designer in windows. I have done with installing filebrowser in tools.

python ../garden.py install filebrowser
[INFO              ] Kivy v1.8.0-dev

still, when I am trying to run main.py of kivy designer in windows, it gives me error :

  Traceback (most recent call last):
     File "main.py", line 2, in <module>
     from designer.app import DesignerApp
     File "D:\Kivy-1.6.0-w32\kivy\kivy\tools\kivy-designer\designer\app.py", line 17, in <module>
     from kivy.garden.filebrowser import FileBrowser
     ImportError: No module named filebrowser

how i will solve this error?


回答1:


They say "...we provide a tool in kivy/tools/garden..." but there is no such tool. So I got a workaround by installing required package manually by following http://kivy-garden.github.io/:

  1. Create "garden"s root directory:

    mkdir ~/.kivy/garden
    
  2. Download garden.filebrowser from https://github.com/kivy-garden/garden.filebrowser into this folder:

    cd ~/.kivy/garden
    git clone https://github.com/kivy-garden/garden.filebrowser
    
  3. Optionally, you may check your installation. In Python terminal, type:

    import kivy.garden.filebrowser
    



回答2:


After a "garden install filebrowser" on OSX mavericks - I had to copy the garden directory from ~/.kivy/garden to /Library/Python/2.7/site-packages/kivy which worked, could probably be done with a symlink.




回答3:


Late to the party, but I just downloaded garden from pypi here and then ran python setup.py install from within the directory.




回答4:


Download kivy garden from https://pypi.python.org/packages/a9/af/362e0fe6943c6b7ec2630b49d1886649a4708ab748ce378acf74e4104c8b/kivy-garden-0.1.1.tar.gz

create a root directory for kivy garden like this

mkdir kivy/garden

Then use robocopy to copy the downloaded kivy garden into your root directory like this

robocopy C:\downloads\garden-0.1.1 C:\kivy\garden /e

When the files have been moved successfully, restart your command. Then install FileBrowser with this command

garden install FileBrowser

That worked for me like a charm!!



来源:https://stackoverflow.com/questions/20650418/filebrowser-error-in-windows-for-kivy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!