Anand Balachandran Pillai wrote: > Hi list, > > After updating py3k trunk to the most recent svn version > (62349) and building Python, I am getting the following > error while trying to start the interpreter. > > [EMAIL PROTECTED] ~]$ /usr/local/bin/python > Fatal Python error: Py_Initialize: can't initialize sys standard streams > Traceback (most recent call last): > File "/usr/local/lib/python3.0/io.py", line 63, in <module> > import warnings > File "/usr/local/lib/python3.0/warnings.py", line 280, in <module> > bytes_warning = sys.flags.bytes_warning > AttributeError: 'sys.flags' object has no attribute 'bytes_warning' > Aborted > > I am running Fedora Core 6, with kernel 2.6.22.7-57.fc6 on > an Intel i686 SMP box. Python was compiled with gcc > version 4.1.2 (Redhat - 4.1.2-13). Python was built with > no additional ./configure flags .
I don't have this problem on my 2.6.20-1.2962.fc6 box, also Intel SMP, also using gcc-4.1.2-13. It works with either './configure' or './configure --with-pydebug'. $ ./python Python 3.0a4+ (py3k:62349M, Apr 15 2008, 04:48:00) [GCC 4.1.2 20070626 (Red Hat 4.1.2-13)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.flags.bytes_warning 0 Eric. _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com