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

Installation crash in android qpython #1

Open
bukzor opened this issue Jul 13, 2017 · 2 comments
Open

Installation crash in android qpython #1

bukzor opened this issue Jul 13, 2017 · 2 comments

Comments

@bukzor
Copy link
Owner

bukzor commented Jul 13, 2017

/data/user/0/org.qpython.qpy3/files/bin/qpython-android5.sh "/storage/emulated/0/qpython/scripts3/.last_tmp.py" && exit
/0/qpython/scripts3/.last_tmp.py" && exit <
Input pip commands, ie: pip install {module}
-->pip install ohai

Downloading/unpacking ohai
Real name of requirement ohai is ohai
Downloading ohai-1%210.tar.gz
Running setup.py egg_info for package ohai
Traceback (most recent call last):
File "", line 16, in
File "/storage/emulated/0/qpython/cache/pip-build/ohai/setup.py", line 84, in
exit(main())
File "/storage/emulated/0/qpython/cache/pip-build/ohai/setup.py", line 63, in main
long_description=dedent(Install.doc),
File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/python32.zip/textwrap.py", line 352, in dedent
TypeError: expected string or buffer
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 16, in

File "/storage/emulated/0/qpython/cache/pip-build/ohai/setup.py", line 84, in

exit(main())

File "/storage/emulated/0/qpython/cache/pip-build/ohai/setup.py", line 63, in main

long_description=dedent(Install.__doc__),

File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/python32.zip/textwrap.py", line 352, in dedent

TypeError: expected string or buffer


Command python setup.py egg_info failed with error code 1 in /storage/emulated/0/qpython/cache/pip-build/ohai
Storing complete log in /sdcard/qpython/.pip/pip.log
-->

#[QPython] Press enter to exit

@asottile
Copy link

asottile commented Jul 13, 2017

I bet the python is running with -OO (optimizations + strip docstrings)

class C(object):
    """hello"""

print(repr(C.__doc__))
$ python -OO test.py
None

@bukzor
Copy link
Owner Author

bukzor commented Jul 27, 2017

Oh... dummies.

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

2 participants