In article <c1ffbdb9-1a2b-41d7-970d-e7de1a973...@glegroupsg2000goo.googlegroups.com >, Anthony Kong <anthony.hw.k...@gmail.com> wrote: > I have checked out source code from this url > http://svn.python.org/projects/python/branches/py3k, then run > > ./configure --with-universal-archs=64-bit > make > > First of all, I got this message: > > ----------------------------------------------- > Modules/Setup.dist is newer than Modules/Setup; > check to make sure you have all the updates you > need in your Modules/Setup file. > Usually, copying Modules/Setup.dist to Modules/Setup will work. > ----------------------------------------------- > > Then the build failed with these messages > > /usr/bin/ranlib: file: libpython3.3m.a(dynamic_annotations.o) has no symbols > /usr/bin/ranlib: file: libpython3.3m.a(pymath.o) has no symbols > ranlib libpython3.3m.a > ranlib: file: libpython3.3m.a(dynamic_annotations.o) has no symbols > ranlib: file: libpython3.3m.a(pymath.o) has no symbols > gcc -framework CoreFoundation -o python.exe Modules/python.o > libpython3.3m.a -ldl -framework CoreFoundation > Could not find platform dependent libraries <exec_prefix> > Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] > Fatal Python error: Py_Initialize: can't initialize sys standard streams > Traceback (most recent call last): > File "/Users/antkong/wd/python/python3/Lib/io.py", line 60, in <module> > /bin/sh: line 1: 55310 Abort trap CC='gcc' LDSHARED='gcc -bundle > -undefined dynamic_lookup ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall > -Wstrict-prototypes' ./python.exe -E ./setup.py build > make: *** [sharedmods] Error 134 > > > I wonder what caused these error messages. Is it possible that I am checking > out the wrong branch?
Python development has recently moved from using Subversion to Mercurial (hg). The py3k branch in the svn repository at that URL is now frozen in-time and not being updated. $ svn info Path: . URL: http://svn.python.org/projects/python/branches/py3k Repository Root: http://svn.python.org/projects Repository UUID: 6015fed2-1504-0410-9fe1-9d1591cc4771 Revision: 88828 Node Kind: directory Schedule: normal Last Changed Author: giampaolo.rodola Last Changed Rev: 88761 Last Changed Date: 2011-03-06 13:04:47 -0800 (Sun, 06 Mar 2011) Information on how to access the hg repos is contained in the new Python Developer's Guide: http://docs.python.org/devguide/setup.html If you use hg to clone a copy of the current repo, you'll see something more like this: $ hg clone http://hg.python.org/cpython $ cd cpython $ hg log -b default changeset: 69534:020ebe0be33e user: Antoine Pitrou <solip...@pitrou.net> date: Sat Apr 23 17:56:06 2011 +0200 summary: Remove unused private function Try the build again from a clean directory using the current hg repo. That said, if the message appears, follow the directions about copying Modules/Setup.dist to Modules/Setup. That is likely the source of your original build failure. > The 3.2 branch > (http://svn.python.org/projects/python/branches/release32-maint) can be > compiled without much issue. That is out-of-date as well. All current development and maintenance branches (2.7, 3.1, 3.2, default(=py3k)) are now maintained in the hg repo as described in the developer's guide. -- Ned Deily, n...@acm.org -- http://mail.python.org/mailman/listinfo/python-list