Re: warning: Not importing directory
On Thu, Jan 7, 2010 at 10:41 AM, Delacroy Systems
<webadmin@delacroy.co.za> wrote:
> If I create an __init__.py, I get this:
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
> File "manage.py", line 2, in <module>
> from django.core.management import execute_manager
> File "c:\python25\Lib\site-packages\django\core\management
> \__init__.py", line
> 3, in <module>
> from optparse import OptionParser, NO_DEFAULT
> File "C:\Python25\lib\optparse.py", line 404, in <module>
> _builtin_cvt = { "int" : (_parse_int, _("integer")),
> File "C:\Python25\lib\gettext.py", line 566, in gettext
> return dgettext(_current_domain, message)
> File "C:\Python25\lib\gettext.py", line 530, in dgettext
> codeset=_localecodesets.get(domain))
> File "C:\Python25\lib\gettext.py", line 465, in translation
> mofiles = find(domain, localedir, languages, all=1)
> File "C:\Python25\lib\gettext.py", line 437, in find
> for nelang in _expand_lang(lang):
> File "C:\Python25\lib\gettext.py", line 131, in _expand_lang
> from locale import normalize
> ImportError: cannot import name normalize
>
Do you have some package which is clobbering the python supplied
'locale' package? Eg, a folder called 'locale' on your python path?
locale.normalize has been part of python since 2.0 according to the docs.
Cheers
Tom

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home