I just deleted those .pyc files. How do I compile it? I thought python is interpreted language.
On Jan 23, 8:03 am, "mojo" <[EMAIL PROTECTED]> wrote: > I had this problem once. > > Don't know the cause of it, but deleting and recompilation .pyc files in > Python24\Lib\email\ helped. > > -----Original Message----- > From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] > > On Behalf Of johnny > Sent: Monday, January 22, 2007 9:25 PM > To: Django users > Subject: No module named MIMEText > > when I run python manage.py runserver and go tohttp://127.0.0.1:8000/admin/ > I get an error: > > ImproperlyConfigured: Error importing middleware > django.middleware.common: "No module named MIMEText" > > Traceback (most recent call last): > > File > "H:\xampp\python\lib\site-packages\django\core\servers\basehttp.py", > line 272, in run > self.result = application(self.environ, self.start_response) > > File > "H:\xampp\python\lib\site-packages\django\core\servers\basehttp.py", > line 614, in __call__ > return self.application(environ, start_response) > > File > "H:\xampp\python\lib\site-packages\django\core\handlers\wsgi.py", line > 184, in __call__ > self.load_middleware() > > File > "H:\xampp\python\lib\site-packages\django\core\handlers\base.py", line > 31, in load_middleware > raise exceptions.ImproperlyConfigured, 'Error importing middleware > %s: "%s"' % (mw_module, e) > > ImproperlyConfigured: Error importing middleware > django.middleware.common: "No module named MIMEText" > > I am using ActiveState Python 2.4. I have MIMEText.py in > H:\xampp\python\Lib\email. Someone mentioned, it's possible that > include path isn't in your pythonpath. I am not sure what that means, > I already have python in my path. > > In common.py of django > (H:\xampp\python\Lib\site-packages\django\middleware\common.py), there > is a import statement: > from email.MIMEText import MIMEText. > > Any help is appreciated. Thank You. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---