qpython icon indicating copy to clipboard operation
qpython copied to clipboard

AIPY: all modules installed, and NumPy keeps giving error

Open britoest opened this issue 8 years ago • 9 comments

I don't know what's really happening... all modules in AIPY tab depend on NumPy to work... I've installed NumPy through AIPY, but it seems it wasn't installed correctly

CHECK THIS OUT: when I try to import a module that is up to NumPy to work

<les/bin/qpython-root.sh && exit Python 2.7.12 (default, Sep 28 2017, 11:17:05) [GCC 4.9.x 20150123 (prerelease)] on linux4 Type "help", "copyright", "credits" or "license" for more information.

import sklearn Traceback (most recent call last): File "", line 1, in File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/scikit_learn_aipy-0.19.0-py2.7.egg/sklearn/init.py", line 134, in from .base import clone File "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/scikit_learn_aipy-0.19.0-py2.7.egg/sklearn/base.py", line 9, in import numpy as np 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: Cannot load library: link_image[1891]: 11231 could not load needed library 'libopenblas.so' for 'multiarray.so' (link_image[1891]: 11231 could not load needed library 'libgfortran.so' for 'libopenblas.so' (reloc_library[1306]: 11231 cannot locate 'acoshf'... ))

=============================== When trying to import NumPy itself, the same error shows up. I don't know what to do to fix it.

The console massage asks me to reinstall NumPy, that was I did, but I couldn't, cause NumPy cannot be installed by pip

By the way, there are libs that cannot be loaded (what the hell)... WHY?

britoest avatar Nov 21 '17 18:11 britoest

Reletaed to some libs that cannot be loaded: I have root access, and I went to numpy folders and I found the multiarray.so lib... and I placed it in my system/lib folder, as well as qpython folders, but it didn't work. So I'd like to know WHY this lib cannot be loaded, even it's right there?

britoest avatar Nov 21 '17 18:11 britoest

What's your mobile's model and the android version . please ?

riverfor avatar Nov 27 '17 05:11 riverfor

@riverfor, it's a Samsung Galaxy Win

Model: GT-I8552B Android version: 4.1.2

britoest avatar Nov 28 '17 19:11 britoest

I couldn't load python command because it couldn't load the lib libpython2.7.so... I found this lib in QPy's folder and placed it in system/lib - now i can use python cmd

By the way, i tried the same thing with these other libs (multiarray.so blah blah) but it seems not work

Try to update QPython with NumPy already installed and set up

And please, try to fix this issue... i wanna use NumPy

Thanks, britoest

britoest avatar Nov 28 '17 19:11 britoest

Got same error. Tried everything that can be done. I think they should build app from scratch.

Abhi210 avatar Dec 06 '17 12:12 Abhi210

Got same error :/

sachgali avatar Dec 26 '17 22:12 sachgali

Got the same error a long time (:з」∠)

xiaomile avatar Feb 06 '18 07:02 xiaomile

Same problem. I installed QPython, then AIPY, then Numpy 1.13.1 from the AIPY tab.

Here is the error I get when trying "import numpy" and run the code:

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 needed library "libopenblas.so" needed by "multiarray.so"; caused by could not load needed library "libgfortran.so" needed by "libopenblas.so"; caused by cannot locate symbol "acoshf" referenced by "libgfortran.so"...

I tried uninstalling everything and reinstalling again and the error persists.

Galaxy E5 (SM-E500M) Android 4.4.4

Neuro-Dynamics avatar Feb 14 '18 04:02 Neuro-Dynamics

I have the same problem. Is this resolved? Samsung Galaxy J7 Android 7.0

GrejSegura avatar Mar 13 '18 06:03 GrejSegura