Kivy в Qpython на устройстве Android
Мистер Нуби Гонсалес здесь
Используя Qpython3 на Android, пытаюсь импортировать модуль Kivy.
Попытался запустить базовую программу hello world в папке snippets3:
#-*-coding:utf8;-*-
#qpy:2
#qpy:kivy
from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self):
# display a button with the text : Hello QPython
return Button(text='Hello QPython')
TestApp().run()
но экран загрузки Python "поймать исключение: перезапустить приложение", а затем возвращается в редактор.
Также пытался установить модуль в пипс, но нужен цифон. Попытался установить Cython, но произошло следующее.
Буду признателен за любую помощь или объяснение, я тратил весь день для решения.
Спасибо
/data/data/org.qpython.qpy3/files/bin/qpython-android5.sh "/storage/emulated/0/qpython/scripts3/pip_console.py" && exit
pts3/pip_console.py" && exit <
Input pip commands, ie: pip install {module}
-->pip install cython
Downloading/unpacking cython
Running setup.py egg_info for package cython
Unable to find pgen, not compiling formal grammar.
warning: no files found matching '*.pyx' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.pxd' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.h' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.pxd' under directory 'Cython/Utility'
Installing collected packages: cython
Running setup.py install for cython
Unable to find pgen, not compiling formal grammar.
warning: build_py_2to3: byte-compiling is disabled, skipping.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/storage/emulated/0/qpython/cache/pip-build/cython/setup.py", line 336, in <module>
**setup_args
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/core.py", line 148, in setup
dist.run_commands()
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/dist.py", line 917, in run_commands
self.run_command(cmd)
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/dist.py", line 936, in run_command
cmd_obj.run()
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/setuptools-1.1-py3.2.egg/setuptools/command/install.py", line 53, in run
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/command/install.py", line 569, in run
self.run_command('build')
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/dist.py", line 936, in run_command
cmd_obj.run()
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/command/build.py", line 126, in run
self.run_command(cmd_name)
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/dist.py", line 936, in run_command
cmd_obj.run()
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/storage/emulated/0/qpython/cache/pip-build/cython/setup.py", line 217, in build_extensions
from Cython.Build.Dependencies import cythonize
File "/storage/emulated/0/qpython/cache/pip-build/cython/build/lib.linux-armv7l-3.2/Cython/Build/__init__.py", line 1, in <module>
from .Dependencies import cythonize
File "/storage/emulated/0/qpython/cache/pip-build/cython/build/lib.linux-armv7l-3.2/Cython/Build/Dependencies.py", line 51, in <module>
from ..Compiler.Main import Context, CompilationOptions, default_options
File "/storage/emulated/0/qpython/cache/pip-build/cython/build/lib.linux-armv7l-3.2/Cython/Compiler/Main.py", line 27, in <module>
from .StringEncoding import EncodedString
File "/storage/emulated/0/qpython/cache/pip-build/cython/build/lib.linux-armv7l-3.2/Cython/Compiler/StringEncoding.py", line 54
return EncodedString(u''.join(self.chars))
^
SyntaxError: invalid syntax
Complete output from command /data/data/org.qpython.qpy3/files/bin/python-android5 -c "import setuptools;__file__='/storage/emulated/0/qpython/cache/pip-build/cython/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /storage/emulated/0/qpython/cache/pip-z0g7yy-record/install-record.txt --single-version-externally-managed:
running install
running build
running build_py
Unable to find pgen, not compiling formal grammar.
warning: build_py_2to3: byte-compiling is disabled, skipping.
running build_ext
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/storage/emulated/0/qpython/cache/pip-build/cython/setup.py", line 336, in <module>
**setup_args
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/core.py", line 148, in setup
dist.run_commands()
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/dist.py", line 917, in run_commands
self.run_command(cmd)
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/dist.py", line 936, in run_command
cmd_obj.run()
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/setuptools-1.1-py3.2.egg/setuptools/command/install.py", line 53, in run
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/command/install.py", line 569, in run
self.run_command('build')
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/dist.py", line 936, in run_command
cmd_obj.run()
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/command/build.py", line 126, in run
self.run_command(cmd_name)
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/dist.py", line 936, in run_command
cmd_obj.run()
File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/storage/emulated/0/qpython/cache/pip-build/cython/setup.py", line 217, in build_extensions
from Cython.Build.Dependencies import cythonize
File "/storage/emulated/0/qpython/cache/pip-build/cython/build/lib.linux-armv7l-3.2/Cython/Build/__init__.py", line 1, in <module>
from .Dependencies import cythonize
File "/storage/emulated/0/qpython/cache/pip-build/cython/build/lib.linux-armv7l-3.2/Cython/Build/Dependencies.py", line 51, in <module>
from ..Compiler.Main import Context, CompilationOptions, default_options
File "/storage/emulated/0/qpython/cache/pip-build/cython/build/lib.linux-armv7l-3.2/Cython/Compiler/Main.py", line 27, in <module>
from .StringEncoding import EncodedString
File "/storage/emulated/0/qpython/cache/pip-build/cython/build/lib.linux-armv7l-3.2/Cython/Compiler/StringEncoding.py", line 54
return EncodedString(u''.join(self.chars))
^
SyntaxError: invalid syntax
----------------------------------------
Command /data/data/org.qpython.qpy3/files/bin/python-android5 -c "import setuptools;__file__='/storage/emulated/0/qpython/cache/pip-build/cython/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /storage/emulated/0/qpython/cache/pip-z0g7yy-record/install-record.txt --single-version-externally-managed failed with error code 1 in /storage/emulated/0/qpython/cache/pip-build/cython
Storing complete log in /sdcard/qpython/.pip/pip.log
-->
[1]: https://stackru.com/images/fdc34171ffe7709900ece775da028cb525be7cd7.png