Qtile config Identation error in layouts

I have a bit of a problem here. After managing my keybinds in qtile and restarted, i noticed that there was an error for the layouts. I tried to fix it myself multiple times in the span of 30 minutes but nothing worked for me, there was always this error that doesn’t seem to be really fixed whatever i did… (I don’t really know any python so yea)
btw here was the logs i did when doing qtile -l ERROR:

dent preformatted text by 4 spaces
2020-09-20 05:01:15,729 libqtile confreader.py:load():L96 Could not import config file ‘/home/no/.config/qtile/config.py’
Traceback (most recent call last):
File “/usr/lib/python3.8/site-packages/libqtile/confreader.py”, line 92, in load
config = import(name) # noqa: F811
File “/home/no/.config/qtile/config.py”, line 101
layouts = layout.MonadTall(margin=15)
^
IndentationError: unindent does not match any outer indentation level
2020-09-20 05:01:15,729 libqtile manager.py:init():L113 Error while reading config file (Traceback (most recent call last):
File “/usr/lib/python3.8/site-packages/libqtile/confreader.py”, line 92, in load
config = import(name) # noqa: F811
File “/home/no/.config/qtile/config.py”, line 101
layouts = layout.MonadTall(margin=15)
^
IndentationError: unindent does not match any outer indentation level
)
Traceback (most recent call last):
File “/usr/lib/python3.8/site-packages/libqtile/confreader.py”, line 92, in load
config = import(name) # noqa: F811
File “/home/no/.config/qtile/config.py”, line 101
layouts = layout.MonadTall(margin=15)
^
IndentationError: unindent does not match any outer indentation level

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3.8/site-packages/libqtile/core/manager.py”, line 111, in init
self.config.load()
File “/usr/lib/python3.8/site-packages/libqtile/confreader.py”, line 98, in load
raise ConfigError(tb)
libqtile.confreader.ConfigError: Traceback (most recent call last):
File “/usr/lib/python3.8/site-packages/libqtile/confreader.py”, line 92, in load
config = import(name) # noqa: F811
File “/home/no/.config/qtile/config.py”, line 101
layouts = layout.MonadTall(margin=15)
^
IndentationError: unindent does not match any outer indentation level

^CSegmentation fault (core dumped)
[no@yes ~]$ qtile -l ERROR
2020-09-20 05:03:53,222 libqtile confreader.py:load():L96 Could not import config file ‘/home/no/.config/qtile/config.py’
Traceback (most recent call last):
File “/usr/lib/python3.8/site-packages/libqtile/confreader.py”, line 92, in load
config = import(name) # noqa: F811
File “/home/no/.config/qtile/config.py”, line 101
layouts = [
^
IndentationError: unindent does not match any outer indentation level
2020-09-20 05:03:53,223 libqtile manager.py:init():L113 Error while reading config file (Traceback (most recent call last):
File “/usr/lib/python3.8/site-packages/libqtile/confreader.py”, line 92, in load
config = import(name) # noqa: F811
File “/home/no/.config/qtile/config.py”, line 101
layouts = [
^
IndentationError: unindent does not match any outer indentation level
)
Traceback (most recent call last):
File “/usr/lib/python3.8/site-packages/libqtile/confreader.py”, line 92, in load
config = import(name) # noqa: F811
File “/home/no/.config/qtile/config.py”, line 101
layouts = [
^
IndentationError: unindent does not match any outer indentation level

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3.8/site-packages/libqtile/core/manager.py”, line 111, in init
self.config.load()
File “/usr/lib/python3.8/site-packages/libqtile/confreader.py”, line 98, in load
raise ConfigError(tb

The output indicates that there is an IndentationError in line 101 in your config.py file.

This line includes something like this:

layouts = ...

To fix it you have to use the right indentation before the word layouts.

python is very strict when it comes to indentation.

4 spaces - with the appropriate levels - no more no less and no tabs.

Thanks guys, I actually heard that the manjaro forums don’t really do their job here, guess they’re really wrong

1 Like

Hi!
Comprueba que aki no haya ningun error