Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

Subclasses of BaseGeneralizationModel cannot have a Meta inner class that extends "object" #11

Open
gnarea opened this issue Oct 23, 2012 · 0 comments

Comments

@gnarea
Copy link
Contributor

gnarea commented Oct 23, 2012

See:

Traceback (most recent call last):
  File "/home/gustavo/.virtualenvs/twod-article/bin/ipython", line 66, in <module>
    loadapp("config:/home/gustavo/.virtualenvs/twod-article/config.ini", global_conf={'dry_run': "True"})
  File "/home/gustavo/.twod/pythons/2.7.2/buildout-eggs/PasteDeploy-1.3.3-py2.7.egg/paste/deploy/loadwsgi.py", line 204, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/home/gustavo/.twod/pythons/2.7.2/buildout-eggs/PasteDeploy-1.3.3-py2.7.egg/paste/deploy/loadwsgi.py", line 225, in loadobj
    return context.create()
  File "/home/gustavo/.twod/pythons/2.7.2/buildout-eggs/PasteDeploy-1.3.3-py2.7.egg/paste/deploy/loadwsgi.py", line 625, in create
    return self.object_type.invoke(self)
  File "/home/gustavo/.twod/pythons/2.7.2/buildout-eggs/PasteDeploy-1.3.3-py2.7.egg/paste/deploy/loadwsgi.py", line 110, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/home/gustavo/.twod/pythons/2.7.2/buildout-eggs/PasteDeploy-1.3.3-py2.7.egg/paste/deploy/util/fixtypeerror.py", line 57, in fix_call
    val = callable(*args, **kw)
  File "/home/gustavo/Software/2degrees/twod-article/twod/appsetup.py", line 62, in make_twod
    _load_startup_modules()
  File "/home/gustavo/Software/2degrees/twod-article/twod/appsetup.py", line 195, in _load_startup_modules
    import_module(module_name)
  File "/home/gustavo/.twod/pythons/2.7.2/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/gustavo/Software/2degrees/twod-article/twod/solr_signals.py", line 11, in <module>
    from twod.marketplace.models import ProviderCategory
  File "/home/gustavo/Software/2degrees/twod-article/twod/marketplace/models.py", line 54, in <module>
    from twod.profiles.models.core import Profile
  File "/home/gustavo/Software/2degrees/twod-article/twod/profiles/models/__init__.py", line 2, in <module>
    from twod.profiles.models.core import *
  File "/home/gustavo/Software/2degrees/twod-article/twod/profiles/models/core.py", line 31, in <module>
    from twod.networks.models import MEMBERSHIP_TYPES
  File "/home/gustavo/Software/2degrees/twod-article/twod/networks/models/__init__.py", line 1, in <module>
    from twod.networks.models.core import *  # pylint: disable=W0401
  File "/home/gustavo/Software/2degrees/twod-article/twod/networks/models/core.py", line 28, in <module>
    from twod.resources.models import Resource
  File "/home/gustavo/Software/2degrees/twod-article/twod/resources/models/__init__.py", line 2, in <module>
    from twod.resources.models.articles import *  # pylint: disable=W0401
  File "/home/gustavo/Software/2degrees/twod-article/twod/resources/models/articles.py", line 11, in <module>
    class Article(Resource):
  File "/home/gustavo/.twod/pythons/2.7.2/buildout-eggs/djeneralize-1.1rc1-py2.7.egg/djeneralize/models.py", line 54, in __new__
    specialization = meta.__dict__.pop('specialization', None)
AttributeError: 'dictproxy' object has no attribute 'pop'
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant