You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using latest python-for-android, downloaded from github on Ubuntu 15.04
I had problems creating a distribution including Beautiful Soup 4: when the modules were compiled at the run_distribute() function some of the files (in particular bs4/builder/_htmlparser.py) failed to compile with
My guess is that python.host being placed in directories of the ARM python is failing to locate platform-dependent modules (I guess unicode support is one?), causing compiling the modules to fail.
Not 100% sure how to solve this. So far I could work-around it by:
Doing the compilation manually again using hostpython instead.
Copying manually the resulting files to private directory.
I added an option to the SDL2 bootstrap a while ago, --try-system-python-compile, as a workaround for this. I didn't see this issue at the time, but it should be an okay workaround. You need python2.7 installed and in your PATH for it to work.
Using latest python-for-android, downloaded from github on Ubuntu 15.04
I had problems creating a distribution including Beautiful Soup 4: when the modules were compiled at the
run_distribute() function
some of the files (in particular bs4/builder/_htmlparser.py) failed to compile withI tracked this down to the line of
run_distribute()
Where
$HOSTPYTHON
is definedHOSTPYTHON="$BUILD_PATH/python-install/bin/python.host"
Now, this was very surprising as
build/hostpython/Python-2.7.2/hostpython
and$BUILD_PATH/python-install/bin/python.host
were the same:but calling
build/hostpython/Python-2.7.2/hostpython -OO -m compileall $BUILD_PATH/python-install
worked without failure.In fact, printing the sys.path for both of them: (doing some text replacements as env variables)
and
My guess is that python.host being placed in directories of the ARM python is failing to locate platform-dependent modules (I guess unicode support is one?), causing compiling the modules to fail.
Not 100% sure how to solve this. So far I could work-around it by:
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: