ModuleNotFoundError: No module named 'six'

acesaif picture acesaif · Mar 26, 2018 · Viewed 8.3k times · Source

I am trying to setup lamp server on my Fedora 27. Referring this site, I am following every step, but running this command firewall-cmd --permanent --add-service=http, here are the following errors I get

Traceback (most recent call last):
  File "/usr/bin/firewall-cmd", line 31, in <module>
    from firewall.client import FirewallClient, FirewallClientIPSetSettings, \
  File "/usr/lib/python3.6/site-packages/firewall/client.py", line 29, in <module>
    import slip.dbus
  File "/usr/lib/python3.6/site-packages/slip/dbus/__init__.py", line 8, in <module>
    from . import service
  File "/usr/lib/python3.6/site-packages/slip/dbus/service.py", line 30, in <module>
    from six import with_metaclass
ModuleNotFoundError: No module named 'six'

I reinstalled six package, but still the same error message.

Answer

user3362334 picture user3362334 · Mar 26, 2018

You probably don't have the six Python module installed. You can find it on pypi

To install it:

$ easy_install six

If you have pip installed you can run $ pip install 'six'