Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不能打包pandas 请指教 #17

Open
Aden-w opened this issue Sep 21, 2022 · 0 comments
Open

不能打包pandas 请指教 #17

Aden-w opened this issue Sep 21, 2022 · 0 comments

Comments

@Aden-w
Copy link

Aden-w commented Sep 21, 2022

默认设置,期间更换过NDK,问题依旧,貌似是编译的问题,但是没有解决的头绪,请大佬指教

STDOUT:
Running from numpy source directory.
Cythonizing sources
numpy/random/_bounded_integers.pxd.in has not changed
numpy/random/bit_generator.pyx has not changed
numpy/random/_bounded_integers.pyx.in has not changed
numpy/random/_mt19937.pyx has not changed
numpy/random/_bounded_integers.pyx has not changed
numpy/random/_sfc64.pyx has not changed
numpy/random/mtrand.pyx has not changed
numpy/random/_pcg64.pyx has not changed
numpy/random/_common.pyx has not changed
numpy/random/_philox.pyx has not changed
numpy/random/_generator.pyx has not changed
INFO: blas_opt_info:
INFO: blas_armpl_info:
INFO: customize UnixCCompiler
INFO: libraries armpl_lp64_mp not found in ['']
INFO: NOT AVAILABLE
INFO:
INFO: blas_mkl_info:
INFO: libraries mkl_rt not found in ['']
INFO: NOT AVAILABLE
INFO:
INFO: blis_info:
INFO: libraries blis not found in ['']
INFO: NOT AVAILABLE
INFO:
INFO: openblas_info:
INFO: libraries openblas not found in ['']
INFO: NOT AVAILABLE
INFO:
INFO: accelerate_info:
INFO: NOT AVAILABLE
INFO:
INFO: atlas_3_10_blas_threads_info:
INFO: Setting PTATLAS=ATLAS
INFO: libraries tatlas not found in []
INFO: NOT AVAILABLE
INFO:
INFO: atlas_3_10_blas_info:
INFO: libraries satlas not found in []
INFO: NOT AVAILABLE
INFO:
INFO: atlas_blas_threads_info:
INFO: Setting PTATLAS=ATLAS
INFO: libraries ptf77blas,ptcblas,atlas not found in []
INFO: NOT AVAILABLE
INFO:
INFO: atlas_blas_info:
INFO: libraries f77blas,cblas,atlas not found in []
INFO: NOT AVAILABLE
INFO:
/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy/numpy/distutils/system_info.py:2077: UserWarning:
Optimized (vendor) Blas libraries are not found.
Falls back to netlib Blas library which has worse performance.
A better performance should be easily gained by switching
Blas library.
if self._calc_info(blas):
INFO: blas_info:
INFO: libraries blas not found in ['']
INFO: NOT AVAILABLE
INFO:
/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy/numpy/distutils/system_info.py:2077: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
if self._calc_info(blas):
INFO: blas_src_info:
INFO: NOT AVAILABLE
INFO:
/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy/numpy/distutils/system_info.py:2077: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
if self.calc_info(blas):
INFO: NOT AVAILABLE
INFO:
non-existing path in 'numpy/distutils': 'site.cfg'
INFO: lapack_opt_info:
INFO: lapack_armpl_info:
INFO: libraries armpl_lp64_mp not found in ['']
INFO: NOT AVAILABLE
INFO:
INFO: lapack_mkl_info:
INFO: libraries mkl_rt not found in ['']
INFO: NOT AVAILABLE
INFO:
INFO: openblas_lapack_info:
INFO: libraries openblas not found in ['']
INFO: NOT AVAILABLE
INFO:
INFO: openblas_clapack_info:
INFO: libraries openblas,lapack not found in ['']
INFO: NOT AVAILABLE
INFO:
INFO: flame_info:
INFO: libraries flame not found in ['']
INFO: NOT AVAILABLE
INFO:
INFO: atlas_3_10_threads_info:
INFO: Setting PTATLAS=ATLAS
INFO: <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
INFO: NOT AVAILABLE
INFO:
INFO: atlas_3_10_info:
INFO: <class 'numpy.distutils.system_info.atlas_3_10_info'>
INFO: NOT AVAILABLE
INFO:
INFO: atlas_threads_info:
INFO: Setting PTATLAS=ATLAS
INFO: <class 'numpy.distutils.system_info.atlas_threads_info'>
INFO: NOT AVAILABLE
INFO:
INFO: atlas_info:
INFO: <class 'numpy.distutils.system_info.atlas_info'>
INFO: NOT AVAILABLE
INFO:
INFO: lapack_info:
INFO: libraries lapack not found in ['']
INFO: NOT AVAILABLE
INFO:
/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy/numpy/distutils/system_info.py:1902: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
return getattr(self, 'calc_info{}'.format(name))()
INFO: lapack_src_info:
INFO: NOT AVAILABLE
INFO:
/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy/numpy/distutils/system_info.py:1902: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
return getattr(self, 'calc_info{}'.format(name))()
INFO: NOT AVAILABLE
INFO:
INFO: numpy_linalg_lapack_lite:
INFO: FOUND:
INFO: language = c
INFO: define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64
')]
INFO:
Warning: attempted relative import with no known parent package
/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
running build_ext
running build_src
INFO: build_src
INFO: building py_modules sources
creating build/src.linux-x86_64-3.9
creating build/src.linux-x86_64-3.9/numpy
creating build/src.linux-x86_64-3.9/numpy/distutils
INFO: building library "npymath" sources
WARN: Could not locate executable armflang
WARN: Could not locate executable gfortran
WARN: Could not locate executable f95
WARN: Could not locate executable ifort
WARN: Could not locate executable ifc
WARN: Could not locate executable lf95
WARN: Could not locate executable pgfortran
WARN: Could not locate executable nvfortran
WARN: Could not locate executable f90
WARN: Could not locate executable f77
WARN: Could not locate executable fort
WARN: Could not locate executable efort
WARN: Could not locate executable efc
WARN: Could not locate executable g77
WARN: Could not locate executable g95
WARN: Could not locate executable pathf95
WARN: Could not locate executable nagfor
WARN: Could not locate executable frt
WARN: don't know how to compile Fortran code on platform 'posix'
_configtest.cxx: In function ‘int main()’:
_configtest.cxx:1:17: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
int main(void){ auto x = 0.0; return static_cast(x); }
^
_configtest.cxx:1:22: error: ‘x’ does not name a type
int main(void){ auto x = 0.0; return static_cast(x); }
^
_configtest.cxx:1:55: error: ‘x’ was not declared in this scope
int main(void){ auto x = 0.0; return static_cast(x); }
^
Traceback (most recent call last):
File "/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy/setup.py", line 461, in
setup_package()
File "/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy/setup.py", line 453, in setup_package
setup(**metadata)
File "/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy/numpy/distutils/core.py", line 169, in setup
return old_setup(**new_attr)
File "/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy/numpy/distutils/command/build_ext.py", line 101, in run
self.run_command('build_src')
File "/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy/numpy/distutils/command/build_src.py", line 144, in run
self.build_sources()
File "/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy/numpy/distutils/command/build_src.py", line 155, in build_sources
self.build_library_sources(*libname_info)
File "/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy/numpy/distutils/command/build_src.py", line 288, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/numpy/armeabi-v7a__ndk_target_21/numpy/numpy/distutils/command/build_src.py", line 378, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 708, in get_mathlib_info
raise RuntimeError(
RuntimeError: Broken toolchain: cannot link a simple C++ program. note: A compiler with support for C++11 language features is required.

STDERR:

Command failed: /usr/local/python37/bin/python3.7 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy,numpy,pandas --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/kivydev/test/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21

ENVIRONMENT:

LESSOPEN = '| /usr/bin/lesspipe %s'

GNOME_KEYRING_PID = ''

USER = 'kivydev'

LANGUAGE = 'en_US'

UPSTART_INSTANCE = ''

LC_TIME = 'zh_CN.UTF-8'

XDG_SEAT = 'seat0'

SSH_AGENT_PID = '1426'

SESSION = 'xfce'

XDG_SESSION_TYPE = 'x11'

SHLVL = '1'

HOME = '/home/kivydev'

QT4_IM_MODULE = ''

JRE_HOME = '/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre'

DESKTOP_SESSION = 'xfce'

QT_LINUX_ACCESSIBILITY_ALWAYS_ON = '1'

GTK_MODULES = 'gail:atk-bridge'

XDG_SEAT_PATH = '/org/freedesktop/DisplayManager/Seat0'

LC_MONETARY = 'zh_CN.UTF-8'

INSTANCE = ''

DBUS_SESSION_BUS_ADDRESS = 'unix:abstract=/tmp/dbus-6BSyRAHrQx'

GLADE_MODULE_PATH = ':'

GNOME_KEYRING_CONTROL = ''

QT_QPA_PLATFORMTHEME = 'appmenu-qt5'

MANDATORY_PATH = '/usr/share/gconf/xfce.mandatory.path'

IM_CONFIG_PHASE = '1'

SESSIONTYPE = ''

UPSTART_JOB = 'startxfce4'

LOGNAME = 'kivydev'

GTK_IM_MODULE = ''

WINDOWID = '65011718'

_ = '/home/kivydev/.local/bin/kdpp'

DEFAULTS_PATH = '/usr/share/gconf/xfce.default.path'

XDG_SESSION_ID = 'c1'

TERM = 'xterm-256color'

GTK2_MODULES = 'overlay-scrollbar'

PATH = '/home/kivydev/andr/apache-ant-1.9.4/bin:/home/kivydev/bin:/home/kivydev/.local/bin:/usr/local/python37/bin:/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin:/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/bin:/home/kivydev/andr/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'

GLADE_PIXMAP_PATH = ':'

ANT_HOME = '/home/kivydev/andr/apache-ant-1.9.4'

SESSION_MANAGER = 'local/kivydev-VirtualBox:@/tmp/.ICE-unix/1417,unix/kivydev-VirtualBox:/tmp/.ICE-unix/1417'

GDM_LANG = 'en_US'

LC_ADDRESS = 'zh_CN.UTF-8'

XDG_MENU_PREFIX = 'xfce-'

XDG_SESSION_PATH = '/org/freedesktop/DisplayManager/Session0'

XDG_RUNTIME_DIR = '/run/user/1000'

DISPLAY = ':0'

LC_TELEPHONE = 'zh_CN.UTF-8'

LANG = 'en_US.UTF-8'

XDG_CURRENT_DESKTOP = 'XFCE'

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:.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=01;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:.jpg=01;35:.jpeg=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:'

XMODIFIERS = ''

XDG_SESSION_DESKTOP = 'xfce'

XAUTHORITY = '/home/kivydev/.Xauthority'

XDG_GREETER_DATA_DIR = '/var/lib/lightdm-data/kivydev'

SSH_AUTH_SOCK = '/tmp/ssh-cQiHWedC6MOH/agent.1425'

GLADE_CATALOG_PATH = ':'

SHELL = '/bin/bash'

LC_NAME = 'zh_CN.UTF-8'

QT_ACCESSIBILITY = '1'

GDMSESSION = 'xfce'

LESSCLOSE = '/usr/bin/lesspipe %s %s'

LC_MEASUREMENT = 'zh_CN.UTF-8'

UPSTART_EVENTS = 'started xsession'

UPSTART_SESSION = 'unix:abstract=/com/ubuntu/upstart-session/1000/1031'

LC_IDENTIFICATION = 'zh_CN.UTF-8'

CLASSPATH = '.:/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-1.8.0-openjdk-amd64/lib/dt.jar:/usr/lib/jvm/java-1.8.0-openjdk-amd64/lib/tools.jar'

XDG_VTNR = '7'

QT_IM_MODULE = ''

PWD = '/home/kivydev/Desktop/jp_w'

JAVA_HOME = '/usr/lib/jvm/java-1.8.0-openjdk-amd64'

CLUTTER_IM_MODULE = ''

XDG_CONFIG_DIRS = '/etc/xdg/xdg-xfce:/usr/share/upstart/xdg:/etc/xdg:/etc/xdg'

XDG_DATA_DIRS = '/usr/share/xfce:/usr/share/xfce4:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/usr/share'

LC_NUMERIC = 'zh_CN.UTF-8'

LC_PAPER = 'zh_CN.UTF-8'

VTE_VERSION = '4205'

JOB = 'dbus'

JDK_HOME = '/usr/lib/jvm/java-1.8.0-openjdk-amd64'

PACKAGES_PATH = '/home/kivydev/.buildozer/android/packages'

ANDROIDSDK = '/home/kivydev/andr/android-sdk-linux'

ANDROIDNDK = '/home/kivydev/andr/android-ndk-r23c'

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant