<html><head><title></title></head><body><!-- rte-version 0.2 9947551637294008b77bce25eb683dac --><div class="rte-style-maintainer rte-pre-wrap" data-color="global-default" bbg-color="default" data-bb-font-size="medium"bbg-font-size="medium" style="white-space: pre-wrap; font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth";"style="white-space: pre-wrap; font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth"; color: rgb(0, 0, 0);">Yeah, I pulled nightly build and it worked. Thanks a lot.  Do you know if it is required to erase the database when update from previous nightly build? I had some weird 500 errors until I drop all db tables and rerun the migration.<br><br><div class="rte-style-maintainer" data-color="global-default"bbg-color="default" data-bb-font-size="medium" bbg-font-size="medium" style="font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth";"style="font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth"; color: rgb(0, 0, 0);"><div><div class="bbg-rte-fold-content" data-header="From: dkliban@redhat.com At: 10/16/19 12:29:21" data-digest="From: dkliban@redhat.com At: 10/16/19 12:29:21" style=""><div class="bbg-rte-fold-summary">From: dkliban@redhat.com At: 10/16/19 12:29:21</div>To: <a spellcheck="false" bbg-destination="mailto:bli111@bloomberg.net" href="mailto:bli111@bloomberg.net"> Bin Li (BLOOMBERG/ 120 PARK ) </a><br>Cc: <a spellcheck="false"bbg-destination="mailto:pulp-list@redhat.com" href="mailto:pulp-list@redhat.com"> pulp-list@redhat.com</a><br>Subject: Re: [Pulp-list] Pulp 3 Python client</div><br></div><div class="rte-internet-block-wrapper" style="background: white; color: black; font-family: Arial, "BB.Proportional"; font-size: small; white-space: normal;"><div class="rte-internet-block"><blockquote><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 spellcheck="false"bbg-destination="mailto:rte:bind" class="" href="mailto:dkliban@redhat.com" data-destination="mailto:rte:bind">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 spellcheck="false" bbg-destination="rte:bind" class=""href="https://pulp.plan.io/issues/5093" data-destination="rte:bind">https://pulp.plan.io/issues/5093</a></div><div>[1] <a spellcheck="false" bbg-destination="rte:bind" class=""href="https://pulp.plan.io/issues/5550" data-destination="rte:bind">https://pulp.plan.io/issues/5550</a></div><div>[2] <a spellcheck="false" bbg-destination="rte:bind" class=""href="https://www.redhat.com/archives/pulp-dev/2019-October/msg00031.html"data-destination="rte:bind">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 spellcheck="false"bbg-destination="mailto:rte:bind" class="" href="mailto:bli111@bloomberg.net" data-destination="mailto:rte:bind">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 style="font-size: small; font-family: "Courier New", Courier, "BB.FixedWidth"; white-space: pre-wrap;">I have tried to follow the blog <a spellcheck="false"bbg-destination="rte:bind" class="" href="https://pulpproject.org/2018/09/04/generate-pulp-3-python-client-using-swagger-codegen/"data-destination="rte:bind">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>_______________________________________________<br>Pulp-list mailing list<br><a spellcheck="false"bbg-destination="mailto:rte:bind" class="" href="mailto:Pulp-list@redhat.com" data-destination="mailto:rte:bind">Pulp-list@redhat.com</a><br><a spellcheck="false"bbg-destination="rte:bind" class="" href="https://www.redhat.com/mailman/listinfo/pulp-list"data-destination="rte:bind">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div></blockquote></div></blockquote><br></div></div></div></div></body></html>