qpython-android / aipy.org Goto Github PK
View Code? Open in Web Editor NEWAIPY releases
AIPY releases
I installed QPython 2.0.7 and AIPY, then through QPYPI's GUI interface downloaded numpy from the AIPY tab. Started a terminal and did import numpy. Below is the output. I also tried resetting the storage and install again, I even uninstalled in re-installed QPython and AIPY, but I always got the same error. This is also preventing me from using any other of the AI packages like theano.
git clean -xdf
(removes all files not under version control). Otherwise reinstall numpy. Original error was: dlopen failed: could not load library "libopenblas.so" needed by "multiarray.so"; caused by could not load library "libgfortran.so" needed by "libopenblas.so"; caused by cannot locate symbol "acoshf" referenced by "libgfortran.so"...I have the following question: Is this project dead? Because there has been no activity since 2018 or 2019. I really want to try out this project, but if it's dead, I don't know if I can try it...
my os is MIUI9.1.4.0 Android7.0. qpython version is Qpython3 (1.0.3)
Run keras with theano aipy over oneplus 3t with qpython and aipy
keras.datasets.mnist.load_data()
is not working,
I set path='' argument to many paths and also download the npz file but still it want to go to /tmp folder that it read only.
In the end i download the file manually and open it with numpy.
Can you fix that?
/data/user/0/org.qpython.qpy/files/bin/qpython-android5.sh "/storage/emulated/0/qpython/tal.py" && exit
ge/emulated/0/qpython/tal.py" && exit <
Using Theano backend.
/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/theano/configdefaults.py:560: UserWarning: DeprecationWarning: there is no c++ compiler.This is deprecated and with Theano 0.11 a c++ compiler will be mandatory
warnings.warn("DeprecationWarning: there is no c++ compiler."
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
( library_dirs = /data/user/0/org.qpython.qpy/files/lib )
( include_dirs = /data/user/0/org.qpython.qpy/files/include )
( library_dirs = /data/user/0/org.qpython.qpy/files/lib )
( library_dirs = /data/user/0/org.qpython.qpy/files/lib )
( library_dirs = /data/user/0/org.qpython.qpy/files/lib )
( library_dirs = /data/user/0/org.qpython.qpy/files/lib )
( library_dirs = /data/user/0/org.qpython.qpy/files/lib )
( library_dirs = /data/user/0/org.qpython.qpy/files/lib )
( library_dirs = /data/user/0/org.qpython.qpy/files/lib )
( src_dirs = . )
WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions.
Traceback (most recent call last):
File "/storage/emulated/0/qpython/tal.py", line 18, in <module>
(x_train, y_train), (x_test, y_test) = mnist.load_data()
File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/keras/datasets/mnist.py", line 23, in load_data
file_hash='8a61469f7ea1b51cbae51d4f78837e45')
File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/keras/utils/data_utils.py", line 182, in get_file
os.makedirs(datadir)
File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/os.py", line 150, in makedirs
File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/os.py", line 150, in makedirs
File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/os.py", line 157, in makedirs
OSError: [Errno 30] Read-only file system: '/tmp'
1|OnePlus3T:/ $
/data/data/org.qpython.qpy/files/bin/qpython.sh "/storage/emulated/0/qpython/test.py" && exit
ython/test.py" && exit <
Traceback (most recent call last):
File "/storage/emulated/0/qpython/test.py", line 1, in
import numpy
File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/numpy_aipy-1.13.1-py2.7.egg/numpy/init.py", line 142, in
from . import add_newdocs
File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/numpy_aipy-1.13.1-py2.7.egg/numpy/add_newdocs.py", line 13, in
from numpy.lib import add_newdoc
File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/numpy_aipy-1.13.1-py2.7.egg/numpy/lib/init.py", line 8, in
from .type_check import *
File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/numpy_aipy-1.13.1-py2.7.egg/numpy/lib/type_check.py", line 11, in
import numpy.core.numeric as _nx
File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/numpy_aipy-1.13.1-py2.7.egg/numpy/core/init.py", line 26, in
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try git clean -xdf
(removes all
files not under version control). Otherwise reinstall numpy.
Original error was: dlopen failed: could not load library "libopenblas.so" needed by "multiarray.so"; caused by could not load library "libgfortran.so" needed by "libopenblas.so"; caused by cannot locate symbol "acoshf" referenced by "libgfortran.so"...
1|u0_a219@e5lte:/ $
Samsung Galaxy E5 (SM-E500M)
Android 4.4.4
Is there anything I can do to solve the problem?
I install keras with theano on qpython with aipy and run simple algorithm on mnist.
It run so slow that one epoch take more than a day.
Then I install Ubuntu on my phone. the same phone before. install keras with theano and run the same mnist algorithm, it take 1min for epoch. big difference.
I download libopenblas with apt install, also liblapack and gfortran that pip install scipy with openblas.
The libraries numpy scipy and also theano are link to openblas, and my guess yours libraries are not.
Can you create numpy, scipy and theano linked to openblas. that it can be easy install (for me it take one day to setup all the stuff) and faster with performance that many people can run deep learning on the phone.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.