-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Hello. I have a problem after compile it.
I need to add sqlite3 to this.
How can i do it?
I tried to add this in docker-build.sh, but i get a problem.
My docker file :
`#!/bin/bash
set -e
set -x
apt-get update -y
apt-get install -y autoconf-archive autoconf automake cmake gawk gettext git gcc make patch pkg-config libsqlite3-dev
pip install pysqlite3
export ANDROID_NDK=/android-ndk
if [ ! -d "$ANDROID_NDK" ] ; then
# In general we don't want download NDK for every build, but it is simpler to do it here
# for CI builds
NDK_VER=r25b
apt-get install -y wget zip
wget --no-verbose https://dl.google.com/android/repository/android-ndk-$NDK_VER-linux.zip
unzip android-ndk-${NDK_VER}-linux.zip
ANDROID_NDK=/android-ndk-$NDK_VER
fi
cd /python3-android
./build.sh "$@"`
I have this error on my phone
`SyntaxError: invalid syntax
import sqlite3
Traceback (most recent call last):
File "", line 1, in
File "/data/local/tmp/build/usr/lib/python3.11/sqlite3/init.py", line 57, in
from sqlite3.dbapi2 import *
File "/data/local/tmp/build/usr/lib/python3.11/sqlite3/dbapi2.py", line 27, in
from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'
`
Where can i add sqlite3 module?