Skip to content

Instantly share code, notes, and snippets.

@alanjds
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanjds/119f83a942b58629edc9 to your computer and use it in GitHub Desktop.
Save alanjds/119f83a942b58629edc9 to your computer and use it in GitHub Desktop.
09-26 00:18:56.167: I/python(10572): PATH: ['/data/app/org.test.minimalcalc-1.apk/assets', '/data/app/org.test.minimalcalc-1.apk/assets/lib/python2.7/', '/data/app/org.test.minimalcalc-1.apk/assets/lib/python2.7/site-packages/']
09-26 00:18:56.168: I/python(10572): PWD: /
09-26 00:18:56.168: I/python(10572): PWD: /
09-26 00:18:56.170: I/python(10572): Traceback (most recent call last):
09-26 00:18:56.170: I/python(10572): File "/data/data/org.test.minimalcalc/files/_bootstrap.py", line 127, in <module>
09-26 00:18:56.170: I/python(10572): runpy._run_module_as_main(main_module, False)
09-26 00:18:56.170: I/python(10572): File "/Users/alanjds/src/git/python-for-android/dist/default/private/lib/python2.7/runpy.py", line 162, in _run_module_as_main
09-26 00:18:56.171: I/python(10572): File "/Users/alanjds/src/git/python-for-android/dist/default/private/lib/python2.7/runpy.py", line 72, in _run_code
09-26 00:18:56.171: I/python(10572): File "/Users/alanjds/src/git/p4a-minimal-shell/main.py", line 44, in <module>
09-26 00:18:56.171: I/python(10572): File "/Users/alanjds/src/git/python-for-android/dist/default/private/lib/python2.7/site-packages/gevent/__init__.py", line 40, in <module>
09-26 00:18:56.171: I/python(10572): ImportError: cannot import name core
09-26 00:18:56.171: I/python(10572): Run _bootstrap.py (ret=-1) <<<
09-26 00:18:56.190: I/python(10572): Python for android ended.
try:
from gevent.backdoor import BackdoorServer
except ImportError:
import os
print 'PATH:', os.sys.path
print 'PWD:', os.getcwd()
os.chdir("..")
print 'PWD:', os.getcwd()
from gevent.backdoor import BackdoorServer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment