-
Notifications
You must be signed in to change notification settings - Fork 1.9k
LXML v4.8.0 fails to build. #2928
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
Comments
👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project. If you're having trouble installing or using python-for-android, maybe you could be interested in our quickstart guide. Let us know if this comment was made in error, and we'll be happy to reopen the issue. |
If anyone comes into this issue ticket link, I have overcome the issue with setting fixed version lxml in buildozer.spec |
it worked,thanks! |
Exception in thread background thread for pid 506961: RAN: /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v STDOUT: WARNING: The stock libxml2 versions 2.9.11 and 2.9.12 are incompatible with this lxml version. They produce excess content on serialisation. Use a different library version or a static build. Building against libxml2 2.9.12 and libxslt 1.1.34 During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): STDERR: Traceback (most recent call last): RAN: /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v STDOUT: WARNING: The stock libxml2 versions 2.9.11 and 2.9.12 are incompatible with this lxml version. They produce excess content on serialisation. Use a different library version or a static build. Building against libxml2 2.9.12 and libxslt 1.1.34 During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): STDERR: Command failed: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=myapp', '--bootstrap=sdl2', '--requirements=python3,kivy,requests,chardet,urllib3,idna,lxml==5.2.2', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']ENVIRONMENT:LANG = 'en_US.UTF-8'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:.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=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:.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:.webp=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:'TERM = 'xterm-256color'PATH = '/root/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin'MAIL = '/var/mail/root'LOGNAME = 'root'USER = 'root'HOME = '/root'SHELL = '/bin/bash'SUDO_COMMAND = '/root/.local/bin/buildozer -v android debug'SUDO_USER = 'root'SUDO_UID = '0'SUDO_GID = '0'PACKAGES_PATH = '/root/.buildozer/android/packages'ANDROIDSDK = '/root/.buildozer/android/platform/android-sdk'ANDROIDNDK = '/root/.buildozer/android/platform/android-ndk-r25b'ANDROIDAPI = '31'ANDROIDMINAPI = '21'Buildozer failed to execute the last commandThe error might be hidden in the log above this errorPlease read the full log, and search for it beforeraising an issue with buildozer itself.In case of a bug report, please add a full log with log_level = 2 |
Buildozer is constantly giving when I run buildozer -v android debug what
is causing this error and how to fix it
…On Wed, Jul 17, 2024, 11:21 AM rcnn-retall ***@***.***> wrote:
Exception in thread background thread for pid 506961:
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/root/.local/lib/python3.10/site-packages/sh.py", line 1641, in wrap
fn(*rgs, **kwargs)
File "/root/.local/lib/python3.10/site-packages/sh.py", line 2569, in
background_thread
handle_exit_code(exit_code)
File "/root/.local/lib/python3.10/site-packages/sh.py", line 2269, in fn
return self.command.handle_command_exit_code(exit_code)
File "/root/.local/lib/python3.10/site-packages/sh.py", line 869, in
handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN:
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3
setup.py build_ext -v
STDOUT:
Building lxml version 4.8.0.
Building without Cython.
WARNING: The stock libxml2 versions 2.9.11 and 2.9.12 are incompatible
with this lxml version. They produce excess content on serialisation. Use a
different library version or a static build.
Building against libxml2 2.9.12 and libxslt 1.1.34
Building against libxml2/libxslt in one of the following directories:
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxml2/arm64-v8a__ndk_target_21/libxml2/.libs
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxslt/arm64-v8a__ndk_target_21/libxslt/libxslt/.libs
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxslt/arm64-v8a__ndk_target_21/libxslt/libexslt/.libs
running build_ext
building 'lxml.etree' extension
/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
-target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC
-Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target
aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC
-I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include
-DANDROID
-I/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include
-I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/myapp/arm64-v8a/include/python3.1
-fPIC -DCYTHON_CLINE_IN_TRACEBACK=0
-I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxml2/arm64-v8a__ndk_target_21/libxml2/include
-I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxslt/arm64-v8a__ndk_target_21/libxslt
-Isrc -Isrc/lxml/includes
-I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include
-I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build
-c src/lxml/etree.c -o build/temp.linux-x86_64-3.11/src/lxml/etree.o -w
-target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC
-I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include
src/lxml/etree.c:265439:14: error: incomplete definition of type 'struct
_frame'
f->f_back = PyThreadState_GetFrame(tstate);
^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16:
note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
src/lxml/etree.c:265476:19: error: incomplete definition of type 'struct
_frame'
Py_CLEAR(f->f_back);
^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/object.h:581:44:
note: expanded from macro 'Py_CLEAR'
PyObject *_py_tmp = _PyObject_CAST(op);
^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/object.h:107:49:
note: expanded from macro '_PyObject_CAST'
#define _PyObject_CAST(op) _Py_CAST(PyObject*, (op))
^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pyport.h:24:38:
note: expanded from macro '_Py_CAST'
#define _Py_CAST(type, expr) ((type)(expr))
^~~~
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16:
note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
src/lxml/etree.c:265476:19: error: incomplete definition of type 'struct
_frame'
Py_CLEAR(f->f_back);
^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/object.h:583:14:
note: expanded from macro 'Py_CLEAR'
(op) = NULL;
^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16:
note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
src/lxml/etree.c:268244:5: error: incomplete definition of type 'struct
_frame'
__Pyx_PyFrame_SetLineNumber(py_frame, py_line);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lxml/etree.c:528:62: note: expanded from macro
'__Pyx_PyFrame_SetLineNumber'
#define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno =
(lineno)
~~~~~~~^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16:
note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
4 errors generated.
Compile failed: command
'/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang'
failed with exit code 1
Traceback (most recent call last):
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/unixccompiler.py",
line 117, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] +
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/ccompiler.py",
line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/spawn.py",
line 91, in spawn
raise DistutilsExecError(
distutils.errors.DistutilsExecError: command
'/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang'
failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py",
line 236, in run
_build_ext.run(self) # old-style class in Py2
^^^^^^^^^^^^^^^^^^^^
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py",
line 340, in run
self.build_extensions()
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py",
line 449, in build_extensions
self._build_extensions_serial()
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py",
line 474, in _build_extensions_serial
self.build_extension(ext)
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py",
line 529, in build_extension
objects = self.compiler.compile(sources,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/ccompiler.py",
line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/unixccompiler.py",
line 120, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command
'/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang'
failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setup.py",
line 204, in
setup(
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_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
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/core.py",
line 148, in setup
dist.run_commands()
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py",
line 966, in run_commands
self.run_command(cmd)
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py",
line 985, in run_command
cmd_obj.run()
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py",
line 239, in run
if not seems_to_have_libxml2():
^^^^^^^^^^^^^^^^^^^^^^^
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py",
line 253, in seems_to_have_libxml2
library_dirs=library_dirs([]),
^^^^^^^^^^^^^^^^
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py",
line 288, in library_dirs
assert static_library_dirs, "Static build not configured, see
doc/build.txt"
AssertionError: Static build not configured, see doc/build.txt
STDERR:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File
"/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py",
line 1256, in
main()
File
"/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py",
line 18, in main
ToolchainCL()
File
"/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py",
line 685, in *init*
getattr(self, command)(args)
File
"/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py",
line 104, in wrapper_func
build_dist_from_args(ctx, dist, args)
File
"/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py",
line 163, in build_dist_from_args
build_recipes(build_order, python_modules, ctx,
File
"/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/build.py",
line 504, in build_recipes
recipe.build_arch(arch)
File
"/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py",
line 983, in build_arch
self.build_compiled_components(arch)
File
"/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py",
line 994, in build_compiled_components
shprint(hostpython, 'setup.py', self.build_cmd, '-v',
File
"/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py",
line 167, in shprint
for line in output:
File "/root/.local/lib/python3.10/site-packages/sh.py", line 915, in next
self.wait()
File "/root/.local/lib/python3.10/site-packages/sh.py", line 845, in wait
self.handle_command_exit_code(exit_code)
File "/root/.local/lib/python3.10/site-packages/sh.py", line 869, in
handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN:
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3
setup.py build_ext -v
STDOUT:
Building lxml version 4.8.0.
Building without Cython.
WARNING: The stock libxml2 versions 2.9.11 and 2.9.12 are incompatible
with this lxml version. They produce excess content on serialisation. Use a
different library version or a static build.
Building against libxml2 2.9.12 and libxslt 1.1.34
Building against libxml2/libxslt in one of the following directories:
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxml2/arm64-v8a__ndk_target_21/libxml2/.libs
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxslt/arm64-v8a__ndk_target_21/libxslt/libxslt/.libs
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxslt/arm64-v8a__ndk_target_21/libxslt/libexslt/.libs
running build_ext
building 'lxml.etree' extension
/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
-target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC
-Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target
aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC
-I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include
-DANDROID
-I/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include
-I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/myapp/arm64-v8a/include/python3.1
-fPIC -DCYTHON_CLINE_IN_TRACEBACK=0
-I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxml2/arm64-v8a__ndk_target_21/libxml2/include
-I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxslt/arm64-v8a__ndk_target_21/libxslt
-Isrc -Isrc/lxml/includes
-I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include
-I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build
-c src/lxml/etree.c -o build/temp.linux-x86_64-3.11/src/lxml/etree.o -w
-target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC
-I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include
src/lxml/etree.c:265439:14: error: incomplete definition of type 'struct
_frame'
f->f_back = PyThreadState_GetFrame(tstate);
^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16:
note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
src/lxml/etree.c:265476:19: error: incomplete definition of type 'struct
_frame'
Py_CLEAR(f->f_back);
^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/object.h:581:44:
note: expanded from macro 'Py_CLEAR'
PyObject *_py_tmp = _PyObject_CAST(op);
^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/object.h:107:49:
note: expanded from macro '_PyObject_CAST'
#define _PyObject_CAST(op) _Py_CAST(PyObject*, (op))
^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pyport.h:24:38:
note: expanded from macro '_Py_CAST'
#define _Py_CAST(type, expr) ((type)(expr))
^~~~
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16:
note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
src/lxml/etree.c:265476:19: error: incomplete definition of type 'struct
_frame'
Py_CLEAR(f->f_back);
^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/object.h:583:14:
note: expanded from macro 'Py_CLEAR'
(op) = NULL;
^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16:
note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
src/lxml/etree.c:268244:5: error: incomplete definition of type 'struct
_frame'
__Pyx_PyFrame_SetLineNumber(py_frame, py_line);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lxml/etree.c:528:62: note: expanded from macro
'__Pyx_PyFrame_SetLineNumber'
#define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno =
(lineno)
~~~~~~~^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16:
note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
4 errors generated.
Compile failed: command
'/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang'
failed with exit code 1
Traceback (most recent call last):
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/unixccompiler.py",
line 117, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] +
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/ccompiler.py",
line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/spawn.py",
line 91, in spawn
raise DistutilsExecError(
distutils.errors.DistutilsExecError: command
'/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang'
failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py",
line 236, in run
_build_ext.run(self) # old-style class in Py2
^^^^^^^^^^^^^^^^^^^^
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py",
line 340, in run
self.build_extensions()
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py",
line 449, in build_extensions
self._build_extensions_serial()
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py",
line 474, in _build_extensions_serial
self.build_extension(ext)
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py",
line 529, in build_extension
objects = self.compiler.compile(sources,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/ccompiler.py",
line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/unixccompiler.py",
line 120, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command
'/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang'
failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setup.py",
line 204, in
setup(
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_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
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/core.py",
line 148, in setup
dist.run_commands()
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py",
line 966, in run_commands
self.run_command(cmd)
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py",
line 985, in run_command
cmd_obj.run()
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py",
line 239, in run
if not seems_to_have_libxml2():
^^^^^^^^^^^^^^^^^^^^^^^
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py",
line 253, in seems_to_have_libxml2
library_dirs=library_dirs([]),
^^^^^^^^^^^^^^^^
File
"/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py",
line 288, in library_dirs
assert static_library_dirs, "Static build not configured, see
doc/build.txt"
AssertionError: Static build not configured, see doc/build.txt
STDERR:
Command failed: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain',
'create', '--dist_name=myapp', '--bootstrap=sdl2',
'--requirements=python3,kivy,requests,chardet,urllib3,idna,lxml==5.2.2',
'--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always',
'--storage-dir=/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a',
'--ndk-api=21', '--ignore-setup-py', '--debug'] ENVIRONMENT: LANG =
'en_US.UTF-8' 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:*.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=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:
*.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:*
.webp=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:' TERM =
'xterm-256color' PATH =
'/root/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin' MAIL
= '/var/mail/root' LOGNAME = 'root' USER = 'root' HOME = '/root' SHELL =
'/bin/bash' SUDO_COMMAND = '/root/.local/bin/buildozer -v android debug' SUDO_USER
= 'root' SUDO_UID = '0' SUDO_GID = '0' PACKAGES_PATH =
'/root/.buildozer/android/packages' ANDROIDSDK =
'/root/.buildozer/android/platform/android-sdk' ANDROIDNDK =
'/root/.buildozer/android/platform/android-ndk-r25b' ANDROIDAPI = '31' 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
—
Reply to this email directly, view it on GitHub
<#2928 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BAQSA7YCFVDBRHJPBL7DGOTZMZHSNAVCNFSM6AAAAABAEX2F4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZTGA3DKOBXHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@lfuhad622
or... try my approach which is to use lxml version 4.9.2, with libxml2 and libxslt versions 2.10.3 and 1.1.37, respectively. I forked the python-for-android repository and edited the links in the three recipes. I built with Android API level 34. I don't know what the exact issue is, but I found out that lxml needs to be compiled with versions of libxml2 and libxslt that are published around the same period as lxml. |
[INFO]: Downloading libxml2 ENVIRONMENT:LANG = 'en_US.UTF-8'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:.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=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:.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:.webp=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:'TERM = 'xterm-256color'PATH = '/root/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin'MAIL = '/var/mail/root'LOGNAME = 'root'USER = 'root'HOME = '/root'SHELL = '/bin/bash'SUDO_COMMAND = '/root/.local/bin/buildozer -v android debug'SUDO_USER = 'root'SUDO_UID = '0'SUDO_GID = '0'PACKAGES_PATH = '/root/.buildozer/android/packages'ANDROIDSDK = '/root/.buildozer/android/platform/android-sdk'ANDROIDNDK = '/root/.buildozer/android/platform/android-ndk-r25b'ANDROIDAPI = '31'ANDROIDMINAPI = '21'Buildozer failed to execute the last commandThe error might be hidden in the log above this errorPlease read the full log, and search for it beforeraising an issue with buildozer itself.In case of a bug report, please add a full log with log_level = 2root@iZ2ze9ffpkb4uca5qr8x4tZ:~/Android# |
Nope. The links you are using don't work. You will need to change the recipes for each of the modules as shown below. libxml2
libxslt
lxml
|
请问一下,这个是在哪里设置 |
Cwd /root/Android/.buildozer/android/platform/python-for-android[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet. ENVIRONMENT:LANG = 'en_US.UTF-8'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:.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=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:.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:.webp=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:'TERM = 'xterm-256color'PATH = '/root/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin'MAIL = '/var/mail/root'LOGNAME = 'root'USER = 'root'HOME = '/root'SHELL = '/bin/bash'SUDO_COMMAND = '/root/.local/bin/buildozer -v android debug'SUDO_USER = 'root'SUDO_UID = '0'SUDO_GID = '0'PACKAGES_PATH = '/root/.buildozer/android/packages'ANDROIDSDK = '/root/.buildozer/android/platform/android-sdk'ANDROIDNDK = '/root/.buildozer/android/platform/android-ndk-r25b'ANDROIDAPI = '31'ANDROIDMINAPI = '21'P4A_libxml2_DIR = '/root/Android/https:/gitlab.gnome.org/GNOME/libxml2/-/archive/v2.10.3/libxml2-v2.10.3.tar.gz'P4A_kivy.libxslt_DIR = '/root/Android/https:/gitlab.gnome.org/GNOME/libxslt/-/archive/v1.1.37/libxslt-v1.1.37.tar.gz'Buildozer failed to execute the last commandThe error might be hidden in the log above this errorPlease read the full log, and search for it beforeraising an issue with buildozer itself.In case of a bug report, please add a full log with log_level = 2 |
[DEBUG]: Downloading libxslt from http://xmlsoft.org/sources/libxslt-1.1.37.tar.gz ENVIRONMENT:LANG = 'en_US.UTF-8'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:.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=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:.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:.webp=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:'TERM = 'xterm-256color'PATH = '/root/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin'MAIL = '/var/mail/root'LOGNAME = 'root'USER = 'root'HOME = '/root'SHELL = '/bin/bash'SUDO_COMMAND = '/root/.local/bin/buildozer -v android debug'SUDO_USER = 'root'SUDO_UID = '0'SUDO_GID = '0'PACKAGES_PATH = '/root/.buildozer/android/packages'ANDROIDSDK = '/root/.buildozer/android/platform/android-sdk'ANDROIDNDK = '/root/.buildozer/android/platform/android-ndk-r25b'ANDROIDAPI = '31'ANDROIDMINAPI = '21'P4A_libxml2_DIR = '/root/Android/https:/gitlab.gnome.org/GNOME/libxml2/-/archive/v2.10.3/libxml2-v2.10.3.tar.gz'P4A_kivy.libxslt_DIR = '/root/Android/https:/gitlab.gnome.org/GNOME/libxslt/-/archive/v1.1.37/libxslt-v1.1.37.tar.gz'Buildozer failed to execute the last commandThe error might be hidden in the log above this errorPlease read the full log, and search for it beforeraising an issue with buildozer itself.In case of a bug report, please add a full log with log_level = 2 |
[INFO]: Downloading libxslt from http://xmlsoft.org/sources/libxslt-1.1.37.tar.gz <-- THIS IS WRONG!!! WRONG LINK! Open your .buildozer folder in the folder where you build your app. If the .buildozer file is not visible hit CTRL+H to make it visible. Go to the python-for-android/recipes directory and replace the urls as follows:
|
我好菜啊 |
That is the directory. Well done. Now find the the folders of libxml2, libxslt and lxml. In each of these folders there is a init.py file. Open it and edit it according to the instructions.
|
是这个目录的__init__.py文件中内容进行更改吗
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月19日(星期五) 下午3:54
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
That is the directory. Well done. Now find the the folders of libxml2, libxslt and lxml. In each of these folders there is a init.py file. Open it and edit it according to the instructions.
[INFO]: Downloading libxslt from http://xmlsoft.org/sources/libxslt-1.1.37.tar.gz <-- THIS IS WRONG!!! WRONG LINK! Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None,
Open your .buildozer folder in the folder where you build your app. If the .buildozer file is not visible hit CTRL+H to make it visible. Go to the python-for-android/recipes directory and replace the urls as follows:
libxml2
# version = '2.9.12' USE # TO COMMENT OUT THE LINE! # url = 'http://xmlsoft.org/sources/libxml2-{version}.tar.gz' REPLACE THIS URL WITH THE ONE BELOW! USE # TO COMMENT OUT THE LINE! url = 'https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.10.3/libxml2-v2.10.3.tar.gz' <--USE THIS ONE!
libxslt
# version = '1.1.34' USE # TO COMMENT OUT THE LINE! # url = 'http://xmlsoft.org/sources/libxslt-{version}.tar.gz' REPLACE THIS URL WITH THE ONE BELOW! USE # TO COMMENT OUT THE LINE! url = 'https://gitlab.gnome.org/GNOME/libxslt/-/archive/v1.1.37/libxslt-v1.1.37.tar.gz' <--USE THIS ONE!
lxml
version = '4.9.2' JUST CHANGE THE VERSION NUMBER!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Well, I can't find the file you're talking about
…__init__.py for the current folder?
请问是这个目录吗?
肖健 80331126
***@***.***
------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月19日(星期五) 下午3:54
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
That is the directory. Well done. Now find the the folders of libxml2, libxslt and lxml. In each of these folders there is a init.py file. Open it and edit it according to the instructions.
[INFO]: Downloading libxslt from http://xmlsoft.org/sources/libxslt-1.1.37.tar.gz <-- THIS IS WRONG!!! WRONG LINK! Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None,
Open your .buildozer folder in the folder where you build your app. If the .buildozer file is not visible hit CTRL+H to make it visible. Go to the python-for-android/recipes directory and replace the urls as follows:
libxml2
# version = '2.9.12' USE # TO COMMENT OUT THE LINE! # url = 'http://xmlsoft.org/sources/libxml2-{version}.tar.gz' REPLACE THIS URL WITH THE ONE BELOW! USE # TO COMMENT OUT THE LINE! url = 'https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.10.3/libxml2-v2.10.3.tar.gz' <--USE THIS ONE!
libxslt
# version = '1.1.34' USE # TO COMMENT OUT THE LINE! # url = 'http://xmlsoft.org/sources/libxslt-{version}.tar.gz' REPLACE THIS URL WITH THE ONE BELOW! USE # TO COMMENT OUT THE LINE! url = 'https://gitlab.gnome.org/GNOME/libxslt/-/archive/v1.1.37/libxslt-v1.1.37.tar.gz' <--USE THIS ONE!
lxml
version = '4.9.2' JUST CHANGE THE VERSION NUMBER!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
找到了,感谢
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月19日(星期五) 下午3:54
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
That is the directory. Well done. Now find the the folders of libxml2, libxslt and lxml. In each of these folders there is a init.py file. Open it and edit it according to the instructions.
[INFO]: Downloading libxslt from http://xmlsoft.org/sources/libxslt-1.1.37.tar.gz <-- THIS IS WRONG!!! WRONG LINK! Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None,
Open your .buildozer folder in the folder where you build your app. If the .buildozer file is not visible hit CTRL+H to make it visible. Go to the python-for-android/recipes directory and replace the urls as follows:
libxml2
# version = '2.9.12' USE # TO COMMENT OUT THE LINE! # url = 'http://xmlsoft.org/sources/libxml2-{version}.tar.gz' REPLACE THIS URL WITH THE ONE BELOW! USE # TO COMMENT OUT THE LINE! url = 'https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.10.3/libxml2-v2.10.3.tar.gz' <--USE THIS ONE!
libxslt
# version = '1.1.34' USE # TO COMMENT OUT THE LINE! # url = 'http://xmlsoft.org/sources/libxslt-{version}.tar.gz' REPLACE THIS URL WITH THE ONE BELOW! USE # TO COMMENT OUT THE LINE! url = 'https://gitlab.gnome.org/GNOME/libxslt/-/archive/v1.1.37/libxslt-v1.1.37.tar.gz' <--USE THIS ONE!
lxml
version = '4.9.2' JUST CHANGE THE VERSION NUMBER!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
/root/.local/bin/buildozer android debug
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月18日(星期四) 凌晨3:57
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
Nope. The links you are using don't work. You will need to change the recipes for each of the modules as shown below.
libxml2
#version = '2.9.12' #url = 'http://xmlsoft.org/sources/libxml2-{version}.tar.gz' url = 'https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.10.3/libxml2-v2.10.3.tar.gz'
libxslt
#version = '1.1.34' #url = 'http://xmlsoft.org/sources/libxslt-{version}.tar.gz' url = 'https://gitlab.gnome.org/GNOME/libxslt/-/archive/v1.1.37/libxslt-v1.1.37.tar.gz'
lxml
version = '4.9.2'
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Building libffi for arm64-v8a
[INFO]: libffi said it is already built, skipping
[DEBUG]: -> running cp /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libffi/arm64-v8a__ndk_target_21/libffi/.libs/libffi.so /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/libs_collections/myapp/arm64-v8a
[INFO]: Building librt for arm64-v8a
[DEBUG]: -> running ln -sf /root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/21/libc.so /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/librt/arm64-v8a__ndk_target_21/librt/p4a-librt-recipe-tempdir/librt.so
[DEBUG]: -> running ln -sf /root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/21/libc.a /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/librt/arm64-v8a__ndk_target_21/librt/p4a-librt-recipe-tempdir/librt.a
[INFO]: Building libxml2 for arm64-v8a
[INFO]: libxml2 said it is already built, skipping
[WARNING]: install_libs called with no libraries to install!
[INFO]: Building openssl for arm64-v8a
[INFO]: openssl said it is already built, skipping
[DEBUG]: -> running cp /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/openssl/arm64-v8a__ndk_target_21/openssl1.1/libcrypto1.1.so /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/openssl/arm64-v8a__ndk_target_21/openssl1.1/libssl1.1.so /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/libs_collections/myapp/arm64-v8a
[INFO]: Building sdl2_image for arm64-v8a
[INFO]: Building sdl2_mixer for arm64-v8a
[INFO]: Building sdl2_ttf for arm64-v8a
[INFO]: Building sqlite3 for arm64-v8a
[INFO]: sqlite3 said it is already built, skipping
[INFO]: Building libxslt for arm64-v8a
[INFO]: libxslt said it is already built, skipping
[WARNING]: install_libs called with no libraries to install!
[INFO]: Building python3 for arm64-v8a
[INFO]: python3 said it is already built, skipping
[INFO]: Building sdl2 for arm64-v8a
[INFO]: sdl2 said it is already built, skipping
[INFO]: Building setuptools for arm64-v8a
[INFO]: Python package already exists in site-packages
[INFO]: setuptools said it is already built, skipping
[INFO]: Building lxml for arm64-v8a
[INFO]: lxml apparently isn't already in site-packages
[INFO]: Building compiled components in lxml
[INFO]: -> directory context /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml
[DEBUG]: -> running python3 setup.py build_ext -v
[DEBUG]: Building lxml version 4.8.0.
[DEBUG]: Building without Cython.
[DEBUG]:
[DEBUG]: WARNING: The stock libxml2 versions 2.9.11 and 2.9.12 are incompatible with this lxml version. They produce excess content on serialisation. Use a different library version or a static build.
[DEBUG]:
[DEBUG]: Building against libxml2 2.9.12 and libxslt 1.1.34
[DEBUG]: Building against libxml2/libxslt in one of the following directories:
[DEBUG]: /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxml2/arm64-v8a__ndk_target_21/libxml2/.libs
[DEBUG]: /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxslt/arm64-v8a__ndk_target_21/libxslt/libxslt/.libs
[DEBUG]: /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxslt/arm64-v8a__ndk_target_21/libxslt/libexslt/.libs
[DEBUG]: running build_ext
[DEBUG]: building 'lxml.etree' extension
[DEBUG]: /root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include -DANDROID -I/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/myapp/arm64-v8a/include/python3.1 -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxml2/arm64-v8a__ndk_target_21/libxml2/include -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxslt/arm64-v8a__ndk_target_21/libxslt -Isrc -Isrc/lxml/includes -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c src/lxml/etree.c -o build/temp.linux-x86_64-3.11/src/lxml/etree.o -w -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include
[DEBUG]: src/lxml/etree.c:265439:14: error: incomplete definition of type 'struct _frame'
[DEBUG]: f->f_back = PyThreadState_GetFrame(tstate);
[DEBUG]: ~^
[DEBUG]: /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
[DEBUG]: typedef struct _frame PyFrameObject;
[DEBUG]: ^
[DEBUG]: src/lxml/etree.c:265476:19: error: incomplete definition of type 'struct _frame'
[DEBUG]: Py_CLEAR(f->f_back);
[DEBUG]: ~^
[DEBUG]: /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/object.h:581:44: note: expanded from macro 'Py_CLEAR'
[DEBUG]: PyObject *_py_tmp = _PyObject_CAST(op); \
[DEBUG]: ^~
[DEBUG]: /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/object.h:107:49: note: expanded from macro '_PyObject_CAST'
[DEBUG]: #define _PyObject_CAST(op) _Py_CAST(PyObject*, (op))
[DEBUG]: ^~
[DEBUG]: /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pyport.h:24:38: note: expanded from macro '_Py_CAST'
[DEBUG]: #define _Py_CAST(type, expr) ((type)(expr))
[DEBUG]: ^~~~
[DEBUG]: /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
[DEBUG]: typedef struct _frame PyFrameObject;
[DEBUG]: ^
[DEBUG]: src/lxml/etree.c:265476:19: error: incomplete definition of type 'struct _frame'
[DEBUG]: Py_CLEAR(f->f_back);
[DEBUG]: ~^
[DEBUG]: /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/object.h:583:14: note: expanded from macro 'Py_CLEAR'
[DEBUG]: (op) = NULL; \
[DEBUG]: ^~
[DEBUG]: /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
[DEBUG]: typedef struct _frame PyFrameObject;
[DEBUG]: ^
[DEBUG]: src/lxml/etree.c:268244:5: error: incomplete definition of type 'struct _frame'
[DEBUG]: __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
[DEBUG]: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[DEBUG]: src/lxml/etree.c:528:62: note: expanded from macro '__Pyx_PyFrame_SetLineNumber'
[DEBUG]: #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
[DEBUG]: ~~~~~~~^
[DEBUG]: /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
[DEBUG]: typedef struct _frame PyFrameObject;
[DEBUG]: ^
[DEBUG]: 4 errors generated.
[DEBUG]: Compile failed: command '/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit code 1
[DEBUG]: Traceback (most recent call last):
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/unixccompiler.py", line 117, in _compile
[DEBUG]: self.spawn(compiler_so + cc_args + [src, '-o', obj] +
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/ccompiler.py", line 910, in spawn
[DEBUG]: spawn(cmd, dry_run=self.dry_run)
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/spawn.py", line 91, in spawn
[DEBUG]: raise DistutilsExecError(
[DEBUG]: distutils.errors.DistutilsExecError: command '/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit code 1
[DEBUG]:
[DEBUG]: During handling of the above exception, another exception occurred:
[DEBUG]:
[DEBUG]: Traceback (most recent call last):
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py", line 236, in run
[DEBUG]: _build_ext.run(self) # old-style class in Py2
[DEBUG]: ^^^^^^^^^^^^^^^^^^^^
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py", line 340, in run
[DEBUG]: self.build_extensions()
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py", line 449, in build_extensions
[DEBUG]: self._build_extensions_serial()
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serial
[DEBUG]: self.build_extension(ext)
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py", line 529, in build_extension
[DEBUG]: objects = self.compiler.compile(sources,
[DEBUG]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/ccompiler.py", line 574, in compile
[DEBUG]: self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/unixccompiler.py", line 120, in _compile
[DEBUG]: raise CompileError(msg)
[DEBUG]: distutils.errors.CompileError: command '/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit code 1
[DEBUG]:
[DEBUG]: During handling of the above exception, another exception occurred:
[DEBUG]:
[DEBUG]: Traceback (most recent call last):
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setup.py", line 204, in <module>
[DEBUG]: setup(
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/__init__.py", line 153, in setup
[DEBUG]: return distutils.core.setup(**attrs)
[DEBUG]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/core.py", line 148, in setup
[DEBUG]: dist.run_commands()
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py", line 966, in run_commands
[DEBUG]: self.run_command(cmd)
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py", line 985, in run_command
[DEBUG]: cmd_obj.run()
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py", line 239, in run
[DEBUG]: if not seems_to_have_libxml2():
[DEBUG]: ^^^^^^^^^^^^^^^^^^^^^^^
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py", line 253, in seems_to_have_libxml2
[DEBUG]: library_dirs=library_dirs([]),
[DEBUG]: ^^^^^^^^^^^^^^^^
[DEBUG]: File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py", line 288, in library_dirs
[DEBUG]: assert static_library_dirs, "Static build not configured, see doc/build.txt"
[DEBUG]: AssertionError: Static build not configured, see doc/build.txt
Exception in thread background thread for pid 540185:
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/root/.local/lib/python3.10/site-packages/sh.py", line 1641, in wrap
fn(*rgs, **kwargs)
File "/root/.local/lib/python3.10/site-packages/sh.py", line 2569, in background_thread
handle_exit_code(exit_code)
File "/root/.local/lib/python3.10/site-packages/sh.py", line 2269, in fn
return self.command.handle_command_exit_code(exit_code)
File "/root/.local/lib/python3.10/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v
STDOUT:
Building lxml version 4.8.0.
Building without Cython.
WARNING: The stock libxml2 versions 2.9.11 and 2.9.12 are incompatible with this lxml version. They produce excess content on serialisation. Use a different library version or a static build.
Building against libxml2 2.9.12 and libxslt 1.1.34
Building against libxml2/libxslt in one of the following directories:
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxml2/arm64-v8a__ndk_target_21/libxml2/.libs
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxslt/arm64-v8a__ndk_target_21/libxslt/libxslt/.libs
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxslt/arm64-v8a__ndk_target_21/libxslt/libexslt/.libs
running build_ext
building 'lxml.etree' extension
/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include -DANDROID -I/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/myapp/arm64-v8a/include/python3.1 -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxml2/arm64-v8a__ndk_target_21/libxml2/include -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxslt/arm64-v8a__ndk_target_21/libxslt -Isrc -Isrc/lxml/includes -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c src/lxml/etree.c -o build/temp.linux-x86_64-3.11/src/lxml/etree.o -w -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include
src/lxml/etree.c:265439:14: error: incomplete definition of type 'struct _frame'
f->f_back = PyThreadState_GetFrame(tstate);
~^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
src/lxml/etree.c:265476:19: error: incomplete definition of type 'struct _frame'
Py_CLEAR(f->f_back);
~^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/object.h:581:44: note: expanded from macro 'Py_CLEAR'
PyObject *_py_tmp = _PyObject_CAST(op); \
^~
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/object.h:107:49: note: expanded from macro '_PyObject_CAST'
#define _PyObject_CAST(op) _Py_CAST(PyObject*, (op))
^~
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pyport.h:24:38: note: expanded from macro '_Py_CAST'
#define _Py_CAST(type, expr) ((type)(expr))
^~~~
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
src/lxml/etree.c:265476:19: error: incomplete definition of type 'struct _frame'
Py_CLEAR(f->f_back);
~^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/object.h:583:14: note: expanded from macro 'Py_CLEAR'
(op) = NULL; \
^~
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
src/lxml/etree.c:268244:5: error: incomplete definition of type 'struct _frame'
__Pyx_PyFrame_SetLineNumber(py_frame, py_line);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lxml/etree.c:528:62: note: expanded from macro '__Pyx_PyFrame_SetLineNumber'
#define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
~~~~~~~^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
4 errors generated.
Compile failed: command '/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit code 1
Traceback (most recent call last):
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/unixccompiler.py", line 117, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] +
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/ccompiler.py", line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/spawn.py", line 91, in spawn
raise DistutilsExecError(
distutils.errors.DistutilsExecError: command '/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py", line 236, in run
_build_ext.run(self) # old-style class in Py2
^^^^^^^^^^^^^^^^^^^^
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py", line 529, in build_extension
objects = self.compiler.compile(sources,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/unixccompiler.py", line 120, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command '/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setup.py", line 204, in <module>
setup(
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_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 "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/core.py", line 148, in setup
dist.run_commands()
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py", line 239, in run
if not seems_to_have_libxml2():
^^^^^^^^^^^^^^^^^^^^^^^
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py", line 253, in seems_to_have_libxml2
library_dirs=library_dirs([]),
^^^^^^^^^^^^^^^^
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py", line 288, in library_dirs
assert static_library_dirs, "Static build not configured, see doc/build.txt"
AssertionError: Static build not configured, see doc/build.txt
STDERR:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1256, in <module>
main()
File "/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 685, in __init__
getattr(self, command)(args)
File "/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 104, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 163, in build_dist_from_args
build_recipes(build_order, python_modules, ctx,
File "/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 504, in build_recipes
recipe.build_arch(arch)
File "/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 983, in build_arch
self.build_compiled_components(arch)
File "/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 994, in build_compiled_components
shprint(hostpython, 'setup.py', self.build_cmd, '-v',
File "/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint
for line in output:
File "/root/.local/lib/python3.10/site-packages/sh.py", line 915, in next
self.wait()
File "/root/.local/lib/python3.10/site-packages/sh.py", line 845, in wait
self.handle_command_exit_code(exit_code)
File "/root/.local/lib/python3.10/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v
STDOUT:
Building lxml version 4.8.0.
Building without Cython.
WARNING: The stock libxml2 versions 2.9.11 and 2.9.12 are incompatible with this lxml version. They produce excess content on serialisation. Use a different library version or a static build.
Building against libxml2 2.9.12 and libxslt 1.1.34
Building against libxml2/libxslt in one of the following directories:
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxml2/arm64-v8a__ndk_target_21/libxml2/.libs
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxslt/arm64-v8a__ndk_target_21/libxslt/libxslt/.libs
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxslt/arm64-v8a__ndk_target_21/libxslt/libexslt/.libs
running build_ext
building 'lxml.etree' extension
/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include -DANDROID -I/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/myapp/arm64-v8a/include/python3.1 -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxml2/arm64-v8a__ndk_target_21/libxml2/include -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libxslt/arm64-v8a__ndk_target_21/libxslt -Isrc -Isrc/lxml/includes -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c src/lxml/etree.c -o build/temp.linux-x86_64-3.11/src/lxml/etree.o -w -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -I/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include
src/lxml/etree.c:265439:14: error: incomplete definition of type 'struct _frame'
f->f_back = PyThreadState_GetFrame(tstate);
~^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
src/lxml/etree.c:265476:19: error: incomplete definition of type 'struct _frame'
Py_CLEAR(f->f_back);
~^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/object.h:581:44: note: expanded from macro 'Py_CLEAR'
PyObject *_py_tmp = _PyObject_CAST(op); \
^~
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/object.h:107:49: note: expanded from macro '_PyObject_CAST'
#define _PyObject_CAST(op) _Py_CAST(PyObject*, (op))
^~
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pyport.h:24:38: note: expanded from macro '_Py_CAST'
#define _Py_CAST(type, expr) ((type)(expr))
^~~~
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
src/lxml/etree.c:265476:19: error: incomplete definition of type 'struct _frame'
Py_CLEAR(f->f_back);
~^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/object.h:583:14: note: expanded from macro 'Py_CLEAR'
(op) = NULL; \
^~
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
src/lxml/etree.c:268244:5: error: incomplete definition of type 'struct _frame'
__Pyx_PyFrame_SetLineNumber(py_frame, py_line);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lxml/etree.c:528:62: note: expanded from macro '__Pyx_PyFrame_SetLineNumber'
#define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
~~~~~~~^
/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of 'struct _frame'
typedef struct _frame PyFrameObject;
^
4 errors generated.
Compile failed: command '/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit code 1
Traceback (most recent call last):
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/unixccompiler.py", line 117, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] +
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/ccompiler.py", line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/spawn.py", line 91, in spawn
raise DistutilsExecError(
distutils.errors.DistutilsExecError: command '/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py", line 236, in run
_build_ext.run(self) # old-style class in Py2
^^^^^^^^^^^^^^^^^^^^
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/command/build_ext.py", line 529, in build_extension
objects = self.compiler.compile(sources,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/unixccompiler.py", line 120, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command '/root/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setup.py", line 204, in <module>
setup(
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_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 "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/core.py", line 148, in setup
dist.run_commands()
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Lib/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py", line 239, in run
if not seems_to_have_libxml2():
^^^^^^^^^^^^^^^^^^^^^^^
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py", line 253, in seems_to_have_libxml2
library_dirs=library_dirs([]),
^^^^^^^^^^^^^^^^
File "/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/lxml/arm64-v8a__ndk_target_21/lxml/setupinfo.py", line 288, in library_dirs
assert static_library_dirs, "Static build not configured, see doc/build.txt"
AssertionError: Static build not configured, see doc/build.txt
STDERR:
# Command failed: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=myapp', '--bootstrap=sdl2', '--requirements=python3,kivy,lxml==4.9.2', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# ENVIRONMENT:
# SHELL = '/bin/bash'
# PWD = '/root/Android'
# LOGNAME = 'root'
# XDG_SESSION_TYPE = 'tty'
# MOTD_SHOWN = 'pam'
# HOME = '/root'
# LANG = 'en_US.UTF-8'
# 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:*.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=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:*.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:*.webp=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:'
# SSH_CONNECTION = '8.139.112.179 65090 172.31.21.78 22'
# LESSCLOSE = '/usr/bin/lesspipe %s %s'
# XDG_SESSION_CLASS = 'user'
# TERM = 'xterm-256color'
# LESSOPEN = '| /usr/bin/lesspipe %s'
# USER = 'root'
# SHLVL = '1'
# XDG_SESSION_ID = '8250'
# XDG_RUNTIME_DIR = '/run/user/0'
# SSH_CLIENT = '8.139.112.179 65090 22'
# DEBUGINFOD_URLS = ''
# XDG_DATA_DIRS = '/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop'
# PATH = '/root/.buildozer/android/platform/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'
# DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/0/bus'
# SSH_TTY = '/dev/pts/2'
# _ = '/root/.local/bin/buildozer'
# OLDPWD = '/root'
# PACKAGES_PATH = '/root/.buildozer/android/packages'
# ANDROIDSDK = '/root/.buildozer/android/platform/android-sdk'
# ANDROIDNDK = '/root/.buildozer/android/platform/android-ndk-r25b'
# ANDROIDAPI = '31'
# 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
***@***.***:~/Android#
改完之后 ,还是报错
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月19日(星期五) 下午3:54
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
That is the directory. Well done. Now find the the folders of libxml2, libxslt and lxml. In each of these folders there is a init.py file. Open it and edit it according to the instructions.
[INFO]: Downloading libxslt from http://xmlsoft.org/sources/libxslt-1.1.37.tar.gz <-- THIS IS WRONG!!! WRONG LINK! Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None,
Open your .buildozer folder in the folder where you build your app. If the .buildozer file is not visible hit CTRL+H to make it visible. Go to the python-for-android/recipes directory and replace the urls as follows:
libxml2
# version = '2.9.12' USE # TO COMMENT OUT THE LINE! # url = 'http://xmlsoft.org/sources/libxml2-{version}.tar.gz' REPLACE THIS URL WITH THE ONE BELOW! USE # TO COMMENT OUT THE LINE! url = 'https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.10.3/libxml2-v2.10.3.tar.gz' <--USE THIS ONE!
libxslt
# version = '1.1.34' USE # TO COMMENT OUT THE LINE! # url = 'http://xmlsoft.org/sources/libxslt-{version}.tar.gz' REPLACE THIS URL WITH THE ONE BELOW! USE # TO COMMENT OUT THE LINE! url = 'https://gitlab.gnome.org/GNOME/libxslt/-/archive/v1.1.37/libxslt-v1.1.37.tar.gz' <--USE THIS ONE!
lxml
version = '4.9.2' JUST CHANGE THE VERSION NUMBER!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
class LXMLRecipe(CompiledComponentsPythonRecipe):
version = '4.9.2'
url = 'https://pypi.python.org/packages/source/l/lxml/lxml-{version}.tar.gz' # noqa
depends = ['librt', 'libxml2', 'libxslt', 'setuptools']
name = 'lxml'
class Libxml2Recipe(Recipe):
# version = '2.9.12'
# url = 'http://xmlsoft.org/sources/libxml2-{version}.tar.gz'
url = 'https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.10.3/libxml2-v2.10.3.tar.gz'
class LibxsltRecipe(Recipe):
# version = '1.1.34'
# url = 'http://xmlsoft.org/sources/libxslt-{version}.tar.gz'
url = 'https://gitlab.gnome.org/GNOME/libxslt/-/archive/v1.1.37/libxslt-v1.1.37.tar.gz'
depends = ['libxml2']
patches = ['fix-dlopen.patch']
built_libraries = {
'libxslt.a': 'libxslt/.libs',
'libexslt.a': 'libexslt/.libs'
}
call_hostpython_via_targetpython = False
requirements =python3,kivy,lxml==4.9.2
找不到是什么原因
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月19日(星期五) 下午3:54
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
That is the directory. Well done. Now find the the folders of libxml2, libxslt and lxml. In each of these folders there is a init.py file. Open it and edit it according to the instructions.
[INFO]: Downloading libxslt from http://xmlsoft.org/sources/libxslt-1.1.37.tar.gz <-- THIS IS WRONG!!! WRONG LINK! Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None,
Open your .buildozer folder in the folder where you build your app. If the .buildozer file is not visible hit CTRL+H to make it visible. Go to the python-for-android/recipes directory and replace the urls as follows:
libxml2
# version = '2.9.12' USE # TO COMMENT OUT THE LINE! # url = 'http://xmlsoft.org/sources/libxml2-{version}.tar.gz' REPLACE THIS URL WITH THE ONE BELOW! USE # TO COMMENT OUT THE LINE! url = 'https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.10.3/libxml2-v2.10.3.tar.gz' <--USE THIS ONE!
libxslt
# version = '1.1.34' USE # TO COMMENT OUT THE LINE! # url = 'http://xmlsoft.org/sources/libxslt-{version}.tar.gz' REPLACE THIS URL WITH THE ONE BELOW! USE # TO COMMENT OUT THE LINE! url = 'https://gitlab.gnome.org/GNOME/libxslt/-/archive/v1.1.37/libxslt-v1.1.37.tar.gz' <--USE THIS ONE!
lxml
version = '4.9.2' JUST CHANGE THE VERSION NUMBER!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
***@***.***:~/Android# sudo /root/.local/bin/buildozer -v android debug
# Check configuration tokens
Buildozer is running as root!
This is not recommended, and may lead to problems later.
Are you sure you want to continue [y/n]? y
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Search for Git (git)
# -> found at /usr/bin/git
# Search for Cython (cython)
# -> found at /usr/local/bin/cython
# Search for Java compiler (javac)
# -> found at /usr/lib/jvm/java-17-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
# -> found at /usr/lib/jvm/java-17-openjdk-amd64/bin/keytool
# Install platform
# Run ['git', 'config', '--get', 'remote.origin.url']
# Cwd /root/Android/.buildozer/android/platform/python-for-android
https://github.com/kivy/python-for-android.git
# Run ['git', 'branch', '-vv']
# Cwd /root/Android/.buildozer/android/platform/python-for-android
* master 957a3e5 [origin/master] Merge pull request #2959 from kivy/release-2024.01.21
# Run ['/usr/bin/python3', '-m', 'pip', 'install', '-q', '--user', 'appdirs', 'colorama>=0.3.3', 'jinja2', 'sh>=1.10, <2.0; sys_platform!="win32"', 'build', 'toml', 'packaging', 'setuptools']
# Cwd None
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
# Apache ANT found at /root/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /root/.buildozer/android/platform/android-sdk
# Recommended android's NDK version by p4a is: 25b
# Android NDK found at /root/.buildozer/android/platform/android-ndk-r25b
# Run ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'aab', '-h', '--color=always', '--storage-dir=/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# Cwd /root/Android/.buildozer/android/platform/python-for-android
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
usage: toolchain.py aab [-h] [--debug] [--color {always,never,auto}]
[--sdk-dir SDK_DIR] [--ndk-dir NDK_DIR]
[--android-api ANDROID_API]
[--ndk-version NDK_VERSION] [--ndk-api NDK_API]
[--symlink-bootstrap-files]
[--storage-dir STORAGE_DIR] [--arch ARCH]
[--dist-name DIST_NAME] [--requirements REQUIREMENTS]
[--recipe-blacklist RECIPE_BLACKLIST]
[--blacklist-requirements BLACKLIST_REQUIREMENTS]
[--bootstrap BOOTSTRAP] [--hook HOOK] [--force-build]
[--no-force-build] [--require-perfect-match]
[--no-require-perfect-match] [--allow-replace-dist]
[--no-allow-replace-dist]
[--local-recipes LOCAL_RECIPES]
[--activity-class-name ACTIVITY_CLASS_NAME]
[--service-class-name SERVICE_CLASS_NAME]
[--java-build-tool {auto,ant,gradle}] [--copy-libs]
[--no-copy-libs] [--add-asset ASSETS]
[--add-resource RESOURCES] [--private PRIVATE]
[--use-setup-py] [--ignore-setup-py] [--release]
[--with-debug-symbols] [--keystore KEYSTORE]
[--signkey SIGNKEY] [--keystorepw KEYSTOREPW]
[--signkeypw SIGNKEYPW]
options:
-h, --help show this help message and exit
--debug Display debug output and all build info
--color {always,never,auto}
Enable or disable color output (default enabled on
tty)
--sdk-dir SDK_DIR, --sdk_dir SDK_DIR
The filepath where the Android SDK is installed
--ndk-dir NDK_DIR, --ndk_dir NDK_DIR
The filepath where the Android NDK is installed
--android-api ANDROID_API, --android_api ANDROID_API
The Android API level to build against defaults to 33
if not specified.
--ndk-version NDK_VERSION, --ndk_version NDK_VERSION
DEPRECATED: the NDK version is now found automatically
or not at all.
--ndk-api NDK_API The Android API level to compile against. This should
be your *minimal supported* API, not normally the same
as your --android-api. Defaults to min(ANDROID_API,
21) if not specified.
--symlink-bootstrap-files, --ssymlink_bootstrap_files
If True, symlinks the bootstrap files creation. This
is useful for development only, it could also cause
weird problems.
--storage-dir STORAGE_DIR
Primary storage directory for downloads and builds
(default: /root/.local/share/python-for-android)
--arch ARCH The archs to build for.
--dist-name DIST_NAME, --dist_name DIST_NAME
The name of the distribution to use or create
--requirements REQUIREMENTS
Dependencies of your app, should be recipe names or
Python modules. NOT NECESSARY if you are using Python
3 with --use-setup-py
--recipe-blacklist RECIPE_BLACKLIST
Blacklist an internal recipe from use. Allows
disabling Python 3 core modules to save size
--blacklist-requirements BLACKLIST_REQUIREMENTS
Blacklist an internal recipe from use. Allows
disabling Python 3 core modules to save size
--bootstrap BOOTSTRAP
The bootstrap to build with. Leave unset to choose
automatically.
--hook HOOK Filename to a module that contains python-for-android
hooks
--local-recipes LOCAL_RECIPES, --local_recipes LOCAL_RECIPES
Directory to look for local recipes
--activity-class-name ACTIVITY_CLASS_NAME
The full java class name of the main activity
--service-class-name SERVICE_CLASS_NAME
Full java package name of the PythonService class
--java-build-tool {auto,ant,gradle}
The java build tool to use when packaging the APK,
defaults to automatically selecting an appropriate
tool.
--add-asset ASSETS Put this in the assets folder in the apk.
--add-resource RESOURCES
Put this in the res folder in the apk.
--private PRIVATE the directory with the app source code files
(containing your main.py entrypoint)
--use-setup-py Process the setup.py of a project if present.
(Experimental!
--ignore-setup-py Don't run the setup.py of a project if present. This
may be required if the setup.py is not designed to
work inside p4a (e.g. by installing dependencies that
won't work or aren't desired on Android
--release Build your app as a non-debug release build. (Disables
gdb debugging among other things)
--with-debug-symbols Will keep debug symbols from `.so` files.
--keystore KEYSTORE Keystore for JAR signing key, will use jarsigner
default if not specified (release build only)
--signkey SIGNKEY Key alias to sign PARSER_APK. with (release build
only)
--keystorepw KEYSTOREPW
Password for keystore
--signkeypw SIGNKEYPW
Password for key alias
Whether to force compilation of a new distribution
--force-build
--no-force-build (this is the default)
--require-perfect-match
--no-require-perfect-match
(this is the default)
--allow-replace-dist (this is the default)
--no-allow-replace-dist
--copy-libs
--no-copy-libs (this is the default)
# Check application requirements
# Compile platform
# Run ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=myapp', '--bootstrap=sdl2', '--requirements=python3,kivy', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# Cwd /root/Android/.buildozer/android/platform/python-for-android
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
[INFO]: Will compile for the following archs: arm64-v8a, armeabi-v7a
[INFO]: Found Android API target in $ANDROIDAPI: 31
[INFO]: Available Android APIs are ()
[ERROR]: Build failed: Requested API target 31 is not available, install it with the SDK android tool.
# Command failed: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=myapp', '--bootstrap=sdl2', '--requirements=python3,kivy', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# ENVIRONMENT:
# LANG = 'en_US.UTF-8'
# 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:*.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=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:*.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:*.webp=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:'
# TERM = 'xterm-256color'
# PATH = '/root/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin'
# MAIL = '/var/mail/root'
# LOGNAME = 'root'
# USER = 'root'
# HOME = '/root'
# SHELL = '/bin/bash'
# SUDO_COMMAND = '/root/.local/bin/buildozer -v android debug'
# SUDO_USER = 'root'
# SUDO_UID = '0'
# SUDO_GID = '0'
# PACKAGES_PATH = '/root/.buildozer/android/packages'
# ANDROIDSDK = '/root/.buildozer/android/platform/android-sdk'
# ANDROIDNDK = '/root/.buildozer/android/platform/android-ndk-r25b'
# ANDROIDAPI = '31'
# 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
这个是修改过的地方
class LXMLRecipe(CompiledComponentsPythonRecipe):
version = '4.9.2'
url = 'https://pypi.python.org/packages/source/l/lxml/lxml-{version}.tar.gz' # noqa
depends = ['librt', 'libxml2', 'libxslt', 'setuptools']
name = 'lxml'
class Libxml2Recipe(Recipe):
# version = '2.9.12'
# url = 'http://xmlsoft.org/sources/libxml2-{version}.tar.gz'
url = 'https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.10.3/libxml2-v2.10.3.tar.gz'
class LibxsltRecipe(Recipe):
# version = '1.1.34'
# url = 'http://xmlsoft.org/sources/libxslt-{version}.tar.gz'
url = 'https://gitlab.gnome.org/GNOME/libxslt/-/archive/v1.1.37/libxslt-v1.1.37.tar.gz'
depends = ['libxml2']
patches = ['fix-dlopen.patch']
built_libraries = {
'libxslt.a': 'libxslt/.libs',
'libexslt.a': 'libexslt/.libs'
}
call_hostpython_via_targetpython = False
requirements =python3,kivy,lxml==4.9.2
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月19日(星期五) 下午3:54
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
That is the directory. Well done. Now find the the folders of libxml2, libxslt and lxml. In each of these folders there is a init.py file. Open it and edit it according to the instructions.
[INFO]: Downloading libxslt from http://xmlsoft.org/sources/libxslt-1.1.37.tar.gz <-- THIS IS WRONG!!! WRONG LINK! Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None,
Open your .buildozer folder in the folder where you build your app. If the .buildozer file is not visible hit CTRL+H to make it visible. Go to the python-for-android/recipes directory and replace the urls as follows:
libxml2
# version = '2.9.12' USE # TO COMMENT OUT THE LINE! # url = 'http://xmlsoft.org/sources/libxml2-{version}.tar.gz' REPLACE THIS URL WITH THE ONE BELOW! USE # TO COMMENT OUT THE LINE! url = 'https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.10.3/libxml2-v2.10.3.tar.gz' <--USE THIS ONE!
libxslt
# version = '1.1.34' USE # TO COMMENT OUT THE LINE! # url = 'http://xmlsoft.org/sources/libxslt-{version}.tar.gz' REPLACE THIS URL WITH THE ONE BELOW! USE # TO COMMENT OUT THE LINE! url = 'https://gitlab.gnome.org/GNOME/libxslt/-/archive/v1.1.37/libxslt-v1.1.37.tar.gz' <--USE THIS ONE!
lxml
version = '4.9.2' JUST CHANGE THE VERSION NUMBER!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
The recipes seem to be fine! You don't need to do lxml=='4.9.2', just lxml in the requirements. The build fails because it doesn't find API 31. This now a totally different issue. |
之前 还可以打包其它的,不知道改到哪个文件了。现在不能用了,我要不重新初始化一次
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月19日(星期五) 下午5:45
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
The recipes seem to be fine!
You don't need to do lxml=='4.9.2', just lxml in the requirements.
The build fails because it doesn't find API 31. This now a totally different issue.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Clean the building environment before you try to build again. |
重新来过
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2024年7月19日(星期五) 下午5:57
收件人: ***@***.***>;
抄送: "肖健 ***@***.***>; ***@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
在你试图重新建造之前,先清洁建筑物的环境。
-
直接回复这封邮件,在GitHub上查看,或取消订阅.
***@***.***>
|
***@***.***:~/Android# sudo /root/.local/bin/buildozer android debug
# Check configuration tokens
Buildozer is running as root!
This is not recommended, and may lead to problems later.
Are you sure you want to continue [y/n]? y
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Search for Git (git)
# -> found at /usr/bin/git
# Search for Cython (cython)
# -> found at /usr/local/bin/cython
# Search for Java compiler (javac)
# -> found at /usr/lib/jvm/java-17-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
# -> found at /usr/lib/jvm/java-17-openjdk-amd64/bin/keytool
# Install platform
# Run ['git', 'config', '--get', 'remote.origin.url']
# Cwd /root/Android/.buildozer/android/platform/python-for-android
https://github.com/kivy/python-for-android.git
# Run ['git', 'branch', '-vv']
# Cwd /root/Android/.buildozer/android/platform/python-for-android
* master 957a3e5 [origin/master] Merge pull request #2959 from kivy/release-2024.01.21
# Run ['/usr/bin/python3', '-m', 'pip', 'install', '-q', '--user', 'appdirs', 'colorama>=0.3.3', 'jinja2', 'sh>=1.10, <2.0; sys_platform!="win32"', 'build', 'toml', 'packaging', 'setuptools']
# Cwd None
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
# Apache ANT found at /root/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /root/.buildozer/android/platform/android-sdk
# Recommended android's NDK version by p4a is: 25b
# Android NDK found at /root/.buildozer/android/platform/android-ndk-r25b
# Run ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'aab', '-h', '--color=always', '--storage-dir=/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# Cwd /root/Android/.buildozer/android/platform/python-for-android
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
usage: toolchain.py aab [-h] [--debug] [--color {always,never,auto}]
[--sdk-dir SDK_DIR] [--ndk-dir NDK_DIR]
[--android-api ANDROID_API]
[--ndk-version NDK_VERSION] [--ndk-api NDK_API]
[--symlink-bootstrap-files]
[--storage-dir STORAGE_DIR] [--arch ARCH]
[--dist-name DIST_NAME] [--requirements REQUIREMENTS]
[--recipe-blacklist RECIPE_BLACKLIST]
[--blacklist-requirements BLACKLIST_REQUIREMENTS]
[--bootstrap BOOTSTRAP] [--hook HOOK] [--force-build]
[--no-force-build] [--require-perfect-match]
[--no-require-perfect-match] [--allow-replace-dist]
[--no-allow-replace-dist]
[--local-recipes LOCAL_RECIPES]
[--activity-class-name ACTIVITY_CLASS_NAME]
[--service-class-name SERVICE_CLASS_NAME]
[--java-build-tool {auto,ant,gradle}] [--copy-libs]
[--no-copy-libs] [--add-asset ASSETS]
[--add-resource RESOURCES] [--private PRIVATE]
[--use-setup-py] [--ignore-setup-py] [--release]
[--with-debug-symbols] [--keystore KEYSTORE]
[--signkey SIGNKEY] [--keystorepw KEYSTOREPW]
[--signkeypw SIGNKEYPW]
options:
-h, --help show this help message and exit
--debug Display debug output and all build info
--color {always,never,auto}
Enable or disable color output (default enabled on
tty)
--sdk-dir SDK_DIR, --sdk_dir SDK_DIR
The filepath where the Android SDK is installed
--ndk-dir NDK_DIR, --ndk_dir NDK_DIR
The filepath where the Android NDK is installed
--android-api ANDROID_API, --android_api ANDROID_API
The Android API level to build against defaults to 33
if not specified.
--ndk-version NDK_VERSION, --ndk_version NDK_VERSION
DEPRECATED: the NDK version is now found automatically
or not at all.
--ndk-api NDK_API The Android API level to compile against. This should
be your *minimal supported* API, not normally the same
as your --android-api. Defaults to min(ANDROID_API,
21) if not specified.
--symlink-bootstrap-files, --ssymlink_bootstrap_files
If True, symlinks the bootstrap files creation. This
is useful for development only, it could also cause
weird problems.
--storage-dir STORAGE_DIR
Primary storage directory for downloads and builds
(default: /root/.local/share/python-for-android)
--arch ARCH The archs to build for.
--dist-name DIST_NAME, --dist_name DIST_NAME
The name of the distribution to use or create
--requirements REQUIREMENTS
Dependencies of your app, should be recipe names or
Python modules. NOT NECESSARY if you are using Python
3 with --use-setup-py
--recipe-blacklist RECIPE_BLACKLIST
Blacklist an internal recipe from use. Allows
disabling Python 3 core modules to save size
--blacklist-requirements BLACKLIST_REQUIREMENTS
Blacklist an internal recipe from use. Allows
disabling Python 3 core modules to save size
--bootstrap BOOTSTRAP
The bootstrap to build with. Leave unset to choose
automatically.
--hook HOOK Filename to a module that contains python-for-android
hooks
--local-recipes LOCAL_RECIPES, --local_recipes LOCAL_RECIPES
Directory to look for local recipes
--activity-class-name ACTIVITY_CLASS_NAME
The full java class name of the main activity
--service-class-name SERVICE_CLASS_NAME
Full java package name of the PythonService class
--java-build-tool {auto,ant,gradle}
The java build tool to use when packaging the APK,
defaults to automatically selecting an appropriate
tool.
--add-asset ASSETS Put this in the assets folder in the apk.
--add-resource RESOURCES
Put this in the res folder in the apk.
--private PRIVATE the directory with the app source code files
(containing your main.py entrypoint)
--use-setup-py Process the setup.py of a project if present.
(Experimental!
--ignore-setup-py Don't run the setup.py of a project if present. This
may be required if the setup.py is not designed to
work inside p4a (e.g. by installing dependencies that
won't work or aren't desired on Android
--release Build your app as a non-debug release build. (Disables
gdb debugging among other things)
--with-debug-symbols Will keep debug symbols from `.so` files.
--keystore KEYSTORE Keystore for JAR signing key, will use jarsigner
default if not specified (release build only)
--signkey SIGNKEY Key alias to sign PARSER_APK. with (release build
only)
--keystorepw KEYSTOREPW
Password for keystore
--signkeypw SIGNKEYPW
Password for key alias
Whether to force compilation of a new distribution
--force-build
--no-force-build (this is the default)
--require-perfect-match
--no-require-perfect-match
(this is the default)
--allow-replace-dist (this is the default)
--no-allow-replace-dist
--copy-libs
--no-copy-libs (this is the default)
# Check application requirements
# Compile platform
# Run ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=myapp', '--bootstrap=sdl2', '--requirements=python3,kivy', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# Cwd /root/Android/.buildozer/android/platform/python-for-android
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
[INFO]: Will compile for the following archs: arm64-v8a, armeabi-v7a
[INFO]: Found Android API target in $ANDROIDAPI: 31
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1256, in <module>
main()
File "/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 685, in __init__
getattr(self, command)(args)
File "/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 94, in wrapper_func
ctx.prepare_build_environment(user_sdk_dir=self.sdk_dir,
File "/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 273, in prepare_build_environment
apis = get_available_apis(self.sdk_dir)
File "/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 48, in get_available_apis
targets = get_targets(sdk_dir)
File "/root/Android/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 36, in get_targets
targets = avdmanager('list', 'target').stdout.decode('utf-8').split('\n')
File "/root/.local/lib/python3.10/site-packages/sh.py", line 1524, in __call__
return RunningCommand(cmd, call_args, stdin, stdout, stderr)
File "/root/.local/lib/python3.10/site-packages/sh.py", line 788, in __init__
self.wait()
File "/root/.local/lib/python3.10/site-packages/sh.py", line 845, in wait
self.handle_command_exit_code(exit_code)
File "/root/.local/lib/python3.10/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /root/.buildozer/android/platform/android-sdk/tools/bin/avdmanager list target
STDOUT:
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
STDERR:
# Command failed: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=myapp', '--bootstrap=sdl2', '--requirements=python3,kivy', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/root/Android/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# ENVIRONMENT:
# LANG = 'en_US.UTF-8'
# 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:*.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=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:*.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:*.webp=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:'
# TERM = 'xterm-256color'
# PATH = '/root/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin'
# MAIL = '/var/mail/root'
# LOGNAME = 'root'
# USER = 'root'
# HOME = '/root'
# SHELL = '/bin/bash'
# SUDO_COMMAND = '/root/.local/bin/buildozer android debug'
# SUDO_USER = 'root'
# SUDO_UID = '0'
# SUDO_GID = '0'
# PACKAGES_PATH = '/root/.buildozer/android/packages'
# ANDROIDSDK = '/root/.buildozer/android/platform/android-sdk'
# ANDROIDNDK = '/root/.buildozer/android/platform/android-ndk-r25b'
# ANDROIDAPI = '31'
# 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
完了,搞不回去了
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月19日(星期五) 下午5:57
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
Clean the building environment before you try to build again.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Please read carefully: https://vitux.com/how-to-setup-java_home-path-in-ubuntu/ Especially, read further down: How do I permanently set the JAVA_HOME variable in Ubuntu? and How do I check if JAVA_HOME is set correctly in Ubuntu? |
谢谢,已解决
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月19日(星期五) 晚上9:48
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
Please read carefully: https://vitux.com/how-to-setup-java_home-path-in-ubuntu/
Especially, read further down: How do I permanently set the JAVA_HOME variable in Ubuntu? and How do I check if JAVA_HOME is set correctly in Ubuntu?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Traceback (most recent call last):
File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/kivy/__init__.py", line 372, in <module>
File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/other_builds/python3/arm64-v8a__ndk_target_21/python3/Libutil.py", line 561, in copytree
File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/other_builds/python3/arm64-v8a__ndk_target_21/python3/Libutil.py", line 515, in _copytree
shutil.Error: [('/data/user/0/org.test.myapp/files/app/_python_bundle/site-packages/kivy/data/logo/kivy-icon-128.png', '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-128.png', "[Errno 13] Permission denied: '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-128.png'"), ('/data/user/0/org.test.myapp/files/app/_python_bundle/site-packages/kivy/data/logo/kivy-icon-16.png', '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-16.png', "[Errno 13] Permission denied: '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-16.png'"), ('/data/user/0/org.test.myapp/files/app/_python_bundle/site-packages/kivy/data/logo/kivy-icon-24.png', '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-24.png', "[Errno 13] Permission denied: '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-24.png'"), ('/data/user/0/org.test.myapp/files/app/_python_bundle/site-packages/kivy/data/logo/kivy-icon-256.png', '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-256.png', "[Errno 13] Permission denied: '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-256.png'"), ('/data/user/0/org.test.myapp/files/app/_python_bundle/site-packages/kivy/data/logo/kivy-icon-32.png', '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-32.png', "[Errno 13] Permission denied: '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-32.png'"), ('/data/user/0/org.test.myapp/files/app/_python_bundle/site-packages/kivy/data/logo/kivy-icon-48.png', '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-48.png', "[Errno 13] Permission denied: '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-48.png'"), ('/data/user/0/org.test.myapp/files/app/_python_bundle/site-packages/kivy/data/logo/kivy-icon-512.png', '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-512.png', "[Errno 13] Permission denied: '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-512.png'"), ('/data/user/0/org.test.myapp/files/app/_python_bundle/site-packages/kivy/data/logo/kivy-icon-64.ico', '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-64.ico', "[Errno 13] Permission denied: '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-64.ico'"), ('/data/user/0/org.test.myapp/files/app/_python_bundle/site-packages/kivy/data/logo/kivy-icon-64.png', '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-64.png', "[Errno 13] Permission denied: '/data/user/0/org.test.myapp/files/app/.kivy/icon/kivy-icon-64.png'"), ('/data/user/0/org.test.myapp/files/app/_python_bundle/site-packages/kivy/data/logo', '/data/user/0/org.test.myapp/files/app/.kivy/icon', "[Errno 13] Permission denied: '/data/user/0/org.test.myapp/files/app/.kivy/icon'")]
[INFO ] Kivy: v2.3.0
[INFO ] Kivy: Installed at "/data/user/0/org.test.myapp/files/app/_python_bundle/site-packages/kivy/__init__.pyc"
[INFO ] Python: v3.11.5 (main, Jul 20 2024, 02:05:53) [Clang 14.0.6 (https://android.googlesource.com/toolchain/llvm-project 4c603efb0
[INFO ] Python: Interpreter at ""
[INFO ] Logger: Purge log fired. Processing...
[INFO ] Logger: Purge finished!
[INFO ] Factory: 195 symbols loaded
[INFO ] Image: Providers: img_tex, img_dds, img_sdl2 (img_pil, img_ffpyplayer ignored)
[INFO ] Text: Provider: sdl2
[INFO ] Window: Provider: sdl2
[INFO ] GL: Using the "OpenGL ES 2" graphics system
[INFO ] GL: Backend used <sdl2>
[INFO ] GL: OpenGL version <b'OpenGL ES 3.2 v1.r21p0-01rel0.ec569cabea7786150f2a7e0ef656be48'>
[INFO ] GL: OpenGL vendor <b'ARM'>
[INFO ] GL: OpenGL renderer <b'Mali-G57 MC4'>
[INFO ] GL: OpenGL parsed version: 3, 2
[INFO ] GL: Texture max size <8192>
[INFO ] GL: Texture max units <16>
[INFO ] Window: auto add sdl2 input provider
[INFO ] Window: virtual keyboard not allowed, single mode, not docked
[INFO ] Audio: Providers: audio_sdl2 (audio_android, audio_ffpyplayer ignored)
[WARNING] Base: Unknown <android> provider
[INFO ] Base: Start application main loop
[INFO ] GL: NPOT texture support is available
[WARNING] AudioSDL2: Unable to load http://res.iciba.com/resource/amp3/oxford/0/2a/b8/2ab8a23c8c7b8779cd9fecb335b21d49.mp3: b'Mix_LoadWAV_RW with NULL src'
[WARNING] AudioSDL2: Unable to load http://res.iciba.com/resource/amp3/oxford/0/2a/b8/2ab8a23c8c7b8779cd9fecb335b21d49.mp3: b'Mix_LoadWAV_RW with NULL src'
[WARNING] AudioSDL2: Unable to load http://res.iciba.com/resource/amp3/oxford/0/2a/b8/2ab8a23c8c7b8779cd9fecb335b21d49.mp3: b'Mix_LoadWAV_RW with NULL src'
[WARNING] AudioSDL2: Unable to load http://res.iciba.com/resource/amp3/oxford/0/2a/b8/2ab8a23c8c7b8779cd9fecb335b21d49.mp3: b'Mix_LoadWAV_RW with NULL src'
[WARNING] AudioSDL2: Unable to load http://res.iciba.com/resource/amp3/oxford/0/2a/b8/2ab8a23c8c7b8779cd9fecb335b21d49.mp3: b'Mix_LoadWAV_RW with NULL src'
[WARNING] AudioSDL2: Unable to load http://res.iciba.com/resource/amp3/oxford/0/89/c5/89c5ed7349cb8832a42836467c33017f.mp3: b'Mix_LoadWAV_RW with NULL src'
[DEBUG ] Starting new HTTPS connection (1): www.iciba.com:443
[INFO ] Base: Leaving application in progress...
[WARNING] stderr: Traceback (most recent call last):
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/urllib3/connection.py", line 196, in _new_conn
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/urllib3/util/connection.py", line 60, in create_connection
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/socket.py", line 962, in getaddrinfo
[WARNING] stderr: socket.gaierror: [Errno 7] No address associated with hostname
[WARNING] stderr:
[WARNING] stderr: The above exception was the direct cause of the following exception:
[WARNING] stderr:
[WARNING] stderr: Traceback (most recent call last):
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/urllib3/connectionpool.py", line 789, in urlopen
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/urllib3/connectionpool.py", line 490, in _make_request
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/urllib3/connectionpool.py", line 466, in _make_request
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/urllib3/connectionpool.py", line 1095, in _validate_conn
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/urllib3/connection.py", line 615, in connect
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/urllib3/connection.py", line 203, in _new_conn
[WARNING] stderr: urllib3.exceptions.NameResolutionError: <urllib3.connection.HTTPSConnection object at 0x71e3b9fb90>: Failed to resolve 'www.iciba.com' ([Errno 7] No address associated with hostname)
[WARNING] stderr:
[WARNING] stderr: The above exception was the direct cause of the following exception:
[WARNING] stderr:
[WARNING] stderr: Traceback (most recent call last):
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/requests/adapters.py", line 667, in send
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/urllib3/connectionpool.py", line 843, in urlopen
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/urllib3/util/retry.py", line 519, in increment
[WARNING] stderr: urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.iciba.com', port=443): Max retries exceeded with url: /word?w=size (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x71e3b9fb90>: Failed to resolve 'www.iciba.com' ([Errno 7] No address associated with hostname)"))
[WARNING] stderr:
[WARNING] stderr: During handling of the above exception, another exception occurred:
[WARNING] stderr:
[WARNING] stderr: Traceback (most recent call last):
[WARNING] stderr: File "/root/Android_file_main/.buildozer/android/app/main.py", line 54, in <module>
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/kivy/app.py", line 956, in run
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/kivy/base.py", line 574, in runTouchApp
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/kivy/base.py", line 339, in mainloop
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/kivy/base.py", line 383, in idle
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/kivy/base.py", line 334, in dispatch_input
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/kivy/base.py", line 263, in post_dispatch_input
[WARNING] stderr: File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/kivy/core/window/__init__.py", line 1709, in on_motion
[WARNING] stderr: File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/kivy/core/window/__init__.py", line 1726, in on_touch_down
[WARNING] stderr: File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/kivy/uix/widget.py", line 589, in on_touch_down
[WARNING] stderr: File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/kivy/uix/screenmanager.py", line 1210, in on_touch_down
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/kivy/uix/widget.py", line 589, in on_touch_down
[WARNING] stderr: File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/kivy/uix/relativelayout.py", line 306, in on_touch_down
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/kivy/uix/widget.py", line 589, in on_touch_down
[WARNING] stderr: File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/kivy/uix/behaviorstton.py", line 151, in on_touch_down
[WARNING] stderr: File "kivy/_event.pyx", line 727, in kivy._event.EventDispatcher.dispatch
[WARNING] stderr: File "kivy/_event.pyx", line 1307, in kivy._event.EventObservers.dispatch
[WARNING] stderr: File "kivy/_event.pyx", line 1231, in kivy._event.EventObservers._dispatch
[WARNING] stderr: File "/root/Android_file_main/.buildozer/android/apparch_viewrch_box.py", line 48, in click_d
[WARNING] stderr: File "/root/Android_file_main/.buildozer/android/app/utils/test.py", line 11, in get_data
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/requests/api.py", line 73, in get
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/requests/api.py", line 59, in request
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/requestsssions.py", line 589, in request
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/requestsssions.py", line 703, in send
[WARNING] stderr: File "/root/Android_file_main/.buildozer/androidatformild-arm64-v8a_armeabi-v7aild/python-installs/myapp/arm64-v8a/requests/adapters.py", line 700, in send
[WARNING] stderr: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.iciba.com', port=443): Max retries exceeded with url: /word?w=size (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x71e3b9fb90>: Failed to resolve 'www.iciba.com' ([Errno 7] No address associated with hostname)"))
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: "肖健 80331126" ***@***.***>;
发送时间: 2024年7月20日(星期六) 中午11:09
***@***.***>;
主题: 回复: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
谢谢,已解决
肖健 80331126
***@***.***
------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月19日(星期五) 晚上9:48
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
Please read carefully: https://vitux.com/how-to-setup-java_home-path-in-ubuntu/
Especially, read further down: How do I permanently set the JAVA_HOME variable in Ubuntu? and How do I check if JAVA_HOME is set correctly in Ubuntu?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
So, what is the error here? |
谢谢您的帮忙
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月20日(星期六) 晚上10:38
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
So, what is the error here?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
我有一个问题解决不了,在此请教您,感谢您的帮忙。
# from kivy.graphics import *
from kivy.utils import get_color_from_hex
from kivy.app import App
from kivy.uix.screenmanager import Screen
from kivy.graphics import *
from kivy.uix.label import Label
# from kivy.uix.button import Button
from kivy.uix.widget import Widget
def addbagckround(widget,color=None, blur_radius=0,border_radius=[0,0,0,0],inset=False,offset=(0,0)):
with widget.canvas.before:
if color==None:
Color(1,1,1)
else:
Color(*get_color_from_hex(color))
# print(widget.bool)
box = BoxShadow(
source="./478.png",
pos = widget.pos,
inset= inset,
size = widget.size,
# bool = widget.bool,
blur_radius = blur_radius,
border_radius = border_radius,
offset=offset,
# blur_color=(1,0,1),
)
# box.add(Rectangle(source="./478.png", pos=box.pos, size=box.size))
# box.add()
class MainScreen(Screen):
def __init__(self):
super().__init__()
but = Label(text="lls", size_hint=(None, None), size=(200,200), color=(1,0,1),x=500,y=500)
but.bool="./478.png"
addbagckround(but,blur_radius=25, inset=True, offset=(10,0), border_radius=[50,100,200,0])
self.add_widget(but)
def enton_enterer(self, *args):
print("iewv")
# with self.canvas:
#
#
# BoxShadow(
# # pos=(1000,5),
# pos=(100,100),
# size=(250,50),
#
# inset=True,
# blur_radius=25,
# border_radius=[25,25,25,25],
#
#
# # spread_radius=(100,10,20,30)
# # border_radius=[50,100,125,25]
# )
# offset: 0, -10
# blur_radius: 25
# spread_radius: -10, -10
# border_radius: 10, 10, 10, 10
# Rectangle(pos=(10, 10), size=(100, 100),border_radius=[0,25,50,100], blur_radius=25)
# rc = RenderContext(use_parent_modelview=True)
# Add a rectangle
# Rectangle(pos=(10, 10), size=(500, 500), border_radius=(250,10,10,10),border=100)
if __name__ == '__main__':
A =App()
A.build=MainScreen
A.run()
我想要做到一个效果,就是
I'm trying to do one thing, which is
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月20日(星期六) 晚上10:38
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
So, what is the error here?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
This is a Kivy support question and is not a issue with python-for-android. |
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月23日(星期二) 下午2:14
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
我有一个问题解决不了,在此请教您,感谢您的帮忙。 # from kivy.graphics import * from kivy.utils import get_color_from_hex from kivy.app import App from kivy.uix.screenmanager import Screen from kivy.graphics import * from kivy.uix.label import Label # from kivy.uix.button import Button from kivy.uix.widget import Widget def addbagckround(widget,color=None, blur_radius=0,border_radius=[0,0,0,0],inset=False,offset=(0,0)): with widget.canvas.before: if color==None: Color(1,1,1) else: Color(get_color_from_hex(color)) # print(widget.bool) box = BoxShadow( source="./478.png", pos = widget.pos, inset= inset, size = widget.size, # bool = widget.bool, blur_radius = blur_radius, border_radius = border_radius, offset=offset, # blur_color=(1,0,1), ) # box.add(Rectangle(source="./478.png", pos=box.pos, size=box.size)) # box.add() class MainScreen(Screen): def init(self): super().init() but = Label(text="lls", size_hint=(None, None), size=(200,200), color=(1,0,1),x=500,y=500) but.bool="./478.png" addbagckround(but,blur_radius=25, inset=True, offset=(10,0), border_radius=[50,100,200,0]) self.add_widget(but) def enton_enterer(self, args): print("iewv") # with self.canvas: # # # BoxShadow( # # pos=(1000,5), # pos=(100,100), # size=(250,50), # # inset=True, # blur_radius=25, # border_radius=[25,25,25,25], # # # # spread_radius=(100,10,20,30) # # border_radius=[50,100,125,25] # ) # offset: 0, -10 # blur_radius: 25 # spread_radius: -10, -10 # border_radius: 10, 10, 10, 10 # Rectangle(pos=(10, 10), size=(100, 100),border_radius=[0,25,50,100], blur_radius=25) # rc = RenderContext(use_parent_modelview=True) # Add a rectangle # Rectangle(pos=(10, 10), size=(500, 500), border_radius=(250,10,10,10),border=100) if name == 'main': A =App() A.build=MainScreen A.run() 我想要做到一个效果,就是 I'm trying to do one thing, which is 肖健 80331126 @.*
…
------------------ 原始邮件 ------------------ 发件人: "kivy/python-for-android" @.>; 发送时间: 2024年7月20日(星期六) 晚上10:38 @.>; 抄送: "肖健 @.@.>; 主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928) So, what is the error here? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
This is a Kivy support question and is not a issue with python-for-android.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
这个问题是,我想要给BoxShadow添加图片背景,
但是我不懂怎么操作。
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月23日(星期二) 下午2:14
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
我有一个问题解决不了,在此请教您,感谢您的帮忙。 # from kivy.graphics import * from kivy.utils import get_color_from_hex from kivy.app import App from kivy.uix.screenmanager import Screen from kivy.graphics import * from kivy.uix.label import Label # from kivy.uix.button import Button from kivy.uix.widget import Widget def addbagckround(widget,color=None, blur_radius=0,border_radius=[0,0,0,0],inset=False,offset=(0,0)): with widget.canvas.before: if color==None: Color(1,1,1) else: Color(get_color_from_hex(color)) # print(widget.bool) box = BoxShadow( source="./478.png", pos = widget.pos, inset= inset, size = widget.size, # bool = widget.bool, blur_radius = blur_radius, border_radius = border_radius, offset=offset, # blur_color=(1,0,1), ) # box.add(Rectangle(source="./478.png", pos=box.pos, size=box.size)) # box.add() class MainScreen(Screen): def init(self): super().init() but = Label(text="lls", size_hint=(None, None), size=(200,200), color=(1,0,1),x=500,y=500) but.bool="./478.png" addbagckround(but,blur_radius=25, inset=True, offset=(10,0), border_radius=[50,100,200,0]) self.add_widget(but) def enton_enterer(self, args): print("iewv") # with self.canvas: # # # BoxShadow( # # pos=(1000,5), # pos=(100,100), # size=(250,50), # # inset=True, # blur_radius=25, # border_radius=[25,25,25,25], # # # # spread_radius=(100,10,20,30) # # border_radius=[50,100,125,25] # ) # offset: 0, -10 # blur_radius: 25 # spread_radius: -10, -10 # border_radius: 10, 10, 10, 10 # Rectangle(pos=(10, 10), size=(100, 100),border_radius=[0,25,50,100], blur_radius=25) # rc = RenderContext(use_parent_modelview=True) # Add a rectangle # Rectangle(pos=(10, 10), size=(500, 500), border_radius=(250,10,10,10),border=100) if name == 'main': A =App() A.build=MainScreen A.run() 我想要做到一个效果,就是 I'm trying to do one thing, which is 肖健 80331126 @.*
…
------------------ 原始邮件 ------------------ 发件人: "kivy/python-for-android" @.>; 发送时间: 2024年7月20日(星期六) 晚上10:38 @.>; 抄送: "肖健 @.@.>; 主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928) So, what is the error here? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
This is a Kivy support question and is not a issue with python-for-android.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Hi, I believe you should ask the guys over at discord.com for that kind of support. Sign up and then search for kivy! |
您好,我又麻烦您了。我写app 中有两种字体需要下面这种效果,但是官网上描述的我有点看不懂。(arial.ttf)(msyh.ttc)
A font context is a namespace where multiple fonts are loaded; if a font is missing a glyph needed to render text, it can fall back to a different font in the same context. The font context manager can be used to query and manipulate the state of font contexts when using the Pango text provider (no other provider currently implements it).
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月23日(星期二) 下午3:45
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
Hi, I believe you should ask the guys over at discord.com for that kind of support. Sign up and then search for kivy!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.boxlayout import BoxLayout
from kivy.core.text import LabelBase
LabelBase.register("Roboto","msyh.ttc")
class CustomFontLoader(App):
def build(self):
self.b = BoxLayout(orientation='vertical')
self.b.add_widget(Label(text='''英/saɪz/美/saɪz/'''))
return self.b
CustomFontLoader().run()
————————————————————————————————————————————————
结里是这样的:'英/sa囗z/美/sa囗z/'
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.boxlayout import BoxLayout
from kivy.core.text import LabelBase
LabelBase.register("Roboto","arial.ttf")
class CustomFontLoader(App):
def build(self):
self.b = BoxLayout(orientation='vertical')
self.b.add_widget(Label(text='''英/saɪz/美/saɪz/'''))
return self.b
CustomFontLoader().run()
结果是这样的:'囗/saɪz/囗/saɪz/'
肖健 80331126
***@***.***
…------------------ 原始邮件 ------------------
发件人: "kivy/python-for-android" ***@***.***>;
发送时间: 2024年7月23日(星期二) 下午3:45
***@***.***>;
抄送: "肖健 ***@***.******@***.***>;
主题: Re: [kivy/python-for-android] LXML v4.8.0 fails to build. (Issue #2928)
Hi, I believe you should ask the guys over at discord.com for that kind of support. Sign up and then search for kivy!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Checklist
p4a.branch = develop
)Versions
Description
When building lxml with buildozer I get the following error.
buildozer.spec
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: