AttributeError: 'str' object has no attribute 'parameters' ,