Skip to content

ImportError for sqlite3 #910

@goffi-contrib

Description

@goffi-contrib

Hello,

After compilling a project on Arch Linux with latest buildozer and android_new target, the execution on Android fail because sqlite3 module can't be found, while it is in buildozer.spec requirements.

The module doesn't seem to be removed from blacklist.txt, if I do it manually, sqlite3 can be imported by my software.

In android logs we can also see the following line which may be related:

Android lib is missing, cannot install android hooks

buildozer.spec use a custom python-for-android, the only differences with upstream are:

diff --git a/pythonforandroid/bootstraps/pygame/build/blacklist.txt b/pythonforandroid/bootstraps/pygame/build/blacklist.txt
index 8b736c8..34d22d6 100644
--- a/pythonforandroid/bootstraps/pygame/build/blacklist.txt
+++ b/pythonforandroid/bootstraps/pygame/build/blacklist.txt
@@ -80,7 +80,6 @@ lib-dynload/_lsprof.so
 lib-dynload/*audioop.so
 lib-dynload/mmap.so
 lib-dynload/_hotshot.so
-lib-dynload/_csv.so
 lib-dynload/future_builtins.so
 lib-dynload/_heapq.so
 lib-dynload/_json.so
diff --git a/pythonforandroid/recipes/zope_interface/__init__.py b/pythonforandroid/recipes/zope_interface/__init__.py
index 3a54b9c..3c8afc2 100644
--- a/pythonforandroid/recipes/zope_interface/__init__.py
+++ b/pythonforandroid/recipes/zope_interface/__init__.py
@@ -1,9 +1,9 @@
-from pythonforandroid.toolchain import PythonRecipe, shprint, current_directory
-from os.path import join
+from pythonforandroid.toolchain import PythonRecipe, current_directory
 import sh


 class ZopeInterfaceRecipe(PythonRecipe):
+    call_hostpython_via_targetpython = False
     name = 'zope_interface'
     version = '4.1.3'
     url = 'https://pypi.python.org/packages/source/z/zope.interface/zope.interface-{version}.tar.gz'

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions