AttributeError: 'NoneType' object has no attribute 'name' on line 748 of visu.py