i3-instant-layout icon indicating copy to clipboard operation
i3-instant-layout copied to clipboard

'Con' object has no attribute 'ipc_data'

Open eater opened this issue 4 years ago • 6 comments

I have 4 windows in a split layout. I call i3-instant-layout 2c in a terminal (which is one of the 4 windows). It tells me:

Traceback (most recent call last):
  File "/home/eater/.local/bin/i3-instant-layout", line 8, in <module>
    sys.exit(main())
  File "/home/eater/.local/lib/python3.6/site-packages/i3_instant_layout/main.py", line 226, in main
    nuke_swallow_windows()
  File "/home/eater/.local/lib/python3.6/site-packages/i3_instant_layout/main.py", line 39, in nuke_swallow_windows
    walk_tree(tree)
  File "/home/eater/.local/lib/python3.6/site-packages/i3_instant_layout/main.py", line 32, in walk_tree
    if con.ipc_data.get("swallows", False):
AttributeError: 'Con' object has no attribute 'ipc_data'

eater avatar Sep 15 '20 23:09 eater

What version of i3-py do you have installed? How did you install?

TyberiusPrime avatar Sep 16 '20 05:09 TyberiusPrime

According to pip,i3-py in /home/eater/.local/lib/python3.6/site-packages (0.6.4)

eater avatar Sep 16 '20 16:09 eater

I'm experiencing this exact same issue. Have you figured out any fix? Let me know if I can give any more info.

dieggywegz avatar Nov 16 '20 00:11 dieggywegz

Seeing the same here i3-py-0.6.4 and i3-gaps version 4.19-54-g4791b221

tott avatar Jan 21 '21 14:01 tott

Quick update - I had to get i3ipc to version 2.2.1 and things worked fine

tott avatar Jan 22 '21 14:01 tott

Ok, I've set a minimum version.

TyberiusPrime avatar Feb 22 '21 14:02 TyberiusPrime