Skip to content

Add a storm/psycopg2 recipe #292

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

Merged
merged 1 commit into from
Nov 15, 2014
Merged

Add a storm/psycopg2 recipe #292

merged 1 commit into from
Nov 15, 2014

Conversation

romaia
Copy link
Contributor

@romaia romaia commented Nov 1, 2014

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

@romaia
Copy link
Contributor Author

romaia commented Nov 1, 2014

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
Copy link
Contributor Author

romaia commented Nov 2, 2014

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
Copy link
Member

tito commented Nov 15, 2014

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
Copy link
Contributor Author

romaia commented Nov 17, 2014

\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