Hi Dave.  I'm not sure how the .pyc file got corrupted, but from the error
it sounds like it did.  Perhaps you're running with a mix of Python
versions?  But I'd remove the .pyc file referenced by the error and try
again.
  -- Scott

On Wed, Sep 10, 2008 at 1:46 PM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:

>
> I have looked everywhere. Tickets, here and in the source. I am
> getting a strange Bad Magic Number error when I first install
> contrib.comments. The traceback is below. Any ideas?
>
> Environment:
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/admin/page/content/
> Django Version: 1.0-final-SVN-8983
> Python Version: 2.5.2
> Installed Applications:
> ['django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.sites',
>  'django.contrib.admin',
>  'django.contrib.comments',
>  'django.contrib.formtools',
>  'django.contrib.humanize',
>  'django.contrib.markup',
>  'django.contrib.redirects',
>  'django.contrib.sitemaps',
>  'django.contrib.syndication',
>  'bluechannel.media',
>  'bluechannel.layout',
>  'bluechannel.accounts',
>  'bluechannel.page',
>  'bluechannel.gathering',
>  'bluechannel.blog',
>  'bluechannel.demo',
>  'bluechannel.utils',
>  'tagging',
>  'template_utils',
>  'comment_utils']
> Installed Middleware:
> ('django.middleware.common.CommonMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>  'django.middleware.doc.XViewMiddleware')
>
>
> Traceback:
> File "/opt/local/lib/python2.5/site-packages/django/core/handlers/
> base.py" in get_response
>  86.                 response = callback(request, *callback_args,
> **callback_kwargs)
> File "/opt/local/lib/python2.5/site-packages/django/contrib/admin/
> sites.py" in root
>  158.                 return self.model_page(request, *url.split('/',
> 2))
> File "/opt/local/lib/python2.5/site-packages/django/views/decorators/
> cache.py" in _wrapped_view_func
>  44.         response = view_func(request, *args, **kwargs)
> File "/opt/local/lib/python2.5/site-packages/django/contrib/admin/
> sites.py" in model_page
>  177.         return admin_obj(request, rest_of_url)
> File "/opt/local/lib/python2.5/site-packages/django/contrib/admin/
> options.py" in __call__
>  189.             return self.changelist_view(request)
> File "/opt/local/lib/python2.5/site-packages/django/contrib/admin/
> options.py" in changelist_view
>  662.         ], context,
> context_instance=template.RequestContext(request))
> File "/opt/local/lib/python2.5/site-packages/django/shortcuts/
> __init__.py" in render_to_response
>  18.     return HttpResponse(loader.render_to_string(*args,
> **kwargs), **httpresponse_kwargs)
> File "/opt/local/lib/python2.5/site-packages/django/template/
> loader.py" in render_to_string
>  107.     return t.render(context_instance)
> File "/opt/local/lib/python2.5/site-packages/django/template/
> __init__.py" in render
>  176.         return self.nodelist.render(context)
> File "/opt/local/lib/python2.5/site-packages/django/template/
> __init__.py" in render
>  768.                 bits.append(self.render_node(node, context))
> File "/opt/local/lib/python2.5/site-packages/django/template/
> __init__.py" in render_node
>  781.         return node.render(context)
> File "/opt/local/lib/python2.5/site-packages/django/template/
> loader_tags.py" in render
>  97.         return compiled_parent.render(context)
> File "/opt/local/lib/python2.5/site-packages/django/template/
> __init__.py" in render
>  176.         return self.nodelist.render(context)
> File "/opt/local/lib/python2.5/site-packages/django/template/
> __init__.py" in render
>  768.                 bits.append(self.render_node(node, context))
> File "/opt/local/lib/python2.5/site-packages/django/template/
> __init__.py" in render_node
>  781.         return node.render(context)
> File "/opt/local/lib/python2.5/site-packages/django/template/
> loader_tags.py" in render
>  97.         return compiled_parent.render(context)
> File "/opt/local/lib/python2.5/site-packages/django/template/
> __init__.py" in render
>  176.         return self.nodelist.render(context)
> File "/opt/local/lib/python2.5/site-packages/django/template/
> __init__.py" in render
>  768.                 bits.append(self.render_node(node, context))
> File "/opt/local/lib/python2.5/site-packages/django/template/
> __init__.py" in render_node
>  781.         return node.render(context)
> File "/opt/local/lib/python2.5/site-packages/django/template/
> defaulttags.py" in render
>  245.                     return self.nodelist_true.render(context)
> File "/opt/local/lib/python2.5/site-packages/django/template/
> __init__.py" in render
>  768.                 bits.append(self.render_node(node, context))
> File "/opt/local/lib/python2.5/site-packages/django/template/
> __init__.py" in render_node
>  781.         return node.render(context)
> File "/opt/local/lib/python2.5/site-packages/django/template/
> defaulttags.py" in render
>  255.             return self.nodelist_true.render(context)
> File "/opt/local/lib/python2.5/site-packages/django/template/
> __init__.py" in render
>  768.                 bits.append(self.render_node(node, context))
> File "/opt/local/lib/python2.5/site-packages/django/template/
> __init__.py" in render_node
>  781.         return node.render(context)
> File "/opt/local/lib/python2.5/site-packages/django/template/
> loader_tags.py" in render
>  24.         result = self.nodelist.render(context)
> File "/opt/local/lib/python2.5/site-packages/django/template/
> __init__.py" in render
>  768.                 bits.append(self.render_node(node, context))
> File "/opt/local/lib/python2.5/site-packages/django/template/
> __init__.py" in render_node
>  781.         return node.render(context)
> File "/opt/local/lib/python2.5/site-packages/django/template/
> defaulttags.py" in render
>  373.             url = reverse(self.view_name, args=args,
> kwargs=kwargs)
> File "/opt/local/lib/python2.5/site-packages/django/core/
> urlresolvers.py" in reverse
>  252.             *args, **kwargs)))
> File "/opt/local/lib/python2.5/site-packages/django/core/
> urlresolvers.py" in reverse
>  226.         possibilities, pattern =
> self.reverse_dict.get(lookup_view, [(), ()])
> File "/opt/local/lib/python2.5/site-packages/django/core/
> urlresolvers.py" in _get_reverse_dict
>  160.                     for name, (matches, pat) in
> pattern.reverse_dict.iteritems():
> File "/opt/local/lib/python2.5/site-packages/django/core/
> urlresolvers.py" in _get_reverse_dict
>  153.         if not self._reverse_dict and
> hasattr(self.urlconf_module, 'urlpatterns'):
> File "/opt/local/lib/python2.5/site-packages/django/core/
> urlresolvers.py" in _get_urlconf_module
>  197.             self._urlconf_module =
> __import__(self.urlconf_name, {}, {}, [''])
>
> Exception Type: ImportError at /admin/page/content/
> Exception Value: Bad magic number in /opt/local/lib/python2.5/site-
> packages/django/contrib/comments/urls/__init__.pyc
>
> >
>


-- 
http://scott.andstuff.org/ | http://truthadorned.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to