This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python/ast.c:541: seq_for_testlist: Assertion fails
Type: Stage:
Components: Interpreter Core Versions: Python 2.5
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, schiebel
Priority: normal Keywords:

Created on 2006-11-16 18:40 by schiebel, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
typescript schiebel, 2006-11-16 18:40 script utility output
Messages (2)
msg30566 - (view) Author: Darrell Schiebel (schiebel) Date: 2006-11-16 18:40
As per bug #1588287, under rhel4 python 2.5 cannot build numpy-1.0 unless the assert()s are turned off. Attached is a log file of my build attempt which basically consisted of:

cd Python-2.5
./configure
make OPT=-g
cd numpy-1.0
../python setup.py build

This fails with this error:

python: Python/ast.c:541: seq_for_testlist: Assertion `((n)->n_type) == 326 || ((n)->n_type) == 318 || ((n)->n_type) == 319 || ((n)->n_type) == \
300' failed.

While I'm reluctant to just #ifdef out the asserts() [by defining -DNDEBUG on the compile line], this clearly must be why other people haven't run into this.

thanks, Darrell

ps: the Python-2.5.tar.bz2 & numpy-1.0.tar.gz files are just the public source tarballs.
msg30567 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-11-16 18:47
This was already fixed with bug #1588287, bug thanks for reporting it nevertheless.
History
Date User Action Args
2022-04-11 14:56:21adminsetgithub: 44241
2006-11-16 18:40:45schiebelcreate