ImportError: No module named dbus while executing system-config-firewall-tui [Solved]

Updated on September 3, 2017

Question: I was trying to configure firewall using ‘system-config-firewall-tui‘ command on my CentOS VPS. However the command ended up with the below error message. I saw a similar post at techglimpse where you suggested to start messagebus service, but I don’t find that service in my machine. Can you tell me how to solve the below error?

– Regards Santu!

[root@santu ]# system-config-firewall-tui
Traceback (most recent call last):
  File "/usr/bin/system-config-firewall-tui", line 29, in <module>
    import fw_tui
  File "/usr/share/system-config-firewall/fw_tui.py", line 34, in <module>
    import fw_nm
  File "/usr/share/system-config-firewall/fw_nm.py", line 29, in <module>
    import dbus
ImportError: No module named dbus

system-config-firewall error

Solution:

Santu, you need to install ‘dbus‘ package and then start ‘messagebus‘ service.

# yum install dbus-python
Loaded plugins: fastestmirror, presto
Setting up Install Process
Loading mirror speeds from cached hostfile
 * atomic: mirrors.thzhost.com
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
Resolving Dependencies
--> Running transaction check
---> Package dbus-python.x86_64 0:0.83.0-6.1.el6 will be installed
--> Finished Dependency Resolution

Once installed, start ‘messagebus‘ service as below:

# service messagebus start

Now try launching ‘system-config-firewall-tui‘ command and it should work.

Do you want us to write about any linux command or error? Let’s us know via contact us page.

Also read: Install setup utility to manage service, network and firewall configurations.

Was this article helpful?

Related Articles

Leave a Comment