Closed gvelimir closed 2 years ago
Hi there,
I am sorry that the documentation is sorely lacking. In this case, the method add_person
is defined as:
def add_person(self, person=None, **kwargs)
so you either need to provide a Person
instance or use keyword arguments only. Try
user = model.add_person(name="User", description="A user of my software system.")
You may find it very helpful to browse the examples, such as the financial risk system.
This issue looks resolved from my perspective. Please feel free to re-open if this continues to be a problem for you.
I've been trying to integrate Structurizr into a Python script, but it seems it has some problems I could not figure out so far.
I created a dummy empty workspace on Structurizr and when trying to connect and add elements, it fails on adding a person.
Line that fails:
Error stack: