IFC import: "str" Object has no attribute "name"

I discovered an old post that explain that problem.

But the image doesnt work because it is an old post.

How can I see it?

Thanks