<div dir="ltr">For anybody else with this problem. I've fixed this by upgrading django.<div><br></div><div>However I'm still having an issue sync'ing the db locally. For some reason the sync process doesn't create the peeringdb tables in my database.</div><div><br></div><div>[ ~/.peeringdb] # peeringdb sync<br></div><div>...</div><div>django.db.utils.ProgrammingError: (1146, "Table 'peeringdb.peeringdb_organization' doesn't exist")<br></div><div><br></div><div>I only have these tables</div><div><div>mysql> use peeringdb</div><div>Reading table information for completion of table and column names</div><div>You can turn off this feature to get a quicker startup with -A</div><div><br></div><div>Database changed</div><div>mysql> show tables;</div><div>+----------------------------+</div><div>| Tables_in_peeringdb |</div><div>+----------------------------+</div><div>| auth_group |</div><div>| auth_group_permissions |</div><div>| auth_permission |</div><div>| auth_user |</div><div>| auth_user_groups |</div><div>| auth_user_user_permissions |</div><div>| django_admin_log |</div><div>| django_content_type |</div><div>| django_migrations |</div><div>| django_session |</div><div>+----------------------------+</div><div>10 rows in set (0.00 sec)</div></div><div><br></div><div><br></div><div>The sync process is supposed to create the required tables, right? I don't recall creating these manually on my development machine.</div><div><br></div><div><br></div><div>Best,</div><div>-Jeroen-</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 7, 2016 at 11:38 AM, Jeroen Valcke <span dir="ltr"><<a href="mailto:jvalcke@opendns.com" target="_blank">jvalcke@opendns.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I'm installing the peeringdb python library on another system, and ran into a django issue.</div><div>Any ideas on how to fix this?</div><div><br></div><div><div># peeringdb sync</div><div>Traceback (most recent call last):</div><div> File "/usr/local/bin/peeringdb", line 9, in <module></div><div> load_entry_point('peeringdb==0.4.2', 'console_scripts', 'peeringdb')()</div><div> File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in __call__</div><div> return self.main(*args, **kwargs)</div><div> File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main</div><div> rv = self.invoke(ctx)</div><div> File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke</div><div> return _process_result(sub_ctx.command.invoke(sub_ctx))</div><div> File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke</div><div> return ctx.invoke(self.callback, **ctx.params)</div><div> File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke</div><div> return callback(*args, **kwargs)</div><div> File "/usr/local/lib/python2.7/dist-packages/peeringdb/cli.py", line 124, in sync</div><div> db = LocalDB(cfg)</div><div> File "/usr/local/lib/python2.7/dist-packages/peeringdb/localdb.py", line 90, in __init__</div><div> django.setup()</div><div> File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 15, in setup</div><div> from django.utils.log import configure_logging</div><div> File "/usr/local/lib/python2.7/dist-packages/django/utils/log.py", line 16, in <module></div><div> from django.views.debug import ExceptionReporter, get_exception_reporter_filter</div><div> File "/usr/local/lib/python2.7/dist-packages/django/views/debug.py", line 9, in <module></div><div> from django.core.urlresolvers import Resolver404, resolve</div><div> File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 17, in <module></div><div> from django.http import Http404</div><div> File "/usr/local/lib/python2.7/dist-packages/django/http/__init__.py", line 4, in <module></div><div> from django.http.response import (</div><div> File "/usr/local/lib/python2.7/dist-packages/django/http/response.py", line 13, in <module></div><div> from django.core.serializers.json import DjangoJSONEncoder</div><div> File "/usr/local/lib/python2.7/dist-packages/django/core/serializers/__init__.py", line 24, in <module></div><div> from django.core.serializers.base import SerializerDoesNotExist</div><div> File "/usr/local/lib/python2.7/dist-packages/django/core/serializers/base.py", line 6, in <module></div><div> from django.db import models</div><div> File "/usr/local/lib/python2.7/dist-packages/django/db/models/__init__.py", line 6, in <module></div><div> from django.db.models.query import Q, QuerySet, Prefetch # NOQA</div><div> File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 16, in <module></div><div> from django.db.models import sql</div><div> File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/__init__.py", line 2, in <module></div><div> from django.db.models.sql.subqueries import * # NOQA</div><div> File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/subqueries.py", line 9, in <module></div><div> from django.db.models.sql.query import Query</div><div> File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py", line 17, in <module></div><div> from django.db.models.aggregates import Count</div><div> File "/usr/local/lib/python2.7/dist-packages/django/db/models/aggregates.py", line 5, in <module></div><div> from django.db.models.expressions import Func, Star</div><div> File "/usr/local/lib/python2.7/dist-packages/django/db/models/expressions.py", line 7, in <module></div><div> from django.db.models import fields</div><div> File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py", line 19, in <module></div><div> from django import forms</div><div> File "/usr/local/lib/python2.7/dist-packages/django/forms/__init__.py", line 6, in <module></div><div> from django.forms.fields import * # NOQA</div><div> File "/usr/local/lib/python2.7/dist-packages/django/forms/fields.py", line 57, in <module></div><div> class Field(six.with_metaclass(RenameFieldMethods, object)):</div><div> File "/usr/local/lib/python2.7/dist-packages/django/utils/six.py", line 778, in __new__</div><div> return meta(name, bases, d)</div><div> File "/usr/local/lib/python2.7/dist-packages/django/utils/deprecation.py", line 53, in __new__</div><div> for base in inspect.getmro(new_class):</div><div>AttributeError: 'module' object has no attribute 'getmro'</div></div></div>
</blockquote></div><br></div>