Syntax question

H

Helmut Jarausch

Hi,

I'm trying to build the recent Python-3.2a (SVN).
It fails in
Lib/tokenize.py (line 87)


85 def group(*choices): return '(' + '|'.join(choices) + ')'
86 def any(*choices): return group(*choices) + '*'
87 def maybe(*choices): return group(*choices) + '?'

with: TypeError: group() argument after ** must be a mapping, not tuple

I'm afraid I don't understand this error message.
BTW I'm using python-2.6.3 on the machine where I try to install
3.2a

Many thanks for a hint,
Helmut.

--
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
 
H

Helmut Jarausch

Benjamin said:
How are you invoking it?

As I said, it's 'make' in Python's source directory
(SVN revision 75309 Last Changed Date: 2009-10-10)

If it helps, here is the full traceback

Traceback (most recent call last):
File "./setup.py", line 13, in <module>
from distutils.core import Extension, setup
File "/Obj/Obj/Python/python3k/Lib/distutils/core.py", line 18, in <module>
from distutils.dist import Distribution
File "/Obj/Obj/Python/python3k/Lib/distutils/dist.py", line 12, in <module>
import warnings
File "/Obj/Obj/Python/python3k/Lib/warnings.py", line 6, in <module>
import linecache
File "/Obj/Obj/Python/python3k/Lib/linecache.py", line 10, in <module>
import tokenize
File "/Obj/Obj/Python/python3k/Lib/tokenize.py", line 94, in <module>
Ignore = Whitespace + any(r'\\\r?\n' + Whitespace) + maybe(Comment)
File "/Obj/Obj/Python/python3k/Lib/tokenize.py", line 87, in any
def any(*choices): return group(*choices) + '*'
TypeError: group() argument after ** must be a mapping, not tuple


--
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
 
H

Helmut Jarausch

Benjamin said:
How are you invoking it?

As I said, it's 'make' in Python's source directory
(SVN revision 75309 Last Changed Date: 2009-10-10)

If it helps, here is the full traceback

Traceback (most recent call last):
File "./setup.py", line 13, in <module>
from distutils.core import Extension, setup
File "/Obj/Obj/Python/python3k/Lib/distutils/core.py", line 18, in <module>
from distutils.dist import Distribution
File "/Obj/Obj/Python/python3k/Lib/distutils/dist.py", line 12, in <module>
import warnings
File "/Obj/Obj/Python/python3k/Lib/warnings.py", line 6, in <module>
import linecache
File "/Obj/Obj/Python/python3k/Lib/linecache.py", line 10, in <module>
import tokenize
File "/Obj/Obj/Python/python3k/Lib/tokenize.py", line 94, in <module>
Ignore = Whitespace + any(r'\\\r?\n' + Whitespace) + maybe(Comment)
File "/Obj/Obj/Python/python3k/Lib/tokenize.py", line 87, in any
def any(*choices): return group(*choices) + '*'
TypeError: group() argument after ** must be a mapping, not tuple


--
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
 
B

Benjamin Peterson

Helmut Jarausch said:
As I said, it's 'make' in Python's source directory
(SVN revision 75309 Last Changed Date: 2009-10-10)

I can't reproduce your failure. What are the exact commands you are using?
 
H

Helmut Jarausch

Benjamin said:
I can't reproduce your failure. What are the exact commands you are using?

CFLAGS='-O3 -mtune=native -msse2 -pipe' CXXFLAGS=$CFLAGS \
./configure --prefix=/usr/local --with-computed-gotos --enable-big-digits \
--with-cxx=g++ --with-signal-module --with-threads \
--with-pymalloc --with-fpectl --with-tsc

make -j4

Thanks for your help
Helmut.

(I'm using gcc-4.4.1)

--
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
 
H

Helmut Jarausch

Benjamin said:
I can't reproduce your failure. What are the exact commands you are using?

CFLAGS='-O3 -mtune=native -msse2 -pipe' CXXFLAGS=$CFLAGS \
./configure --prefix=/usr/local --with-computed-gotos --enable-big-digits \
--with-cxx=g++ --with-signal-module --with-threads \
--with-pymalloc --with-fpectl --with-tsc

make -j4

Thanks for your help
Helmut.

(I'm using gcc-4.4.1)

--
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
VetaMcRae
Top