Skip to content

Add a storm/psycopg2 recipe#292

Merged
tito merged 1 commit into
kivy:masterfrom
romaia:storm
Nov 15, 2014
Merged

Add a storm/psycopg2 recipe#292
tito merged 1 commit into
kivy:masterfrom
romaia:storm

Conversation

@romaia

@romaia romaia commented Nov 1, 2014

Copy link
Copy Markdown
Contributor

This should allow using python-storm (https://storm.canonical.com/) and
psycopg2 for connecting to a postgresql database.

@romaia

romaia commented Nov 1, 2014

Copy link
Copy Markdown
Contributor Author

This is currently building but not working.

Storm depends on psycopg2, and psycopg2 depends on libpq. I have managed to build all of them and install on android, but when I try to use psycopg2 I get the following error:

I/python (28229): Traceback (most recent call last):
I/python (28229): File "/home/romaia/devel/kivy/.buildozer/android/app/main.py", line 176, in
I/python (28229): File "/home/romaia/devel/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/app.py", line 766, in run
I/python (28229): File "/home/romaia/devel/kivy/.buildozer/android/app/main.py", line 152, in build
I/python (28229): File "/lib/python2.7/site-packages/psycopg2/init.py", line 50, in
I/python (28229): ImportError: dlopen failed: could not load library "libpq.so.5" needed by "_psycopg.so"; caused by library "libpq.so.5" not found

Obviously, libpq.so is missing in the generated apk, but I don't know how I can tell py4a to include it.

@romaia

romaia commented Nov 2, 2014

Copy link
Copy Markdown
Contributor Author

Update: I did manage to build by statically compiling the libraries. An update to the patch will follow. If some could also review them I would appreciate

This should allow using python-storm (https://storm.canonical.com/) and
psycopg2 for connecting to a postgresql database.
@tito

tito commented Nov 15, 2014

Copy link
Copy Markdown
Member

Looking good, thanks!

tito added a commit that referenced this pull request Nov 15, 2014
Add a storm/psycopg2 recipe
@tito tito merged commit e308111 into kivy:master Nov 15, 2014
@romaia romaia deleted the storm branch November 17, 2014 12:39
@romaia

romaia commented Nov 17, 2014

Copy link
Copy Markdown
Contributor Author

\o/

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

Successfully merging this pull request may close these issues.

2 participants