AttributeError: 'module' object has no attribute 'connect'

208 views
Skip to first unread message

오현성

unread,
Sep 30, 2009, 8:09:41 AM9/30/09
to django-...@googlegroups.com
Hi there,

I'm trying out FeinCMS, but I'm having some trouble getting it set up on my computer. I'm new to Django, and have only limited experience with Python, so my errors are probably typical newbie errors, sorry. I get the following error when I run python manage.py syncdb:

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line 362, in execute_manager
    utility.execute()
  File "/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line 303, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 221, in execute
    self.validate()
  File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 249, in validate
    num_errors = get_validation_errors(s, app)
  File "/usr/lib/python2.5/site-packages/django/core/management/validation.py", line 28, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/usr/lib/python2.5/site-packages/django/db/models/loading.py", line 131, in get_app_errors
    self._populate()
  File "/usr/lib/python2.5/site-packages/django/db/models/loading.py", line 58, in _populate
    self.load_app(app_name, True)
  File "/usr/lib/python2.5/site-packages/django/db/models/loading.py", line 74, in load_app
    models = import_module('.models', app_name)
  File "/usr/lib/python2.5/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/usr/lib/python2.5/site-packages/FeinCMS-1.0.4-py2.5.egg/feincms/module/page/models.py", line 422, in <module>
    mptt.register(Page)
  File "/usr/lib/python2.5/site-packages/django_mptt-0.2.1-py2.5.egg/mptt/__init__.py", line 73, in register
    dispatcher.connect(pre_save, signal=model_signals.pre_save, sender=model)
AttributeError: 'module' object has no attribute 'connect'

I'm running Debian Lenny with Python 2.5, and installed Django, mptt and FeinCMS using easy_install. I've tried (generally) following through the documentation, though I realise this is still a work in progress. FeinCMS looks good though, from what I've seen.

Thank you in advance for any help on this.

Richard

Matthias Kestenholz

unread,
Sep 30, 2009, 8:29:19 AM9/30/09
to django-...@googlegroups.com
Hi,

Unfortunately there is no release of django-mptt which works with
current Django versions (1.0 and 1.1). You need a subversion checkout
of mptt.

Since django-mptt is not really maintained anymore (there are recent
commits, but the issue tracker hasn't gotten any love recently it
seems) I've started my own django-mptt fork on github. You can also
get mptt from there if you want; I haven't done much testing yet
though. It's the version I'm running myself, so it should work for
FeinCMS.


Thanks,
Matthias

FeinCMS Django CMS building toolkit: http://spinlock.ch/pub/feincms/

오현성

unread,
Sep 30, 2009, 8:31:26 AM9/30/09
to django-...@googlegroups.com
Thanks, I'll try that out!

Richard

2009/9/30 Matthias Kestenholz <matthias....@gmail.com>
Reply all
Reply to author
Forward
0 new messages