<div dir="ltr">I've just confirmed that the latest pulp-rpm-client package on PyPI no longer has this problem. However, this latest package only works with the code on master branch. A new pulp_rpm package should be published to PyPI soon. <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 8, 2019 at 4:29 PM Dennis Kliban <<a href="mailto:dkliban@redhat.com">dkliban@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>This is a known problem with the OpenAPI schema[0]. Once the PRs for is 5550[1] are merged, a new version of the client will be published to PyPI and this problem will be resolved. I believe that should take place on October 9th[2].<br></div><div><br></div><div>[0] <a href="https://pulp.plan.io/issues/5093" target="_blank">https://pulp.plan.io/issues/5093</a></div><div>[1] <a href="https://pulp.plan.io/issues/5550" target="_blank">https://pulp.plan.io/issues/5550</a></div><div>[2] <a href="https://www.redhat.com/archives/pulp-dev/2019-October/msg00031.html" target="_blank">https://www.redhat.com/archives/pulp-dev/2019-October/msg00031.html</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 8, 2019 at 2:13 PM Bin Li (BLOOMBERG/ 120 PARK) <<a href="mailto:bli111@bloomberg.net" target="_blank">bli111@bloomberg.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="white-space:pre-wrap;font-size:small;font-family:"Courier New",Courier,"BB.FixedWidth"">I have tried to follow the blog <a href="https://pulpproject.org/2018/09/04/generate-pulp-3-python-client-using-swagger-codegen/" target="_blank">https://pulpproject.org/2018/09/04/generate-pulp-3-python-client-using-swagger-codegen/</a> and got a syntax error.<div>  File "/opt/utils/venv/pulp/3.6.5/lib64/python3.6/site-packages/pulp3_client/models/update_record.py", line 79</div><div>    def __init__(self, href=None, created=None, type=None, id=None, updated_date=None, description=None, issued_date=None, fromstr=None, status=None, title=None, summary=None, version=None, type=None, severity=None, solution=None, release=None, rights=None, pushcount=None, pkglist=None, references=None):  # noqa: E501</div><div>    ^</div><div>SyntaxError: duplicate argument 'type' in function definition</div><div><br></div><div>Type is declared twice in the __init__. There is a duplicate key 'type' in attribute_map models/update_record.py.</div><div><br></div><div>    attribute_map = {</div><div>        'href': '_href',</div><div>        'created': '_created',</div><div>        'type': '_type',</div><div>        'id': 'id',</div><div>        'updated_date': 'updated_date',</div><div>        'description': 'description',</div><div>        'issued_date': 'issued_date',</div><div>        'fromstr': 'fromstr',</div><div>        'status': 'status',</div><div>        'title': 'title',</div><div>        'summary': 'summary',</div><div>        'version': 'version',</div><div>        'type': 'type',</div><div>        'severity': 'severity',</div><div>        'solution': 'solution',</div><div>        'release': 'release',</div><div>        'rights': 'rights',</div><div>        'pushcount': 'pushcount',</div><div>        'pkglist': 'pkglist',</div><div>        'references': 'references'</div><div>    }</div><div><br></div><div>Anyone knows how this can be fixed?</div><div><br></div><div>Thanks</div><div><br></div></div></div>_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div>
</blockquote></div>