Giter Site home page Giter Site logo

qpython-android / qpython3 Goto Github PK

View Code? Open in Web Editor NEW
682.0 62.0 103.0 11 KB

QPython is the Python engine for android. QPython 3x is mainly for experienced Python users, and it provides some in-depth technical features.

Home Page: https://www.qpython.org

License: MIT License

qpython3's Introduction

About

QPython has QPython OS, QPython OL, QPython 3S, QPython 3L.

QPython 3x aims to to provide limited features Python3 scripting engine for the most Android systems which from 4.3+ to 9.0

The source code is being sorted out.

More information

Please visit QPython Project Readme

qpython3's People

Contributors

riverfor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qpython3's Issues

pip install docutils fails

While trying to install boto3 with pip I came across an error during the installation of its dependency docutils.
The attached log is from a fresh install of qpython3 beta on my stock nexus6 (n8i11b firmware).
The end result of this is that I am stuck without docutils and anything that depends on it.

pip.log

Pip not working

When trying to install a package with pip via pip_console.py, it hangs.
Pip log:

------------------------------------------------------------
/data/data/org.qpython.qpy3/files/bin/pip run on Tue Aug  9 11:23:21 2016
Downloading/unpacking requests

  Getting page http://pypi.python.org/simple/requests
  Could not fetch URL http://pypi.python.org/simple/requests: HTTP Error 301: Moved Permanently - Redirection to url '/simple/requests/' is not allowed
  Will skip URL http://pypi.python.org/simple/requests when looking for download links for requests
  Getting page http://pypi.python.org/simple/
Operation cancelled by user

Exception information:
Traceback (most recent call last):
  File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/pip-1.2.1-py3.2.egg/pip/basecommand.py", line 107, in main
    status = self.run(options, args)
  File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/pip-1.2.1-py3.2.egg/pip/commands/install.py", line 256, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/pip-1.2.1-py3.2.egg/pip/req.py", line 1011, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/pip-1.2.1-py3.2.egg/pip/index.py", line 104, in find_requirement
    url_name = self._find_url_name(Link(self.index_urls[0]), url_name, req) or req.url_name
  File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/pip-1.2.1-py3.2.egg/pip/index.py", line 209, in _find_url_name
    for link in page.links:
  File "/data/data/org.qpython.qpy3/files/lib/python3.2/site-packages/pip-1.2.1-py3.2.egg/pip/index.py", line 530, in links
    url = self.clean_link(urlparse.urljoin(self.base_url, url))
  File "/data/data/org.qpython.qpy3/files/lib/python3.2/python32.zip/urllib/parse.py", line 427, in urljoin
    segments = bpath.split('/')[:-1] + path.split('/')
KeyboardInterrupt

If i am guessing correctly, this might be due to pypi.python.org redirecting all traffic to https

I can't open the software

When I open the app in my android, it stops and give me the following error:

Throw an exception. It will restart

How can I solve this?

Can't install some libraries.

There is some problem with python3.6/site-packages/lib2to3/refacor.py
the error message:

while node.type != syms.file_input:

AttributeError: 'NoneType' object has no attribute 'type'

No AssertionError

(Same issue as @ThePuff #18)

Version 1.1.0

Android O

Test Code:

assert 2 == 3
print(4)

Expected result:

AssertionError

Actual result:

4

No module named 'readlines'

When I update to Python 3.6, I get the following error when opening the built in pip console:

Traceback (most recent call last):
File "/data/user/0/org.qpython.qpy3/files/bin/pip4console.py", line 1, in
import os,os.path,sys,readline
ModuleNotFoundError: No module named 'readline'

switch to python3.6

When i switch to python 3.6 from 3.2, it will case 'could not extract private31,32,33,34 data', Then i click terminal could not open python , 'qpython3-android5.sh: not found' . How can i solve this? my andriod visions is 7.1.1 , and i have installed QPython3 and QPy3.6

Assertion

Code:

assert 1 + 1 == 3
print (3)

Result:
3

Segmentation fault

I have this error in both qpython 2.7 and 3 when switching to qpython 3.6 from setting
img_20180131_175654_690

security hole in the error handling mechanism

The error handling mechanism you have implemented allows an attacker to easily run command line shell to a system which if rooted might result to some very high escalated priviledges

pip install requests fails

`/data/user/0/org.qpython.qpy3/files/bin/qpython-android5.sh "/storage/emulated/0/qpython/scripts3/pip_console.py" && exit
d/0/qpython/scripts3/pip_console.py" && exit <
Input pip commands, ie: pip install {module}
-->pip install requests
Downloading/unpacking requests
Running setup.py egg_info for package requests
Traceback (most recent call last):
File "", line 16, in
File "/storage/emulated/0/qpython/cache/pip-build/requests/setup.py", line 55, in
exec(f.read(), about)
File "", line 14
cake = u'\u2728 \U0001f370 \u2728'
^
SyntaxError: invalid syntax
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/requests/setup.py", line 55, in

exec(f.read(), about)

File "", line 14

__cake__ = u'\u2728 \U0001f370 \u2728'

                                     ^

SyntaxError: invalid syntax


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

installing manually libs

i can't find this folder to install libs w.o. pip

/sdcard/qpython/lib/python3.x/site-packages/

Crash in libraries manage

If you touch top-right three-dot menu in libraires manage, the app will crash and restart.

The apk version is 1.0.0.

File-writing

Dear devs! Do you plan to add file-writing (file.write(), pickle etc.)? Because right now, I just can't figure out how to use QPython for any kind of serious programming. I really hope you do, because QPython is great in many respects. But now I just can't use it.

QPy3.6 Terminal: Permission denied

Hi,
I installed QPython and QPy3.6 but when I open the terminal with the Python 3.6 switch checkbox activated, the terminal says:

/data/user/0/org.qpython.qpy/files/bin/qpython3-android5.sh && exit
y/files/bin/qpython3-android5.sh && exit <
/system/bin/sh: /data/user/0/org.qpython.qpy/files/bin/qpython3-android5.sh: can't execute: Permission denied
126|ASUS_Z017D_1:/ $

Could you help me?
Thanks

Can not import etree from lxml.

I downloaded this lxml version. Does that should work on qpython3?
When I run my code I get this:

from lxml import etree
ImportError: dlopen failed: library "libpython2.7.0.so" not found.

Did I download a wrong lib version? If so, how can I find the right version?

Python 3 version

Hi,

Is there a plan for using Python 3.5 or newer in the next releases? Why is Python 3.2 used? Is there any caveat of upgrading to Python 3.5+?

Thanks,

[]s,

Renato.

Change sys.platform

Please set sys.platform to "linux-android".

It maintains compatibility with existing scripts since they check if the word start with linux but it also allow a proper Android detection.

Payton_sprout invalid syntax

I'm fairly new to python/qpython3 and I'm trying to run code from the editor to the console. Anytime i do so, I encounter a:

Syntax error: invalid syntax
1| payton_sprout:/ $

I typed in Payton_sprout on here on GitHub and I'm starting to think it has something to do with the hardware of me using a Motorola x4

64-bit Python

Please add 64-bit Python binary for phones with 64-bit CPU.

Missing direct downloads for APKs

Not everyone is happy with Google collecting & selling more & more info about our daily lives.

Please, provide good old-fashioned links for those of us who sabotage their attempts on principle.

Execute error

Error when I run any script on last 3.6.1 release. Previously I install requests with it submodules
/data/user/0/org.qpython.qpy3/files/bin/qpython-android5.sh"/storage/emulated/0/qpython/scripts3/.last_tmp.py" && exit
ed/0/qpython/scripts3/.last_tmp.py" && exit <
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
File "/data/user/0/org.qpython.qpy3/files/lib/python36.zip/_bootlocale.py", line 20, in getpreferredencoding
File "", line 961, in _find_and_load
File "", line 950, in _find_and_load_unlocked
File "", line 646, in _load_unlocked
File "", line 616, in _load_backward_compatible
File "/data/user/0/org.qpython.qpy3/files/lib/python36.zip/locale.py", line 16, in
File "", line 961, in _find_and_load
File "", line 950, in _find_and_load_unlocked
File "", line 646, in _load_unlocked
File "", line 616, in _load_backward_compatible
File "/data/user/0/org.qpython.qpy3/files/lib/python36.zip/re.py", line 142, in
AttributeError: module 'enum' has no attribute 'IntFlag'
Aborted

error: invalid Python installation: unable to open /sdcard/qpython/lib/python3.2/config-3.2m/Makefile (No such file or directory)

with python3.6 installed :

/data/data/org.qpython.qpy3/files/bin/qpython.sh "/data/data/org.qpython.qpy3/files/bin/pip4console.py" && exit
py3/files/bin/pip4console.py" && exit    <
Input pip commands, ie: pip install {module}
-->pip install paho-mqtt

Downloading/unpacking paho-mqtt
  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB)  Downloading paho-mqtt-1.3.1.tar.gz (80kB): 80kB downloaded
  Running setup.py egg_info for package paho-mqtt

Installing collected packages: paho-mqtt
  Running setup.py install for paho-mqtt
    error: invalid Python installation: unable to open /sdcard/qpython/lib/python3.2/config-3.2m/Makefile (No such file or directory)
    Complete output from command /data/data/org.qpython.qpy3/files/bin/python -c "import setuptools;__file__='/storage/emulated/0/qpython/cache/pip-build/paho-mqtt/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /storage/emulated/0/qpython/cache/pip-fr6vj9-record/install-record.txt --single-version-externally-managed:
    running install

error: invalid Python installation: unable to open /sdcard/qpython/lib/python3.2/config-3.2m/Makefile (No such file or directory)

----------------------------------------
Command /data/data/org.qpython.qpy3/files/bin/python -c "import setuptools;__file__='/storage/emulated/0/qpython/cache/pip-build/paho-mqtt/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /storage/emulated/0/qpython/cache/pip-fr6vj9-record/install-record.txt --single-version-externally-managed failed with error code 1 in /storage/emulated/0/qpython/cache/pip-build/paho-mqtt
Storing complete log in /sdcard/qpython/.pip/pip.log
-->

#[QPython] Press enter to exit

with python 3.2 (default) :

/data/data/org.qpython.qpy3/files/bin/qpython3.sh "/storage/emulated/0/qpython/scripts3/pip_console.py" && exit
thon/scripts3/pip_console.py" && exit    <
/system/bin/sh: /data/data/org.qpython.qpy3/files/bin/qpython3.sh: not found
ll paho-mqtt                             <
/data/data/org.qpython.qpy3/files/bin/pip[4]: __requires__: not found
/data/data/org.qpython.qpy3/files/bin/pip[5]: import: not found
/data/data/org.qpython.qpy3/files/bin/pip[6]: from: not found
/data/data/org.qpython.qpy3/files/bin/pip[9]: syntax error: 'newline' unexpected
1|u0_a173@geefhd:/ $

Can't import ctypes

Running the beta via the play store on a stock nexus 6, build n8i11b.
some googling suggest a signature mismatch
kivy/python-for-android#301

/data/user/0/org.qpython.qpy3/files/bin/qpython-android5.sh && exit
/bin/qpython-android5.sh && exit               <
Python 3.6.1 (default, Jul 28 2017, 04:42:49)
[GCC 4.9.x 20150123 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
WARNING: linker: /data/data/org.qpython.qpy3/files/lib/libreadline.so.7: unused DT entry: type 0xf arg 0x3ab4
>>> import ctypes
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/user/0/org.qpython.qpy3/files/lib/python36.zip/ctypes/__init__.py", line 7, in <module>
ModuleNotFoundError: No module named '_ctypes'
>>>

edit: derp. didn't give minimum steps to reproduce.

Triggering script from Tasker while screen is off

Hey,

Using version 1.0.3 from the Play Store I've setup a script to run via Tasker which will almost always run while the screen is off. The task runs and launches the console, but the script doesn't run until I open the console. The script runs and exits successfully, but it would be great to have the script run when the screen is off.

Any thoughts or limitations imposed by Android on this?

Thanks!

Python version

Is three any plan to upgrade python version from 3.2 to higher version? Python 3.2 doesn't support u"" syntax, which is required in some third-party modules.

Thanks.

Can't install BeautifulSoup4


/data/user/0/org.qpython.qpy3/files/bin/pip3 run on Sun Jul 22 10:56:09 2018
Downloading/unpacking bs4

Running setup.py egg_info for package bs4

running egg_info
writing requirements to pip-egg-info/bs4.egg-info/requires.txt
writing pip-egg-info/bs4.egg-info/PKG-INFO
writing top-level names to pip-egg-info/bs4.egg-info/top_level.txt
writing dependency_links to pip-egg-info/bs4.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found


reading manifest file 'pip-egg-info/bs4.egg-info/SOURCES.txt'
writing manifest file 'pip-egg-info/bs4.egg-info/SOURCES.txt'

Source in /storage/emulated/0/qpython/cache/pip-build/bs4 has version 0.0.1, which satisfies requirement bs4
Downloading/unpacking beautifulsoup4 (from bs4)

Running setup.py egg_info for package beautifulsoup4

running egg_info
writing requirements to pip-egg-info/beautifulsoup4.egg-info/requires.txt
writing pip-egg-info/beautifulsoup4.egg-info/PKG-INFO
writing top-level names to pip-egg-info/beautifulsoup4.egg-info/top_level.txt
writing dependency_links to pip-egg-info/beautifulsoup4.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found


reading manifest file 'pip-egg-info/beautifulsoup4.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pip-egg-info/beautifulsoup4.egg-info/SOURCES.txt'

Source in /storage/emulated/0/qpython/cache/pip-build/beautifulsoup4 has version 4.6.0, which satisfies requirement beautifulsoup4 (from bs4)
skipping extra lxml
skipping extra html5lib
Installing collected packages: bs4, beautifulsoup4

Running setup.py install for bs4

Running command /data/user/0/org.qpython.qpy3/files/bin/python-android5 -c "import setuptools;__file__='/storage/emulated/0/qpython/cache/pip-build/bs4/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /storage/emulated/0/qpython/cache/pip-983hm1-record/install-record.txt --single-version-externally-managed
running install
running build
running install_egg_info
running egg_info
writing requirements to bs4.egg-info/requires.txt
writing bs4.egg-info/PKG-INFO
writing top-level names to bs4.egg-info/top_level.txt
writing dependency_links to bs4.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found


reading manifest file 'bs4.egg-info/SOURCES.txt'
writing manifest file 'bs4.egg-info/SOURCES.txt'
Copying bs4.egg-info to /data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/bs4-0.0.1-py3.2.egg-info
running install_scripts
writing list of installed files to '/storage/emulated/0/qpython/cache/pip-983hm1-record/install-record.txt'

Running setup.py install for beautifulsoup4

Running command /data/user/0/org.qpython.qpy3/files/bin/python-android5 -c "import setuptools;__file__='/storage/emulated/0/qpython/cache/pip-build/beautifulsoup4/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /storage/emulated/0/qpython/cache/pip-s2mej9-record/install-record.txt --single-version-externally-managed
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/bs4
copying bs4/__init__.py -> build/lib/bs4
copying bs4/diagnose.py -> build/lib/bs4
copying bs4/element.py -> build/lib/bs4
copying bs4/testing.py -> build/lib/bs4
copying bs4/dammit.py -> build/lib/bs4
creating build/lib/bs4/builder
copying bs4/builder/__init__.py -> build/lib/bs4/builder
copying bs4/builder/_lxml.py -> build/lib/bs4/builder
copying bs4/builder/_html5lib.py -> build/lib/bs4/builder
copying bs4/builder/_htmlparser.py -> build/lib/bs4/builder
creating build/lib/bs4/tests
copying bs4/tests/__init__.py -> build/lib/bs4/tests
copying bs4/tests/test_soup.py -> build/lib/bs4/tests
copying bs4/tests/test_htmlparser.py -> build/lib/bs4/tests
copying bs4/tests/test_docs.py -> build/lib/bs4/tests
copying bs4/tests/test_lxml.py -> build/lib/bs4/tests
copying bs4/tests/test_html5lib.py -> build/lib/bs4/tests
copying bs4/tests/test_builder_registry.py -> build/lib/bs4/tests
copying bs4/tests/test_tree.py -> build/lib/bs4/tests
Fixing build/lib/bs4/__init__.py build/lib/bs4/diagnose.py build/lib/bs4/element.py build/lib/bs4/testing.py build/lib/bs4/dammit.py build/lib/bs4/builder/__init__.py build/lib/bs4/builder/_lxml.py build/lib/bs4/builder/_html5lib.py build/lib/bs4/builder/_htmlparser.py build/lib/bs4/tests/__init__.py build/lib/bs4/tests/test_soup.py build/lib/bs4/tests/test_htmlparser.py build/lib/bs4/tests/test_docs.py build/lib/bs4/tests/test_lxml.py build/lib/bs4/tests/test_html5lib.py build/lib/bs4/tests/test_builder_registry.py build/lib/bs4/tests/test_tree.py

Skipping implicit fixer: buffer

Skipping implicit fixer: idioms

Skipping implicit fixer: set_literal

Skipping implicit fixer: ws_comma

Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "/storage/emulated/0/qpython/cache/pip-build/beautifulsoup4/setup.py", line 31, in <module>

    "Topic :: Software Development :: Libraries :: Python Modules",

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/core.py", line 148, in setup

    dist.run_commands()

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/dist.py", line 917, in run_commands

    self.run_command(cmd)

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/dist.py", line 936, in run_command

    cmd_obj.run()

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/setuptools-1.1-py3.2.egg/setuptools/command/install.py", line 53, in run

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/command/install.py", line 569, in run

    self.run_command('build')

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/cmd.py", line 313, in run_command

    self.distribution.run_command(command)

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/dist.py", line 936, in run_command

    cmd_obj.run()

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/command/build.py", line 126, in run

    self.run_command(cmd_name)

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/cmd.py", line 313, in run_command

    self.distribution.run_command(command)

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/dist.py", line 936, in run_command

    cmd_obj.run()

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/setuptools-1.1-py3.2.egg/setuptools/command/build_py.py", line 92, in run

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/setuptools-1.1-py3.2.egg/setuptools/command/build_py.py", line 38, in run_2to3

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/util.py", line 641, in run_2to3

    return run_2to3(files, self.fixer_names, self.options, self.explicit)

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/util.py", line 589, in run_2to3

    r.refactor(files, write=True)

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/lib2to3/refactor.py", line 296, in refactor

    self.refactor_file(dir_or_file, write, doctests_only)

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/lib2to3/refactor.py", line 349, in refactor_file

    tree = self.refactor_string(input, filename)

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/lib2to3/refactor.py", line 381, in refactor_string

    self.refactor_tree(tree, name)

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/lib2to3/refactor.py", line 442, in refactor_tree

    find_root(node)

  File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/lib2to3/fixer_util.py", line 276, in find_root

    while node.type != syms.file_input:

AttributeError: 'NoneType' object has no attribute 'type'

Complete output from command /data/user/0/org.qpython.qpy3/files/bin/python-android5 -c "import setuptools;__file__='/storage/emulated/0/qpython/cache/pip-build/beautifulsoup4/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /storage/emulated/0/qpython/cache/pip-s2mej9-record/install-record.txt --single-version-externally-managed:

running install

running build

running build_py

creating build

creating build/lib

creating build/lib/bs4

copying bs4/init.py -> build/lib/bs4

copying bs4/diagnose.py -> build/lib/bs4

copying bs4/element.py -> build/lib/bs4

copying bs4/testing.py -> build/lib/bs4

copying bs4/dammit.py -> build/lib/bs4

creating build/lib/bs4/builder

copying bs4/builder/init.py -> build/lib/bs4/builder

copying bs4/builder/_lxml.py -> build/lib/bs4/builder

copying bs4/builder/_html5lib.py -> build/lib/bs4/builder

copying bs4/builder/_htmlparser.py -> build/lib/bs4/builder

creating build/lib/bs4/tests

copying bs4/tests/init.py -> build/lib/bs4/tests

copying bs4/tests/test_soup.py -> build/lib/bs4/tests

copying bs4/tests/test_htmlparser.py -> build/lib/bs4/tests

copying bs4/tests/test_docs.py -> build/lib/bs4/tests

copying bs4/tests/test_lxml.py -> build/lib/bs4/tests

copying bs4/tests/test_html5lib.py -> build/lib/bs4/tests

copying bs4/tests/test_builder_registry.py -> build/lib/bs4/tests

copying bs4/tests/test_tree.py -> build/lib/bs4/tests

Fixing build/lib/bs4/init.py build/lib/bs4/diagnose.py build/lib/bs4/element.py build/lib/bs4/testing.py build/lib/bs4/dammit.py build/lib/bs4/builder/init.py build/lib/bs4/builder/_lxml.py build/lib/bs4/builder/_html5lib.py build/lib/bs4/builder/_htmlparser.py build/lib/bs4/tests/init.py build/lib/bs4/tests/test_soup.py build/lib/bs4/tests/test_htmlparser.py build/lib/bs4/tests/test_docs.py build/lib/bs4/tests/test_lxml.py build/lib/bs4/tests/test_html5lib.py build/lib/bs4/tests/test_builder_registry.py build/lib/bs4/tests/test_tree.py

Skipping implicit fixer: buffer

Skipping implicit fixer: idioms

Skipping implicit fixer: set_literal

Skipping implicit fixer: ws_comma

Traceback (most recent call last):

File "", line 1, in

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

"Topic :: Software Development :: Libraries :: Python Modules",

File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/core.py", line 148, in setup

dist.run_commands()

File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/dist.py", line 917, in run_commands

self.run_command(cmd)

File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/dist.py", line 936, in run_command

cmd_obj.run()

File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/setuptools-1.1-py3.2.egg/setuptools/command/install.py", line 53, in run

File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/command/install.py", line 569, in run

self.run_command('build')

File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/cmd.py", line 313, in run_command

self.distribution.run_command(command)

File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/dist.py", line 936, in run_command

cmd_obj.run()

File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/command/build.py", line 126, in run

self.run_command(cmd_name)

File "/data/user/0/org.qpython.qpy3/files/lib/python3.2/site-packages/distutils/cmd.py", line 313, in run_command

self.distribution.run_command(command)

File "/

Permission Denied

Android 4.4 , Device is rooted

Console Text :

Python 2.7.12 (default, Nov 21 2017, 21:49:35)
[GCC 4.9.x 20150123 (prerelease)] on linux4

》》》 import pip

》》》 pip.main(['install','--user','--upgrade','requests'])

Downloading/unpacking requests
Downloading requests-2.18.4.tar.gz (126Kb): 126Kb downloaded
Running setup.py egg_info for package requests
Error [Errno 13] Permission denied while executing command python setup.py egg_info
Exception:
Traceback (most recent call last):
File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/pip/req.py", line 980, in prepare_files
req_to_install.run_egg_info()
File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/pip/req.py", line 216, in run_egg_info
command_desc='python setup.py egg_info')
File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/pip/init.py", line 226, in call_subprocess
cwd=cwd, env=env)
File "/data/data/org.qpython.qpy/files/lib/python27.zip/subprocess.py", line 711, in init
errread, errwrite)
File "/data/data/org.qpython.qpy/files/lib/python27.zip/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied

QPython 3 for older versions

[Feedback]: QPython3 is a great app, but recent versions of it or Qpy3.6 just include PIE executables. Since they aren't supported on older devices (like mine), I'm asking you to create two editions of it (like Orbot, the Tor client for Android does) because non-PIE executables aren't supported on newer devices. Then you'd have to set minSdk and maxSdk correctly.

[Device information]
kylevessxx,android:4.1.2,sdk:16

[Recent error information]
IS_TRANSLATION_ASSISTANT_ENABLED=false
IS_SECURE=false
FINGERPRINT=samsung/kylevessxx/kylevess:4.1.2/JZO54K/S7390XXUANL1:user/release-keys
HARDWARE=hawaii_ss_kylevess
UNKNOWN=unknown
RADIO=unknown
BOARD=hawaii
PRODUCT=kylevessxx
DISPLAY=JZO54K.S7390XXUANL1
USER=dpi
HOST=SWDB4709
DEVICE=kylevess
TAGS=release-keys
MODEL=GT-S7390
BOOTLOADER=unknown
CPU_ABI=armeabi-v7a
CPU_ABI2=armeabi
IS_SYSTEM_SECURE=false
IS_DEBUGGABLE=false
ID=JZO54K
SERIAL=4204d48de4617100
MANUFACTURER=samsung
BRAND=samsung
TYPE=user
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.qpython.qpy3/com.google.zxing.client.android.share.BookmarkPickerActivity}: java.lang.SecurityException: Permission Denial: reading com.android.browser.provider.BrowserProviderProxy uri content://browser/bookmarks from pid=27354, uid=10125 requires com.android.browser.permission.READ_HISTORY_BOOKMARKS, or grantUriPermission()
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2146)
at android.app.ActivityThread.access$700(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:177)
at android.app.ActivityThread.main(ActivityThread.java:4947)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.SecurityException: Permission Denial: reading com.android.browser.provider.BrowserProviderProxy uri content://browser/bookmarks from pid=27354, uid=10125 requires com.android.browser.permission.READ_HISTORY_BOOKMARKS, or grantUriPermission()
at android.os.Parcel.readException(Parcel.java:1425)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:188)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140)
at android.content.ContentProviderProxy.query(ContentProviderNative.java:366)
at android.content.ContentResolver.query(ContentResolver.java:378)
at android.content.ContentResolver.query(ContentResolver.java:321)
at com.google.zxing.client.android.share.BookmarkPickerActivity.onCreate(BookmarkPickerActivity.java:56)
at android.app.Activity.performCreate(Activity.java:5207)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2085)
... 11 more
java.lang.SecurityException: Permission Denial: reading com.android.browser.provider.BrowserProviderProxy uri content://browser/bookmarks from pid=27354, uid=10125 requires com.android.browser.permission.READ_HISTORY_BOOKMARKS, or grantUriPermission()
at android.os.Parcel.readException(Parcel.java:1425)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:188)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140)
at android.content.ContentProviderProxy.query(ContentProviderNative.java:366)
at android.content.ContentResolver.query(ContentResolver.java:378)
at android.content.ContentResolver.query(ContentResolver.java:321)
at com.google.zxing.client.android.share.BookmarkPickerActivity.onCreate(BookmarkPickerActivity.java:56)
at android.app.Activity.performCreate(Activity.java:5207)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2085)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2146)
at android.app.ActivityThread.access$700(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:177)
at android.app.ActivityThread.main(ActivityThread.java:4947)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at dalvik.system.NativeStart.main(Native Method)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.