Python Forum

Full Version: error in help modules
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am running Python3 on Fedora 27.
I installed pyorbital and then I disisnstalled it
Something went wrong, now when I issue Python3/modules/help()

Please wait a moment while I gather a list of all available modules...

/usr/lib64/python3.6/site-packages/matplotlib/cbook.py:136: MatplotlibDeprecationWarning: The matplotlib.delaunay module was deprecated in version 1.4. Use matplotlib.tri.Triangulation instead.
warnings.warn(message, mplDeprecation, stacklevel=1)
Assembler messages:
Fatal error: can't create /usr/lib64/python3.6/site-packages/zmq/backend/cffi/__pycache__/usr/lib64/python3.6/site-packages/zmq/backend/cffi/__pycache__/_cffi_ext.o: Permission denied
/usr/lib64/python3.6/site-packages/zmq/backend/cffi/__pycache__/_cffi_ext.c:2:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
Assembler messages:
Fatal error: can't create /usr/lib64/python3.6/site-packages/zmq/backend/cffi/__pycache__/usr/lib64/python3.6/site-packages/zmq/backend/cffi/__pycache__/_cffi_ext.o: Permission denied
/usr/lib64/python3.6/site-packages/zmq/backend/cffi/__pycache__/_cffi_ext.c:2:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.

IPy bz2 http reportclient
OleFileIO_PL cProfile httplib2 reprlib
OpenSSL cairo humanize requests
PIL calendar idlelib requests_file
PyQt5 caribou ++++++


augeas gnome_abrt pylab xdg
auparse gnomemusic pyorbital xdrlib
base64 gpg pyparsing xml

I tried to install with pip3 the pyorbital module (and then I uninstalled) but since then I get this error and pyorbital is stll listed. In Python2 there is no pyorbital and I do not get any error.
If I use pip3 list there is no pyorbital listed
Quote:fatal error: Python.h: No such file or directory

From what I remember, that error normally pops up when compiling something using gcc, as it can't find the headers it's trying to link against. In your package manager (I think it's yum for Fedora), can you check if there's a package similar to python-dev, which would install the development headers? After you have those, try again.
python-devel installed and then....

help> modules

Please wait a moment while I gather a list of all available modules...

/usr/lib64/python3.6/site-packages/matplotlib/cbook.py:136: MatplotlibDeprecationWarning: The matplotlib.delaunay module was deprecated in version 1.4. Use matplotlib.tri.Triangulation instead.
warnings.warn(message, mplDeprecation, stacklevel=1)
Assembler messages:
Fatal error: can't create /usr/lib64/python3.6/site-packages/zmq/backend/cffi/__pycache__/usr/lib64/python3.6/site-packages/zmq/backend/cffi/__pycache__/_cffi_ext.o: Permission denied
/usr/lib64/python3.6/site-packages/zmq/backend/cffi/__pycache__/_cffi_ext.c:212:10: fatal error: zmq.h: No such file or directory
#include <zmq.h>
^~~~~~~
compilation terminated.
Assembler messages:
Fatal error: can't create /usr/lib64/python3.6/site-packages/zmq/backend/cffi/__pycache__/usr/lib64/python3.6/site-packages/zmq/backend/cffi/__pycache__/_cffi_ext.o: Permission denied
/usr/lib64/python3.6/site-packages/zmq/backend/cffi/__pycache__/_cffi_ext.c:212:10: fatal error: zmq.h: No such file or directory
#include <zmq.h>
^~~~~~~
compilation terminated.

Tnx for your help
Similar error, but for a different package. Is there a zmq-devel? (I'm guessing that's ZeroMQ)

Quote:help> modules
What program are you using that gives that prompt? Is this a matplotlib thing?
installing the zeromq-devel package didn't solve the problem, but dnf reinstall zeromq* seems to have solved it.

Now I have two questions:

1)/usr/lib64/python3.6/site-packages/matplotlib/cbook.py:136: MatplotlibDeprecationWarning: The matplotlib.delaunay module was deprecated in version 1.4. Use matplotlib.tri.Triangulation instead.
warnings.warn(message, mplDeprecation, stacklevel=1) what does it mean (that is quite clear to me) but how can I clear it??

2) why pyorbital is in the list from help()/modules but is not present in
[antonio@fujitsu ~]$ pip3 uninstall pyorbital
Cannot uninstall requirement pyorbital, not installed

Tnx for help