<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 36, 81);">
Hi Stefan </div>
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 36, 81);">
<br>
</div>
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 36, 81);">
I had 1.1.0 after upgrading I get this error:</div>
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 36, 81);">
<br>
</div>
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 36, 81);">
<span><br>
</span>
<div>pdb@pdb2:~$ pip freeze | grep django-peeringdb<br>
</div>
<div>django-peeringdb==2.0.0<br>
</div>
<div>pdb@pdb2:~$ peeringdb sync<br>
</div>
<div>Traceback (most recent call last):<br>
</div>
<div>  File "/usr/local/bin/peeringdb", line 11, in <module><br>
</div>
<div>    sys.exit(main())<br>
</div>
<div>  File "/home/pdb/.local/lib/python2.7/site-packages/peeringdb/cli.py", line 62, in main<br>
</div>
<div>    return handler(config=cfg, **vars(options))<br>
</div>
<div>  File "/home/pdb/.local/lib/python2.7/site-packages/peeringdb/commands.py", line 20, in _wrapped<br>
</div>
<div>    r = func(*a, **k)<br>
</div>
<div>  File "/home/pdb/.local/lib/python2.7/site-packages/peeringdb/commands.py", line 212, in handle<br>
</div>
<div>    client = Client(config, **kwargs)<br>
</div>
<div>  File "/home/pdb/.local/lib/python2.7/site-packages/peeringdb/client.py", line 44, in __init__<br>
</div>
<div>    peeringdb.initialize_backend(orm_name, **orm_config)<br>
</div>
<div>  File "/home/pdb/.local/lib/python2.7/site-packages/peeringdb/__init__.py", line 84, in initialize_backend<br>
</div>
<div>    B = supportmod.load_backend(**kwargs)<br>
</div>
<div>  File "/home/pdb/.local/lib/python2.7/site-packages/django_peeringdb/client_adaptor/load.py", line 38, in load_backend<br>
</div>
<div>    configure(**settings)<br>
</div>
<div>  File "/home/pdb/.local/lib/python2.7/site-packages/django_peeringdb/client_adaptor/setup.py", line 26, in configure<br>
</div>
<div>    setup()<br>
</div>
<div>  File "/home/pdb/.local/lib/python2.7/site-packages/django/__init__.py", line 27, in setup<br>
</div>
<div>    apps.populate(settings.INSTALLED_APPS)<br>
</div>
<div>  File "/home/pdb/.local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate<br>
</div>
<div>    app_config.import_models()<br>
</div>
<div>  File "/home/pdb/.local/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models<br>
</div>
<div>    self.models_module = import_module(models_module_name)<br>
</div>
<div>  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module<br>
</div>
<div>    __import__(name)<br>
</div>
<div>  File "/home/pdb/.local/lib/python2.7/site-packages/django_peeringdb/models/__init__.py", line 4, in <module><br>
</div>
<div>    from django_peeringdb.models.abstract import * # noqa<br>
</div>
<div>  File "/home/pdb/.local/lib/python2.7/site-packages/django_peeringdb/models/abstract.py", line 36, in <module><br>
</div>
<div>    class AddressModel(models.Model):<br>
</div>
<div>  File "/home/pdb/.local/lib/python2.7/site-packages/django/db/models/base.py", line 162, in __new__<br>
</div>
<div>    new_class.add_to_class(obj_name, obj)<br>
</div>
<div>  File "/home/pdb/.local/lib/python2.7/site-packages/django/db/models/base.py", line 325, in add_to_class<br>
</div>
<div>    value.contribute_to_class(cls, name)<br>
</div>
<div>  File "/home/pdb/.local/lib/python2.7/site-packages/django_countries/fields.py", line 300, in contribute_to_class<br>
</div>
<div>    super().contribute_to_class(cls, name)<br>
</div>
<div>TypeError: Error when calling the metaclass bases<br>
</div>
<div>    super() takes at least 1 argument (0 given)<br>
</div>
<span>pdb@pdb2:~$</span><br>
</div>
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 36, 81);">
<span><br>
</span></div>
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 36, 81);">
<span>Best regards</span></div>
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 36, 81);">
<span>Jan</span></div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Pdb-tech <pdb-tech-bounces@lists.peeringdb.com> im Auftrag von Stefan Pratter <stefan@20c.com><br>
<b>Gesendet:</b> Freitag, 22. Mai 2020 15:18<br>
<b>An:</b> pdb-tech@lists.peeringdb.com <pdb-tech@lists.peeringdb.com><br>
<b>Betreff:</b> Re: [PDB Tech] Peeringdb sync problem</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Validation errors are often (not always) caused by the server's
<br>
django-peeringdb version being ahead of your locally installed version. <br>
In other words the server treats something as valid, while the client <br>
doesn't.<br>
<br>
What's the output of<br>
<br>
`pip freeze | grep django-peeringdb`<br>
<br>
and if its < 2.0<br>
<br>
can you try updating to 2.0<br>
<br>
`pip install django-peeringdb==2.0`<br>
<br>
thanks,<br>
Stefan<br>
<br>
On 22/05/2020 13.18, Jan.Boogman@swisscom.com wrote:<br>
> Hi Arnold,<br>
> <br>
> indeed, seems to be the same issue<br>
> <br>
> Cheers<br>
> Jan<br>
> <br>
> <br>
> ------------------------------------------------------------------------<br>
> *Von:* Arnold Nipper<br>
> *Gesendet:* Freitag, 22. Mai 2020 12:09<br>
> *Bis:* Boogman Jan, INI-ONE-WSN-EIS-SNS; pdb-tech@lists.peeringdb.com<br>
> *Betreff:* Re: [PDB Tech] Peeringdb sync problem<br>
> <br>
> Hi Jan<br>
> <br>
> On 22.05.2020 10:20, Jan.Boogman@swisscom.com wrote:<br>
> <br>
>> every now and then I stumble over syncing problems like this, which seem<br>
>> to be caused by bad data in the db:<br>
>> <br>
> <br>
> looks like <a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpeeringdb%2Fpeeringdb-py%2Fissues%2F38&amp;data=02%7C01%7CJan.Boogman%40swisscom.com%7Ca42cf182e3f2417f0f3108d7fe52b005%7C364e5b87c1c7420d9beec35d19b557a1%7C1%7C0%7C637257503400848462&amp;sdata=qbz9tTDN7rNZuo87dNJ9MbFsRNhcTFK9lS%2FB7Ga2%2BzQ%3D&amp;reserved=0">
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpeeringdb%2Fpeeringdb-py%2Fissues%2F38&amp;data=02%7C01%7CJan.Boogman%40swisscom.com%7Ca42cf182e3f2417f0f3108d7fe52b005%7C364e5b87c1c7420d9beec35d19b557a1%7C1%7C0%7C637257503400848462&amp;sdata=qbz9tTDN7rNZuo87dNJ9MbFsRNhcTFK9lS%2FB7Ga2%2BzQ%3D&amp;reserved=0</a>
 to me.<br>
> Could you please check?<br>
> <br>
> <br>
> Cheers<br>
> Arnold<br>
> -- <br>
> Keep calm, keep distance, keep connected!<br>
> <br>
> Arnold Nipper<br>
> email: arnold@nipper.de<br>
> mobile: +49 172 2650958<br>
> <br>
> <br>
> _______________________________________________<br>
> Pdb-tech mailing list<br>
> Pdb-tech@lists.peeringdb.com<br>
> <a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.peeringdb.com%2Fcgi-bin%2Fmailman%2Flistinfo%2Fpdb-tech&amp;data=02%7C01%7CJan.Boogman%40swisscom.com%7Ca42cf182e3f2417f0f3108d7fe52b005%7C364e5b87c1c7420d9beec35d19b557a1%7C1%7C0%7C637257503400848462&amp;sdata=gffl5%2Box96RrDqp78giQx5Xf6%2FZo7y4Y7T1Snf%2FS2zU%3D&amp;reserved=0">
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.peeringdb.com%2Fcgi-bin%2Fmailman%2Flistinfo%2Fpdb-tech&amp;data=02%7C01%7CJan.Boogman%40swisscom.com%7Ca42cf182e3f2417f0f3108d7fe52b005%7C364e5b87c1c7420d9beec35d19b557a1%7C1%7C0%7C637257503400848462&amp;sdata=gffl5%2Box96RrDqp78giQx5Xf6%2FZo7y4Y7T1Snf%2FS2zU%3D&amp;reserved=0</a><br>
> <br>
_______________________________________________<br>
Pdb-tech mailing list<br>
Pdb-tech@lists.peeringdb.com<br>
<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.peeringdb.com%2Fcgi-bin%2Fmailman%2Flistinfo%2Fpdb-tech&amp;data=02%7C01%7CJan.Boogman%40swisscom.com%7Ca42cf182e3f2417f0f3108d7fe52b005%7C364e5b87c1c7420d9beec35d19b557a1%7C1%7C0%7C637257503400848462&amp;sdata=gffl5%2Box96RrDqp78giQx5Xf6%2FZo7y4Y7T1Snf%2FS2zU%3D&amp;reserved=0">https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.peeringdb.com%2Fcgi-bin%2Fmailman%2Flistinfo%2Fpdb-tech&amp;data=02%7C01%7CJan.Boogman%40swisscom.com%7Ca42cf182e3f2417f0f3108d7fe52b005%7C364e5b87c1c7420d9beec35d19b557a1%7C1%7C0%7C637257503400848462&amp;sdata=gffl5%2Box96RrDqp78giQx5Xf6%2FZo7y4Y7T1Snf%2FS2zU%3D&amp;reserved=0</a><br>
</div>
</span></font></div>
</body>
</html>