Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError for sqlite3 #910

Closed
goffi-contrib opened this issue Oct 16, 2016 · 1 comment
Closed

ImportError for sqlite3 #910

goffi-contrib opened this issue Oct 16, 2016 · 1 comment

Comments

@goffi-contrib
Copy link
Contributor

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

@inclement
Copy link
Member

Closing as stale, probably fixed in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants