If "make clean" makes the problem go away, it's usually because there
were old .pyc files with incompatible byte code. We don't change the
.pyc magic number for each change to the compiler.
--Guido
On 6/5/07, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On Ubuntu linux, when I try run make in the py3k-struni branch I get
> an weird error about split(). However, I don't get this error when I
> run ``make clean; make''.
>
> Thanks,
> -- Alexandre
>
> % make
> Traceback (most recent call last):
> File "./setup.py", line 6, in <module>
> import sys, os, imp, re, optparse
> File "/home/alex/src/python.org/py3k-struni/Lib/optparse.py", line
> 412, in <module>
> _builtin_cvt = { "int" : (_parse_int, _("integer")),
> File "/home/alex/src/python.org/py3k-struni/Lib/gettext.py", line
> 563, in gettext
> return dgettext(_current_domain, message)
> File "/home/alex/src/python.org/py3k-struni/Lib/gettext.py", line
> 527, in dgettext
> codeset=_localecodesets.get(domain))
> File "/home/alex/src/python.org/py3k-struni/Lib/gettext.py", line
> 462, in translation
> mofiles = find(domain, localedir, languages, all=1)
> File "/home/alex/src/python.org/py3k-struni/Lib/gettext.py", line 434, in
> find
> for nelang in _expand_lang(lang):
> File "/home/alex/src/python.org/py3k-struni/Lib/gettext.py", line
> 129, in _expand_lang
> locale = normalize(locale)
> File "/home/alex/src/python.org/py3k-struni/Lib/locale.py", line
> 329, in normalize
> norm_encoding = encodings.normalize_encoding(encoding)
> File "/home/alex/src/python.org/py3k-struni/Lib/encodings/__init__.py",
> line 68, in normalize_encoding
> return '_'.join(encoding.translate(_norm_encoding_map).split())
> TypeError: split() takes at least 1 argument (0 given)
> make: *** [sharedmods] Error 1
> _______________________________________________
> Python-3000 mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe:
> http://mail.python.org/mailman/options/python-3000/guido%40python.org
>
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com