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

Python for Android not compiling sqlite3 module #91

Closed
MightyThor opened this issue Jan 28, 2013 · 3 comments
Closed

Python for Android not compiling sqlite3 module #91

MightyThor opened this issue Jan 28, 2013 · 3 comments

Comments

@MightyThor
Copy link

Compiled python for android by doing

/python-for-android$ git clean -dxf
/python-for-android$ ./distribute.sh -m "sqlite3 kivy"

Then installed the app using

/python-for-android/dist/default$ ./build.py --dir ~/Desktop/demo/Nutrition --package org.demo.Nutrition --name "Nutrition" --version 1.1.0 debug installd

When running the app, I watched logcat using

adb logcat python:I *:S

And keep seeing the message

I/python ( 5662): ImportError: No module named sqlite3
I/python ( 5662): Python for android ended

Which I believe indicates the sqlite3 package is not getting compiled?

@tito
Copy link
Member

tito commented Jan 28, 2013

Did you followed the doc completly? https://python-for-android.readthedocs.org/en/latest/faq/index.html#sqlite3-so-not-found

(i know that can be improved...)

@MightyThor
Copy link
Author

Well... no I hadn't found that. Thanks for pointing it out.

Redid the steps following the documentation. It now seems to find sqlite3!

But I now get the error

I/python ( 7874): unable to open database file
I/python ( 7874): Python for android ended

On 1/28/13, Mathieu Virbel [email protected] wrote:

Did you followed the doc completly?
https://python-for-android.readthedocs.org/en/latest/faq/index.html#sqlite3-so-not-found

(i know that can be improved...)


Reply to this email directly or view it on GitHub:
#91 (comment)

Regards,

  • Jon

@MightyThor
Copy link
Author

You can close this issue. Thanks for the response.

The problem is no longer with the sqlite3 module. Wrote a seperate app that
appears able to use sqlite3 and a database.

Thank you!

Regards,

Did you followed the doc completly?
https://python-for-android.readthedocs.org/en/latest/faq/index.html#sqlite3-so-not-found

(i know that can be improved...)


Reply to this email directly or view it on GitHubhttps://github.com//issues/91#issuecomment-12811484.

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

3 participants