<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);">
yes, this is a possible. </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'll upgrade to a new python and see if it helps</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);">
Thanks</div>
<div style="font-family: "Trebuchet MS", Trebuchet, sans-serif; font-size: 10pt; color: rgb(0, 36, 81);">
Jan</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> Stefan Pratter <stefan@20c.com><br>
<b>Gesendet:</b> Freitag, 22. Mai 2020 15:37<br>
<b>An:</b> Boogman Jan, INI-ONE-WSN-EIS-SNS <Jan.Boogman@swisscom.com>; pdb-tech@lists.peeringdb.com <pdb-tech@lists.peeringdb.com><br>
<b>Betreff:</b> Re: AW: [PDB Tech] Peeringdb sync problem</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Python2.7 support was dropped with version 2.0<br>
<br>
I believe officially supported versions are now 3.5, 3.6, 3.7 and 3.8<br>
<br>
Is upgrading to python3 a possibility on your end?<br>
<br>
Stefan<br>
<br>
<br>
On 22/05/2020 16.32, Jan.Boogman@swisscom.com wrote:<br>
> Hi Stefan<br>
> <br>
> I had 1.1.0 after upgrading I get this error:<br>
> <br>
> <br>
> pdb@pdb2:~$ pip freeze | grep django-peeringdb<br>
> django-peeringdb==2.0.0<br>
> pdb@pdb2:~$ peeringdb sync<br>
> Traceback (most recent call last):<br>
>    File "/usr/local/bin/peeringdb", line 11, in <module><br>
>      sys.exit(main())<br>
>    File "/home/pdb/.local/lib/python2.7/site-packages/peeringdb/cli.py", <br>
> line 62, in main<br>
>      return handler(config=cfg, **vars(options))<br>
>    File <br>
> "/home/pdb/.local/lib/python2.7/site-packages/peeringdb/commands.py", <br>
> line 20, in _wrapped<br>
>      r = func(*a, **k)<br>
>    File <br>
> "/home/pdb/.local/lib/python2.7/site-packages/peeringdb/commands.py", <br>
> line 212, in handle<br>
>      client = Client(config, **kwargs)<br>
>    File <br>
> "/home/pdb/.local/lib/python2.7/site-packages/peeringdb/client.py", line <br>
> 44, in __init__<br>
>      peeringdb.initialize_backend(orm_name, **orm_config)<br>
>    File <br>
> "/home/pdb/.local/lib/python2.7/site-packages/peeringdb/__init__.py", <br>
> line 84, in initialize_backend<br>
>      B = supportmod.load_backend(**kwargs)<br>
>    File <br>
> "/home/pdb/.local/lib/python2.7/site-packages/django_peeringdb/client_adaptor/load.py",
<br>
> line 38, in load_backend<br>
>      configure(**settings)<br>
>    File <br>
> "/home/pdb/.local/lib/python2.7/site-packages/django_peeringdb/client_adaptor/setup.py",
<br>
> line 26, in configure<br>
>      setup()<br>
>    File <br>
> "/home/pdb/.local/lib/python2.7/site-packages/django/__init__.py", line <br>
> 27, in setup<br>
>      apps.populate(settings.INSTALLED_APPS)<br>
>    File <br>
> "/home/pdb/.local/lib/python2.7/site-packages/django/apps/registry.py", <br>
> line 108, in populate<br>
>      app_config.import_models()<br>
>    File <br>
> "/home/pdb/.local/lib/python2.7/site-packages/django/apps/config.py", <br>
> line 202, in import_models<br>
>      self.models_module = import_module(models_module_name)<br>
>    File "/usr/lib/python2.7/importlib/__init__.py", line 37, in <br>
> import_module<br>
>      __import__(name)<br>
>    File <br>
> "/home/pdb/.local/lib/python2.7/site-packages/django_peeringdb/models/__init__.py",
<br>
> line 4, in <module><br>
>      from django_peeringdb.models.abstract import * # noqa<br>
>    File <br>
> "/home/pdb/.local/lib/python2.7/site-packages/django_peeringdb/models/abstract.py",
<br>
> line 36, in <module><br>
>      class AddressModel(models.Model):<br>
>    File <br>
> "/home/pdb/.local/lib/python2.7/site-packages/django/db/models/base.py", <br>
> line 162, in __new__<br>
>      new_class.add_to_class(obj_name, obj)<br>
>    File <br>
> "/home/pdb/.local/lib/python2.7/site-packages/django/db/models/base.py", <br>
> line 325, in add_to_class<br>
>      value.contribute_to_class(cls, name)<br>
>    File <br>
> "/home/pdb/.local/lib/python2.7/site-packages/django_countries/fields.py", <br>
> line 300, in contribute_to_class<br>
>      super().contribute_to_class(cls, name)<br>
> TypeError: Error when calling the metaclass bases<br>
>      super() takes at least 1 argument (0 given)<br>
> pdb@pdb2:~$<br>
> <br>
> Best regards<br>
> Jan<br>
> ------------------------------------------------------------------------<br>
> *Von:* Pdb-tech <pdb-tech-bounces@lists.peeringdb.com> im Auftrag von <br>
> Stefan Pratter <stefan@20c.com><br>
> *Gesendet:* Freitag, 22. Mai 2020 15:18<br>
> *An:* pdb-tech@lists.peeringdb.com <pdb-tech@lists.peeringdb.com><br>
> *Betreff:* Re: [PDB Tech] Peeringdb sync problem<br>
> 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%7C3638f1a656c64f60fa0308d7fe553fea%7C364e5b87c1c7420d9beec35d19b557a1%7C1%7C0%7C637257514405318305&amp;sdata=%2FCUuf0%2Bt2VgDVpH8ZJ%2FHZuIsx2gqRqfti9r%2FT7IKQ3w%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%7C3638f1a656c64f60fa0308d7fe553fea%7C364e5b87c1c7420d9beec35d19b557a1%7C1%7C0%7C637257514405318305&amp;sdata=%2FCUuf0%2Bt2VgDVpH8ZJ%2FHZuIsx2gqRqfti9r%2FT7IKQ3w%3D&amp;reserved=0</a>
<br>
> 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%7C3638f1a656c64f60fa0308d7fe553fea%7C364e5b87c1c7420d9beec35d19b557a1%7C1%7C0%7C637257514405328235&amp;sdata=7aN4bdzcc2%2BOqLirgwkpJz9fKrIq6eJ2ZKzQM1uwjbk%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%7C3638f1a656c64f60fa0308d7fe553fea%7C364e5b87c1c7420d9beec35d19b557a1%7C1%7C0%7C637257514405328235&amp;sdata=7aN4bdzcc2%2BOqLirgwkpJz9fKrIq6eJ2ZKzQM1uwjbk%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%7C3638f1a656c64f60fa0308d7fe553fea%7C364e5b87c1c7420d9beec35d19b557a1%7C1%7C0%7C637257514405328235&amp;sdata=7aN4bdzcc2%2BOqLirgwkpJz9fKrIq6eJ2ZKzQM1uwjbk%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%7C3638f1a656c64f60fa0308d7fe553fea%7C364e5b87c1c7420d9beec35d19b557a1%7C1%7C0%7C637257514405328235&amp;sdata=7aN4bdzcc2%2BOqLirgwkpJz9fKrIq6eJ2ZKzQM1uwjbk%3D&amp;reserved=0</a><br>
</div>
</span></font></div>
</body>
</html>