我正在尝试在我的 ubuntu 计算机上安装 kivyMD,这是一个 kivy 材料主题。 https://gitlab.com/kivymd/KivyMD
我已经安装了 kivy,并且来自 kivy 网站的示例运行良好。
我已经使用他们的 gitlab 中的这些命令安装了 kivyMD:
pip install kivy-garden
garden install recycleview
当我尝试运行示例kitchen_sink.py
时,出现错误。这是输出:
Traceback (most recent call last):
File "/home/max/Documents/KivyMD/kitchen_sink.py", line 2, in <module>
import kivymd.snackbar as Snackbar
File "/home/max/Documents/KivyMD/kivymd/snackbar.py", line 50, in <module>
''')
File "/usr/lib/python2.7/dist-packages/kivy/lang.py", line 1491, in load_string
parser = Parser(content=string, filename=fn)
File "/usr/lib/python2.7/dist-packages/kivy/lang.py", line 1049, in __init__
self.parse(content)
File "/usr/lib/python2.7/dist-packages/kivy/lang.py", line 1119, in parse
self.execute_directives()
File "/usr/lib/python2.7/dist-packages/kivy/lang.py", line 1083, in execute_directives
mod = __import__(package)
File "/home/max/Documents/KivyMD/kivymd/button.py", line 28, in <module>
from kivymd.theming import ThemableBehavior
File "/home/max/Documents/KivyMD/kivymd/theming.py", line 20, in <module>
class ThemeManager(Widget):
File "/home/max/Documents/KivyMD/kivymd/theming.py", line 52, in ThemeManager
bind=('primary_palette', 'primary_hue'))
File "kivy/properties.pyx", line 1176, in kivy.properties.AliasProperty.__init__ (kivy/properties.c:19156)
TypeError: __init__() takes exactly 2 positional arguments (1 given)
[Finished in 0.5s with exit code 1]
任何想法 ?