compile error in mailman cvs?
I just synced my tree, and:
make[1]: Entering directory `/var/local/src/mailman-cvs/misc'
for p in email-2.0.4 JapaneseCodecs-1.4.5 KoreanCodecs-2.0.4;
do
gunzip -c $p.tar.gz | tar xf -;
(cd $p ; PYTHONPATH=/var/local/mailman/pythonlib /usr/bin/python setup.py --quiet install --install-lib /var/local/mailman/pythonlib --install-purelib /var/local/mailman/pythonlib);
done
File "/var/local/mailman/pythonlib/email/_compat22.py", line 21
yield self
^
SyntaxError: invalid syntax
File "/var/local/mailman/pythonlib/japanese/mappings/jis_x_0208.py", line 6234
"\x6d\x
^
Syntax
Barry?
Marc
Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | Finger marc_f@merlins.org for PGP key
"MM" == Marc MERLIN <marc_news@vasoftware.com> writes:
MM> I just synced my tree, and:
| make[1]: Entering directory `/var/local/src/mailman-cvs/misc'
| for p in email-2.0.4 JapaneseCodecs-1.4.5 KoreanCodecs-2.0.4; \
| do \
| gunzip -c $p.tar.gz | tar xf -; \
| (cd $p ; PYTHONPATH=/var/local/mailman/pythonlib /usr/bin/python setup.py --quiet install --install-lib /var/local/mailman/pythonlib --install-purelib /var/local/mailman/pythonlib); \
| done
| File "/var/local/mailman/pythonlib/email/_compat22.py", line 21
| yield self
| ^
This one you /should/ be able to ignore (I'm still trying to figure out how to get distutils not to try to compile _compat22.py if you're running Python 2.1).
| SyntaxError: invalid syntax
| File "/var/local/mailman/pythonlib/japanese/mappings/jis_x_0208.py", line 6234
| "\x6d\x
| ^
| Syntax
Gah, I've no clue about this one. Is there a possibility that your Python wasn't built with Unicode support?
-Barry
On Sat, May 25, 2002 at 04:39:28PM -0400, Barry A. Warsaw wrote:
| done | File "/var/local/mailman/pythonlib/email/_compat22.py", line 21 | yield self | ^
This one you /should/ be able to ignore (I'm still trying to figure out how to get distutils not to try to compile _compat22.py if you're running Python 2.1).
Ok, I upgraed and it seems to run fine
| SyntaxError: invalid syntax | File "/var/local/mailman/pythonlib/japanese/mappings/jis_x_0208.py", line 6234 | "\x6d\x | ^ | Syntax
Gah, I've no clue about this one. Is there a possibility that your Python wasn't built with Unicode support?
Can't really tell, what's the magic flag? (help says -U though)
Python 2.1.1 svlug:/var/local/src/mailman-cvs# python -h usage: python [option] ... [-c cmd | file | -] [arg] ... Options and arguments (and corresponding environment variables): -d : debug output from parser (also PYTHONDEBUG=x) -i : inspect interactively after running script, (also PYTHONINSPECT=x) and force prompts, even if stdin does not appear to be a terminal -O : optimize generated bytecode (a tad; also PYTHONOPTIMIZE=x) -OO : remove doc-strings in addition to the -O optimizations -S : don't imply 'import site' on initialization -t : issue warnings about inconsistent tab usage (-tt: issue errors) -u : unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x) -U : Unicode literals: treats '...' literals like u'...' -v : verbose (trace import statements) (also PYTHONVERBOSE=x) -x : skip first line of source, allowing use of non-Unix forms of #!cmd -h : print this help message and exit -V : print the Python version number and exit -W arg : warning control (arg is action:message:category:module:lineno) -c cmd : program passed in as string (terminates option list) file : program read from script file
arg ...: arguments passed to program in sys.argv[1:] Other environment variables: PYTHONSTARTUP: file executed on interactive startup (no default) PYTHONPATH : ':'-separated list of directories prefixed to the default module search path. The result is sys.path. PYTHONHOME : alternate <prefix> directory (or <prefix>:<exec_prefix>). The default module search path uses <prefix>/python2.1. PYTHONCASEOK : ignore case in 'import' statements (Windows). svlug:/var/local/src/mailman-cvs# python -v: program read from stdin (default; interactive mode if a tty)
/usr/lib/python2.1/site.pyc matches /usr/lib/python2.1/site.py
import site # precompiled from /usr/lib/python2.1/site.pyc # /usr/lib/python2.1/os.pyc matches /usr/lib/python2.1/os.py import os # precompiled from /usr/lib/python2.1/os.pyc import posix # builtin # /usr/lib/python2.1/posixpath.pyc matches /usr/lib/python2.1/posixpath.py import posixpath # precompiled from /usr/lib/python2.1/posixpath.pyc # /usr/lib/python2.1/stat.pyc matches /usr/lib/python2.1/stat.py import stat # precompiled from /usr/lib/python2.1/stat.pyc # /usr/lib/python2.1/UserDict.pyc matches /usr/lib/python2.1/UserDict.py import UserDict # precompiled from /usr/lib/python2.1/UserDict.pyc Python 2.1.1 (#1, Nov 11 2001, 18:19:24) [GCC 2.95.4 20011006 (Debian prerelease)] on linux2 Type "copyright", "credits" or "license" for more information. import readline # dynamically loaded from /usr/lib/python2.1/lib-dynload/readline.so
Marc
Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | Finger marc_f@merlins.org for PGP key
participants (2)
-
barry@zope.com
-
Marc MERLIN