chaquo / chaquopy

Chaquopy: the Python SDK for Android
https://chaquo.com/chaquopy/
MIT License
813 stars 131 forks source link

Error during build-wheel processing #1246

Closed ytremare closed 1 week ago

ytremare commented 2 weeks ago

Error : build-wheel.py: Error: /home/ytrem/miniconda3/chaquopy-eccodes/server/pypi/packages/libaec/build/1.1.2/py3-none-android_21_x86_64/fix_wheel/chaquopy/lib/libaec.so has no .dynamic section

link to Fork https://github.com/ytremare/chaquopy

resu_libaec.txt

Environment: miniconda3 with python 3.11.9 resu_libaec.txt .

ytremare commented 2 weeks ago

Please find attach full build log. resu_libaec.txt Please find attach result_readelf.txt dump for the current build and in resu_libaec_old_laptop.txt dump from my oldlaptop which was working. resu-readelf_old_laptop.txt resu-readelf_libaecf.txt

mhsmith commented 2 weeks ago

Strange, it looks like libaec.so is being built correctly with -shared, and readelf shows that it does have a dynamic section. Can you attach libaec.so to this issue, or upload it somewhere else and post a link?

ytremare commented 2 weeks ago

You're rihght. whl file is generated in /home/ytrem/miniconda3/chaquopy-eccodes/server/pypi/packages/libaec/build/1.1.2/py3-none-android_21_x86_64/src . It seems the tool fails in some checks.

File is available at (you eM is allowed for downloading. https://drive.google.com/file/d/1MuBwC4nqHLrPMVS9ic400EHKbXIxoBWj/view?usp=drive_link

mhsmith commented 1 week ago

Sorry, I don't have access to that link.

ytremare commented 1 week ago

I've updated google drive allowing acces to notifications@github.com email. https://drive.google.com/drive/folders/1T1kAl9z0etMSLa5yJOpNaxMcXIrFAj76 In case access is not working as the tool dosn't allow .so file I've rename it .so.txt, hope it won't be altered. libaec.so.txt

ytremare commented 1 week ago

I run some tests to check generated whl files. I move the whl file from build folder to my local Dist folder, unfortunately it doesn't work. Even the app build is done without failure, while app invokes the eccodes lib I get the following error: RuntimeError: Could not load the ecCodes library!

ytremare commented 1 week ago

I re-install all the environment et take particularly care of python requirements, Build processing is now running successfully. I guess i can close the issue.