Why 'firewall-config' command fails with error "ImportError: cannot import name NetworkManager" ?
Issue
- When running
firewall-configcommand, its failing with error message as shown below:
[root@hostname /]# firewall-config
ERROR:root:Could not find any typelib for NetworkManager
Traceback (most recent call last):
File "/usr/bin/firewall-config", line 34, in <module>
from gi.repository import NetworkManager
ImportError: cannot import name NetworkManager
[root@hostname /]#
Environment
- Red Hat Enterprise Linux 7.1
- Firewalld
- NetworkManager
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
