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

not be able to set PYTHONHOME in python3 binary. #88

Open
kuri65536 opened this issue Mar 31, 2015 · 2 comments
Open

not be able to set PYTHONHOME in python3 binary. #88

kuri65536 opened this issue Mar 31, 2015 · 2 comments

Comments

@kuri65536
Copy link
Owner

PYTHONHOME environment cause segfault in python3 binary.

item description
python python3.4.3
binary r18
android 2.3.6 (API10)
/data/data/com.googlecode.python3forandroid # export PYTHONHOME=`pwd`/files/python3
/data/data/com.googlecode.python3forandroid # sh /sdcard/download/standalone_python.sh 
Fatal Python error: Py_Initialize: can't initialize sys
sys.excepthook is missing
object  : ValueError('character U+7461642f is not in range [U+0000; U+10ffff]',)
type    : ValueError
refcount: 1
address : 0x4003c630
lost sys.stderr
@kuri65536
Copy link
Owner Author

This error still remains in Python 3.6.2.
Root cause is same as rave-engine/python3-android#7

@kuri65536 kuri65536 mentioned this issue Sep 30, 2017
@kuri65536
Copy link
Owner Author

Current status,

Version API issue Python
Android 4.4 API 19 x 3.6.2
Android 6.0 API 24 o 3.6.2

It seems that some API of bionic did not work with PySys_Init.
Python3 need a patch to use with PYTHONHOME.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant