qpython-android / qpython

QPython is an Android Python engine primarily designed for Python and AI learners. It offers a range of impressive features to enhance Python programming experience.
https://www.qpython.org
1.06k stars 193 forks source link

matplotlib-aipy #85

Open vanlexgaldino opened 6 years ago

vanlexgaldino commented 6 years ago

Plot witch matplot-aipy in anroid.

hutauf commented 6 years ago

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

alfranbe commented 6 years ago

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.

becshowalter commented 6 years ago

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 commented 6 years ago

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.

alfranbe commented 6 years ago

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 commented 5 years ago

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"...

hhj000 commented 4 years ago

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

kpetrasek commented 4 years ago

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

alfranbe commented 4 years ago

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)

kpetrasek commented 4 years ago

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.

Totozee commented 1 year ago

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

Bzori commented 1 year ago

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?