from kivy. app import App from kivy. uix. button import Button class MainApp (App): def build(self): button = Button(text='Привет от Kivy', size_hint=(.5,.5), pos_hint= {'center_x':.5, 'center_y':.5}) return button if __name__ == '__main__': app = MainApp() app.run()
Для формирования apk-приложения ввел команду в окне терминала pycharm:
buildozer -v android debug.
Но после появилась ошибка:
# Check configuration tokens
Traceback (most recent call last):
File “/home/konstantin/PycharmProjects/Kivy_Project/venv/bin/buildozer”, line 8, in <module>
sys.exit(main())
File “/home/konstantin/PycharmProjects/Kivy_Project/venv/lib/python3.5/site-packages/buildozer/scripts/client.py”, line 13, in main
Buildozer().run_command(sys.argv)
File “/home/konstantin/PycharmProjects/Kivy_Project/venv/lib/python3.5/site-packages/buildozer/__init__.py”, line 1014, in run_command
targets = [x for x in self.targets()]
File “/home/konstantin/PycharmProjects/Kivy_Project/venv/lib/python3.5/site-packages/buildozer/__init__.py”, line 1014, in <listcomp>
targets = [x for x in self.targets()]
File “/home/konstantin/PycharmProjects/Kivy_Project/venv/lib/python3.5/site-packages/buildozer/__init__.py”, line 907, in targets
fromlist
File “/home/konstantin/PycharmProjects/Kivy_Project/venv/lib/python3.5/site-packages/buildozer/targets/ios.py”, line 66
self._toolchain_cmd = f“{executable} toolchain.py ”
^
SyntaxError: invalid syntax
Прошу пояснить, в чем проблема.