'JavaMember' object has no attribute

There is an other thread with this exception.

But here the result of selected_elem.get_deployed_physical_components() should be a list of Python objects… so it should not be a JavaMember…

Can you try:

print(type(dpc))
print(str(dpc))
print(isinstance(dpc, PhysicalComponent))

To have a better idea of what is dpc.