sympy buildozer android

37 views
Skip to first unread message

Degenerate Tech

unread,
Jul 23, 2020, 1:06:05 PM7/23/20
to Kivy users support
[INFO]:    <- directory context /home/sahil/app/.buildozer/android/platform/python-for-android                                                                                                  
[INFO]:    Building setuptools for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    setuptools said it is already built, skipping
[INFO]:    Building sympy for armeabi-v7a
[INFO]:    sympy apparently isn't already in site-packages
[INFO]:    Installing sympy into site-packages
[INFO]:    -> directory context /home/sahil/app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/sympy/armeabi-v7a__ndk_target_21/sympy
[INFO]:    -> running python3 setup.py install -O2 --root=/home/sahil/app/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp --install-lib=.
Exception in thread background thread for pid 9257:                                                                                                                                             
Traceback (most recent call last):
 File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
   self.run()
 File "/usr/lib/python3.6/threading.py", line 864, in run
   self._target(*self._args, **self._kwargs)
 File "/home/sahil/.local/lib/python3.6/site-packages/sh.py", line 1540, in wrap
   fn(*args, **kwargs)
 File "/home/sahil/.local/lib/python3.6/site-packages/sh.py", line 2459, in background_thread
   handle_exit_code(exit_code)
 File "/home/sahil/.local/lib/python3.6/site-packages/sh.py", line 2157, in fn
   return self.command.handle_command_exit_code(exit_code)
 File "/home/sahil/.local/lib/python3.6/site-packages/sh.py", line 815, in handle_command_exit_code
   raise exc
sh.ErrorReturnCode_255:  

 RAN: /home/sahil/app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py install -O2 --root=/home/sahil/app/.buildo
zer/android/platform/build-armeabi-v7a/build/python-installs/myapp --install-lib=.

 STDOUT:
Please install the mpmath package with a version >= 0.19


 STDERR:


Traceback (most recent call last):
 File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
   "__main__", mod_spec)
 File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
   exec(code, run_globals)
 File "/home/sahil/app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1231, in <module>
   main()
 File "/home/sahil/app/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
   ToolchainCL()
 File "/home/sahil/app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 688, in __init__
   getattr(self, command)(args)
 File "/home/sahil/app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 154, in wrapper_func
   build_dist_from_args(ctx, dist, args)
 File "/home/sahil/app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 208, in build_dist_from_args
   args, "ignore_setup_py", False
 File "/home/sahil/app/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 573, in build_recipes
   recipe.build_arch(arch)
 File "/home/sahil/app/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 946, in build_arch
   self.install_python_package(arch)
 File "/home/sahil/app/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 965, in install_python_package
   _env=hpenv, *self.setup_extra_args)
 File "/home/sahil/app/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint
   for line in output:
 File "/home/sahil/.local/lib/python3.6/site-packages/sh.py", line 863, in next
   self.wait()
 File "/home/sahil/.local/lib/python3.6/site-packages/sh.py", line 792, in wait
   self.handle_command_exit_code(exit_code)
 File "/home/sahil/.local/lib/python3.6/site-packages/sh.py", line 815, in handle_command_exit_code
   raise exc
sh.ErrorReturnCode_255:  

 RAN: /home/sahil/app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py install -O2 --root=/home/sahil/app/.buildo
zer/android/platform/build-armeabi-v7a/build/python-installs/myapp --install-lib=.

 STDOUT:
Please install the mpmath package with a version >= 0.19


 STDERR:

# Command failed: /usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy,sympy,mpmath==1.1.0 --arch armeabi-v7a --copy-libs --colo
r=always --storage-dir="/home/sahil/app/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21                                                                                              
# ENVIRONMENT:
#     GS_LIB = '/home/sahil/.fonts'
#     KDE_FULL_SESSION = 'true'
#     LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:
*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz
=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=0
1;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=
01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.
pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:
*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.
au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'            
#     LESSCLOSE = '/usr/bin/lesspipe %s %s'
#     LANG = 'en_IN'
#     PROFILEHOME = '/home/sahil/app'
#     DISPLAY = ':0'
#     SHELL_SESSION_ID = 'b7c714eac78348e18a2a802d1acdd217'
#     COLORTERM = 'truecolor'
#     XDG_VTNR = '1'
#     PAM_KWALLET5_LOGIN = '/run/user/1000/kwallet5.socket'
#     SSH_AUTH_SOCK = '/tmp/ssh-TBHOhvd97RmQ/agent.857'
#     MANDATORY_PATH = '/usr/share/gconf/plasma.mandatory.path'
#     XDG_SESSION_ID = '3'
#     USER = 'sahil'
#     DESKTOP_SESSION = 'plasma'
#     GTK2_RC_FILES = '/etc/gtk-2.0/gtkrc:/home/sahil/.gtkrc-2.0:/home/sahil/.config/gtkrc-2.0'
#     DEFAULTS_PATH = '/usr/share/gconf/plasma.default.path'
#     PWD = '/home/sahil/app'
#     HOME = '/home/sahil'
#     SSH_AGENT_PID = '944'
#     QT_ACCESSIBILITY = '1'
#     XDG_SESSION_TYPE = 'x11'
#     XDG_DATA_DIRS = '/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop'
#     KONSOLE_DBUS_SESSION = '/Sessions/1'
#     XDG_SESSION_DESKTOP = 'KDE'
#     KONSOLE_DBUS_WINDOW = '/Windows/1'
#     GTK_MODULES = 'gail:atk-bridge'
#     TERM = 'xterm-256color'
#     SHELL = '/bin/bash'
#     KONSOLE_DBUS_SERVICE = ':1.86'
#     XDG_SESSION_CLASS = 'user'
#     XDG_SEAT_PATH = '/org/freedesktop/DisplayManager/Seat0'
#     XCURSOR_THEME = 'breeze_cursors'
#     XDG_CURRENT_DESKTOP = 'KDE'
#     GPG_AGENT_INFO = '/run/user/1000/gnupg/S.gpg-agent:0:1'
#     KONSOLE_PROFILE_NAME = ''
#     XDG_SEAT = 'seat0'
#     SHLVL = '1'
#     COLORFGBG = '15;0'
#     LANGUAGE = 'en_IN:en'
#     GTK_RC_FILES = '/etc/gtk/gtkrc:/home/sahil/.gtkrc:/home/sahil/.config/gtkrc'
#     WINDOWID = '77594630'
#     LOGNAME = 'sahil'
#     DBUS_SESSION_BUS_ADDRESS = 'unix:abstract=/tmp/dbus-nHqp4ZugCc,guid=b6d3efbeb5f56d593a3099545f19aa38'
#     XDG_RUNTIME_DIR = '/run/user/1000'
#     PAM_KWALLET_LOGIN = '/run/user/1000/kwallet.socket'
#     XAUTHORITY = '/tmp/xauth-1000-_0'
#     XDG_SESSION_PATH = '/org/freedesktop/DisplayManager/Session1'
#     QT_AUTO_SCREEN_SCALE_FACTOR = '0'
#     XDG_CONFIG_DIRS = '/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings'
#     PATH = '/home/sahil/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/sahil/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap
/bin'                                                                                                                                                                                            
#     KDE_SESSION_UID = '1000'
#     KDE_SESSION_VERSION = '5'
#     SESSION_MANAGER = 'local/sahil-desktop:@/tmp/.ICE-unix/1020,unix/sahil-desktop:/tmp/.ICE-unix/1020'
#     LESSOPEN = '| /usr/bin/lesspipe %s'
#     _ = '/home/sahil/.local/bin/buildozer'
#     PACKAGES_PATH = '/home/sahil/.buildozer/android/packages'
#     ANDROIDSDK = '/home/sahil/.buildozer/android/platform/android-sdk'
#     ANDROIDNDK = '/home/sahil/.buildozer/android/platform/android-ndk-r19c'
#     ANDROIDAPI = '27'
#     ANDROIDMINAPI = '21'
#  
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2

buildozer.spec
main.py

Alexander Taylor

unread,
Jul 23, 2020, 2:00:52 PM7/23/20
to Kivy users support
The sympy recipe should be handling this but clearly isn't. It's probably a python-for-android bug. Maybe there should be an mpmath recipe that installs it in the hostpython.

Degenerate Tech

unread,
Jul 23, 2020, 11:32:40 PM7/23/20
to Kivy users support
why there are so many problems to use it..?why they are not solving?

Degenerate Tech

unread,
Jul 23, 2020, 11:35:42 PM7/23/20
to Kivy users support
Kivy has great potential but these library issue is main problem for Android .. that is why many people choosing flutter ..

planckp...@gmail.com

unread,
Jul 24, 2020, 12:40:09 PM7/24/20
to Kivy users support
I think there would be bigger issues trying to use sympy with flutter ;)

>>why they are not solving?
There is no 'they', there is only 'us'. If there is an issue contribute a solution, that is how issues are addressed.

Degenerate Tech

unread,
Jul 25, 2020, 3:31:45 AM7/25/20
to Kivy users support
no no .I am telling ..I can't use sympy with Kivy for Android ..

Degenerate Tech

unread,
Jul 25, 2020, 3:35:29 AM7/25/20
to Kivy users support
I am not telling :"I want to use sympy with Kivy"
I want tell many people choosing flutter for app development not Kivy .

Degenerate Tech

unread,
Jul 25, 2020, 3:38:20 AM7/25/20
to Kivy users support
Because Kivy has great potential but .there are many library issue .for Android.. python has big area of library but a small portion are supported on Android but there are many issues. such as sympy on Android
Reply all
Reply to author
Forward
0 new messages