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

About ctypes #319

Closed
Hans2011 opened this issue Jan 25, 2015 · 3 comments
Closed

About ctypes #319

Hans2011 opened this issue Jan 25, 2015 · 3 comments

Comments

@Hans2011
Copy link

The _ctypes.so of python 2.6.2 works well on my app(android/arm), i want to use PIL so i decide
to upgrade to Python 2.7.x,

But _ctypes was disable on Python 2.7.2(Py4A)
As the guide on bitbucket, modify 3 files, distribute.sh disable-moduels.patch and recipe.sh. but I failed, the _ctypes.so not present after python compiled.

As an older issue on github i cp the lib.linux-i686-2.7/_ctypes.so to python-install/.../lib-dynload/,
and i got a error:
from _types import Union, Structure, Array
"could not load needed library 'libphread.so.0' for '_ctypes.so'

Anybody can help me or send me a complete python-install package( 2.7.2).
Thank you very much!

@tito tito changed the title About ctypes About ctypes Jan 25, 2015
@aoncorici
Copy link

Take a look at this: #301
I can help with python2.7.x package, what is exactly that you want from build or dist folder?

@olymk2
Copy link
Contributor

olymk2 commented Mar 3, 2015

any chance we will see this working, i have been trying myself to get it to work but i am kind of stabbing around in the dark.

seems this stops you using ctypes but also effects multiple python libraries that use it under the hood, in my case i can not import freetype because _ctypes.so is unavailable.

It seems there is a fix around so could that not be merged ?

olymk2 pushed a commit to olymk2/python-for-android that referenced this issue Mar 18, 2015
olymk2 pushed a commit to olymk2/python-for-android that referenced this issue Mar 18, 2015
olymk2 pushed a commit to olymk2/python-for-android that referenced this issue Mar 18, 2015
olymk2 pushed a commit to olymk2/python-for-android that referenced this issue Mar 18, 2015
olymk2 pushed a commit to olymk2/python-for-android that referenced this issue Mar 18, 2015
@tito
Copy link
Member

tito commented May 16, 2015

Ctypes is now part of Python for android!

@tito tito closed this as completed May 16, 2015
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

4 participants