Skip to content

Python for Android not compiling sqlite3 module #91

Closed

Description

@MightyThor

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?

Activity

  1. tito commented on Jan 28, 2013

    @tito
    Member

    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...)

  2. MightyThor commented on Jan 28, 2013

    @MightyThor
    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 notifications@github.com 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
  3. MightyThor commented on Jan 30, 2013

    @MightyThor
    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

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