Skip to content Skip to sidebar Skip to footer

Buildozer Numpy Runtimeerror: Broken Toolchain: Cannot Link A Simple C Program

Writing my first Android app in Python and using Buildozer to package it. Because I will need to use numpy later on in the project, I tried packaging the following test code: impor

Solution 1:

This issue is reported in Python for Android (p4a) project here, didn't knew it's actual for stable p4a. Nevertheless, by link you can find PR that fixes issue. I didn't test it, but different people say it works.

You can try to build numpy with this fix, here's what you'll need:

  1. Make sure you clean all left from current building process with command:

    buildozer distclean

  2. Clone p4a branch with fix using command:

    git clone -b p4a_numpy_fix https://github.com/mahomahomaho/python-for-android fix-numpy

  3. Change your buildozer.spec to use this cloned version of p4a (use your actual path):

    p4a.source_dir = /home/ubuntu/p4a_numpy_fix

And run building apk again. If everything will work fine, you'll be able to build apk. If not you'll face another errors, no guarantees here :(

Post a Comment for "Buildozer Numpy Runtimeerror: Broken Toolchain: Cannot Link A Simple C Program"