qpython icon indicating copy to clipboard operation
qpython copied to clipboard

matplotlib-aipy

Open vanlexgaldino opened this issue 7 years ago • 14 comments

Plot witch matplot-aipy in anroid.

vanlexgaldino avatar Dec 18 '17 01:12 vanlexgaldino

This is working fine for me. I am creating plots with matplotlib within qpython. Whats your precise problem?

hutauf avatar Jan 23 '18 06:01 hutauf

I have a problem with qpython when I try to use matplotlib. I'm unable to import literally anything from it. Watch this:"

/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/matplotlib_aipy-2.1.0-py2.7.egg/matplotlib/init.py:901: UserWarning: could not find rc file; returning defaults warnings.warn(message)

" The console prints this out every time I try to use matplotlib. I just don't know what to do.

alfranbe avatar Mar 09 '18 06:03 alfranbe

I am having the same issue.

This is my code :

import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt

x=[1,2,3,4] y=[5,6,7,8]

plt.scatter(x,y) only.title('testing matplotlib') value=[2,4,6,8,10] label=['one','two','three','four','five'] plt.xticks(value,label) plt.show()

The error message I receive is the very same as alfranbe's.

becshowalter avatar Apr 13 '18 07:04 becshowalter

I just tried installing matplotlib again and I'm having the same issue, but i did notice this little blurb popped up while downloading :

Could not find .egg-info directory in install record for matplotlib-aipy

But at the end the terminal says matplotlib-aipy was installed successfully.

becshowalter avatar Apr 13 '18 07:04 becshowalter

becshowalter, I just saw your comment:

"I just tried installing matplotlib again and I'm having the same issue, but i did notice this little blurb popped up while downloading :

Could not find .egg-info directory in install record for matplotlib-aipy

But at the end the terminal says matplotlib-aipy was installed successfully."

And I wanted to say that I saw the exact same thing when I installed it.

If I uninstall matplotlib, and then install it again, it's the same error that pops up, but in the end it says the installation was successful.

alfranbe avatar Apr 14 '18 09:04 alfranbe

I know it has been a long time since the last comment; but this error hasn't been solved yet.

See what happens now when I try to import pyplot from matplotlib:

/data/user/0/org.qpython.qpy/files/bin/qpython-android5.sh && exit iles/bin/qpython-android5.sh && exit < Python 2.7.15 (qpyc:2.7.15, Aug 22 2018, 06:50:49) [BUILD WITH QPY-TOOLCHAIN (https://github.com/qpython-android) ] on linux2 Type "help", "copyright", "credits" or "license" for more information.

from matplotlib import pyplot /data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/backports.functools_lru_cache_qpython-1.4-py2.7.egg/backports/init.py:1: UserWarning: Module backports was already imported from /data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/backports.functools_lru_cache_qpython-1.4-py2.7.egg/backports/init.py, but /data/data/org.qpython.qpy/files/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1-py2.7.egg is being added to sys.path import("pkg_resources").declare_namespace(name) /data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/matplotlib_aipy-2.1.0-py2.7.egg/matplotlib/init.py:901: UserWarning: could not find rc file; returning defaults warnings.warn(message) Traceback (most recent call last): File "", line 1, in File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/matplotlib_aipy-2.1.0-py2.7.egg/matplotlib/pyplot.py", line 29, in import matplotlib.colorbar File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/matplotlib_aipy-2.1.0-py2.7.egg/matplotlib/colorbar.py", line 32, in import matplotlib.artist as martist File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/matplotlib_aipy-2.1.0-py2.7.egg/matplotlib/artist.py", line 16, in from .path import Path File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/matplotlib_aipy-2.1.0-py2.7.egg/matplotlib/path.py", line 25, in from . import _path, rcParams ImportError: dlopen failed: cannot locate symbol "__aeabi_d2uiz" referenced by "/data/data/org.qpython.qpy/files/lib/python2.7/site-packages/matplotlib_aipy-2.1.0-py2.7.egg/matplotlib/_path.so"...

alfranbe avatar Nov 15 '18 08:11 alfranbe

У меня абсолютно такая же ошибка. Видимо, придётся переходить с qpython на другие ide

hhj000 avatar Apr 08 '20 08:04 hhj000

Has anyone solved this? I'm having similar problems with matplotlib-aipy.

kpetrasek avatar Aug 07 '20 17:08 kpetrasek

Has anyone solved this? I'm having similar problems with matplotlib-aipy.

Nothing has been solved as far as I know. I keep having the same problems as if I was still in 2017. (Minus the pandemic part of course)

alfranbe avatar Aug 07 '20 17:08 alfranbe

Thanks for the quick response -- your experience is what I expected to find -- that qpython has effectively been abandoned. I'm going to drop it and try some of the other python-on-android solutions like Bee-ware or Kivy.

kpetrasek avatar Aug 07 '20 18:08 kpetrasek

I have this issues when i used the app Qpython 3L, but by using the app Pydroid3 it work fine

Totozee avatar Apr 23 '23 06:04 Totozee

I have this issues when i used the app Qpython 3L, but by using the app Pydroid3 it work fine

Is it available on play store?

Bzori avatar Jul 29 '23 07:07 Bzori