GithubHelp home page GithubHelp logo

qpython-android / qpython3-toolchain Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 53.21 MB

qpython3-toolchain is a tools collection, helping you build QPython3's core from source code.

License: Do What The F*ck You Want To Public License

Shell 0.52% Makefile 0.26% Python 1.37% C 94.21% C++ 3.22% Objective-C 0.40% Smarty 0.02%

qpython3-toolchain's People

Contributors

mmariani avatar riverfor avatar wangqiang1588 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

qpython3-toolchain's Issues

Update to Python 3.7?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

[QCT] Initial QPython3 Toolchain

Background

We need to release a new QPython3 toolchain, which allow other guys can build the QPython3 core by themselves.

Features

  • It should support Macos & Ubuntu linux
  • It should support arm & x86 & mips for android
  • Users can setup the toolchain easily
  • It can be used to cross compile other python 3rd libraries easily
  • ...

How to install

working path for file load is "/"?

Hello,
I try to use the web framework bottle, with an application, which works on Ubuntu 14.04.
When I try to load my template file from the web browser (firefox):
return template('index.tpl', **settings)
I will get an HTML error 500 (internal server error).
When I try to load a static file, I will get an HTML error 404 (file not found).

When I run in a test program:
print(os.path.abspath(os.getcwd()))
I will get just "/".

Usually in "bottle" the program directory is the root for file loads.
How can I set it up, to make the root for file loads the program directory?

Regards, Rudolf

Crash on Android x86

Every time I try to use the console in both QPython and QPython3 on Android x86 (6.0) I get something like "catch exception, will restart". In the logcat I see:

mm-dd HH:MM:SS.fff  pid  pid  E ActivityManager: ANR in org.qpython.qpy (org.qpython.qpy/jackpal.androidterm.Term)
mm-dd HH:MM:SS.fff  pid  pid  E ActivityManager: PID: pid
mm-dd HH:MM:SS.fff  pid  pid  E ActivityManager: Reason: Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 3. Wait queue head age: 5414.6ms.)

datetime.datetime.strptime Returns locale.error: local query fail

Hi, I'm getting an issue with QPython3 (Play 0.9.7) running on a Samsung Galaxy Tab Pro 10.1 Android 4.4.2

u0_a231@picassowifi:/ $ /data/data/com.hipipal.qpy3/files/bin/qpython.sh /storage/emulated/0/com.hipipal.qpyplus/scripts3/rsp.py && exit
Traceback (most recent call last):
File "/storage/emulated/0/com.hipipal.qpyplus/scripts3/rsp.py", line 185, in
if not dt.datetime.strptime(dats[-1],'%Y/%W/%w').date().strftime('%W')==dt.date.today().strftime('%W'):
File "/data/data/com.hipipal.qpy3/files/lib/python3.2/python32.zip/_strptime.py", line 273, in
File "/data/data/com.hipipal.qpy3/files/lib/python3.2/python32.zip/_strptime.py", line 190, in init
File "/data/data/com.hipipal.qpy3/files/lib/python3.2/python32.zip/_strptime.py", line 72, in init
File "/data/data/com.hipipal.qpy3/files/lib/python3.2/python32.zip/_strptime.py", line 31, in _getlang
File "/data/data/com.hipipal.qpy3/files/lib/python3.2/python32.zip/locale.py", line 519, in getlocale
locale.Error: locale query failed

Update to Python 3.4 or newer?

Are there any plans for updating to a newer version of Python 3.x? Many libraries on PyPI, for instance, only support Python 3.4 or newer.

time.strptime returns locale query failed

Hi, I'm getting an issue with QPython3 (Play 0.9.4) running on a Samsung Galaxy S4 Android (jfltexx, android:4.4.2, sdk:19)

Python 3.2.2 (default, Jun 23 2014, 00:13:13)
[GCC 4.8] on linux-armv7l
Type "help", "copyright", "credits" or "license" for more information.

import time
time.strptime("01/01/01", "%x")
Traceback (most recent call last):
File "", line 1, in
File "/data/data/com.hipipal.qpy3/files/lib/python3.2/python32.zip/_strptime.py", line 273, in
File "/data/data/com.hipipal.qpy3/files/lib/python3.2/python32.zip/_strptime.py", line 190, in init
File "/data/data/com.hipipal.qpy3/files/lib/python3.2/python32.zip/_strptime.py", line 72, in init
File "/data/data/com.hipipal.qpy3/files/lib/python3.2/python32.zip/_strptime.py", line 31, in _getlang
File "/data/data/com.hipipal.qpy3/files/lib/python3.2/python32.zip/locale.py", line 519, in getlocale
locale.Error: locale query failed

How does this toolchain work?

When I try to install library(lxml,paramiko) that have dependencies with C library by using pip, it raise the error that :
/home/QPY/android-ndk-r17/toolchain/llvm/prebuilt/linux-x86_64/bin/clang : no such file
How can I solve this problem? Should I put the tool chain in that directory?
Waiting for your reply.
image

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.