hello all, i tried to build Python3.0b1 but the make process hangs while running:
./python -E ./setup.py build breaking the building with ctrl-C, i have: <output> gcc -pthread -Xlinker -export-dynamic -o python Modules/python.o libpython3.0.a -lpthread -ldl -lutil -lm ^CFatal Python error: Py_Initialize: can't initialize sys standard streams Traceback (most recent call last): File "/usr/local/src/Python-3.0b1/Lib/encodings/__init__.py", line 31, in <module> import codecs File "/usr/local/src/Python-3.0b1/Lib/codecs.py", line 8, in <module> """#" KeyboardInterrupt make: *** [sharedmods] Error 134 </output> another make procedure also hangs, and with ctrl-C, i get this: <output> Fatal Python error: Py_Initialize: can't initialize sys standard streams Traceback (most recent call last): File "/home/nirina/Python-3.0b1/Lib/io.py", line 63, in <module> import warnings File "/home/nirina/Python-3.0b1/Lib/warnings.py", line 6, in <module> import linecache File "/home/nirina/Python-3.0b1/Lib/linecache.py", line 10, in <module> import re File "/home/nirina/Python-3.0b1/Lib/re.py", line 223, in <module> _pattern_type = type(sre_compile.compile("", 0)) File "/home/nirina/Python-3.0b1/Lib/sre_compile.py", line 497, in compile p = sre_parse.parse(p, flags) File "/home/nirina/Python-3.0b1/Lib/sre_parse.py", line 685, in parse p = _parse_sub(source, pattern, 0) File "/home/nirina/Python-3.0b1/Lib/sre_parse.py", line 321, in _parse_sub if sourcematch("|"): File "/home/nirina/Python-3.0b1/Lib/sre_parse.py", line 210, in match self.__next() File "/home/nirina/Python-3.0b1/Lib/sre_parse.py", line 190, in __next self.next = None KeyboardInterrupt make: *** [sharedmods] Error 134 </output> i have similar error when building Python-3.0a5 with gcc-4.3.0. with gcc-4.2.3, however, the compilation succeeded, and apparently it works fine: #./python Lib/idlelib/idle.py <output> Python 3.0b1 (r30b1:64395, Jun 20 2008, 01:00:45) [GCC 4.2.3] on linux2 Type "copyright", "credits" or "license()" for more information. **************************************************************** Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. **************************************************************** IDLE 3.0b1 >>> import tkinter.tix >>> tkinter.tix.tkinter <module 'tkinter' from '/usr/local/src/Python-3.0b1/Lib/tkinter/__init__.py'> >>> tkinter.tix.TclVersion 8.5 </output> but the following modules are not built: <output> Failed to find the necessary bits to build these modules: _gestalt _sqlite3 To find the necessary bits, look in setup.py in detect_modules() for the module's name. Failed to build these modules: _multiprocessing </output> i don't have sqlite3 installed. but what about _gestalt and _multiprocessing? what to do in order to build them? Python-2.5.2 and Python-3.0a1 are both successfully compiled and work fine with gcc-4.3.0. the building system is: # cat /proc/version <output> Linux version 2.6.25.20080505 ([EMAIL PROTECTED]) (gcc version 4.3.0 (GCC) ) #1 Mon May 5 15:44:45 EAT 2008 </output> surely there is something missing with my system but i don't see what. i've checked in pythonrun.c, the initstdio function initializes some encodings. does Python-3.0b1 require some encodings to be installed? as far as i can tell, the kernel supports utf_8 and iso-8859-1. i will appreciate any help. best regards, nirinA -- _______________________________________________ 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