Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error in help modules
#1
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
Reply
#2
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.
Reply
#3
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
Reply
#4
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?
Reply
#5
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Modules issue, pip3 download modules only to pyhton3.5.2 not the latest 3.6.1 bmohanraj91 6 8,671 May-25-2017, 08:15 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020