Code Monkey home page Code Monkey logo

Comments (3)

tshirtman avatar tshirtman commented on May 28, 2024

It's part of the modules that are blacklisted by default to make the shipping packages lighter, you can safely reactivate it by editing the blacklist.txt file of your python-for-android distribution.

from python-for-android.

dcorio avatar dcorio commented on May 28, 2024

thanks!

from python-for-android.

MichaelCurrie avatar MichaelCurrie commented on May 28, 2024

Keep in mind from https://groups.google.com/forum/#!msg/kivy-users/mgisdssF39M/28vgOWfM0y0J that:

There are 2 locations for blacklist.txt, one is inside .buildozer/android/platform/python-for-android/src/ and the other is in python-for-android/dist/distname, the first changes the blacklist for every compilation the other for a specific compilation.

So don't forget to remove it from BOTH. I accomplished that with the following lines in my makefile bash script (my app is called lanki):

# Create the .buildozer folder and download its subcomponents, including the blacklist.txt file we are about to modify
buildozer android update

# Remove the line containing csv so the csv module is installed, as per the warning on
# http://python-for-android.readthedocs.org/en/latest/usage/#step-2-package-your-application
# grep -v reverses the search, showing all lines except the one matching the pattern

cwd=$(pwd)

# INSTALL CSV module
# This requires removing _csv from the two blacklist files
# According to
# https://groups.google.com/forum/#!msg/kivy-users/mgisdssF39M/28vgOWfM0y0J
# There are 2 locations for blacklist.txt:
# - one is inside .buildozer/android/platform/python-for-android/src/ and 
# - the other is in python-for-android/dist/distname
# the first changes the blacklist for every compilation;
# the second for a specific compilation.
cd .buildozer/android/platform/python-for-android/src/
cat blacklist.txt | grep -v "_csv" > blacklist.txt2
rm blacklist.txt
mv blacklist.txt2 blacklist.txt

cd $cwd

cd .buildozer/android/platform/python-for-android/dist/lanki/
cat blacklist.txt | grep -v "_csv" > blacklist.txt2
rm blacklist.txt
mv blacklist.txt2 blacklist.txt

cd $cwd

from python-for-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.