On Dec 26, 2:07 pm, Benjamin Kaplan <benjamin.kap...@case.edu> wrote:
PROBLEM RESOLVED! Yes, it does appear that the disk image on pytho.ord is defective (maybe they made the image from an obsolete version?) I installed Python 3.1 from macports and everything seems to work now. (I never would have figured it out, although installing from macports was on my long erm list of things to try). # after macports install of Python 3.1 $ python setup.py install running install running build running build_ext building 'gmpy' extension creating build/temp.macosx-10.6-i386-3.1 creating build/temp.macosx-10.6-i386-3.1/src /usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I./src -I/opt/local/include -I/ opt/local/Library/Frameworks/Python.framework/Versions/3.1/include/ python3.1 -c src/gmpy.c -o build/temp.macosx-10.6-i386-3.1/src/gmpy.o creating build/lib.macosx-10.6-i386-3.1 /usr/bin/gcc-4.2 -L/opt/local/lib -bundle -undefined dynamic_lookup build/temp.macosx-10.6-i386-3.1/src/gmpy.o -L/opt/local/lib -lgmp -o build/lib.macosx-10.6-i386-3.1/gmpy.so running install_lib copying build/lib.macosx-10.6-i386-3.1/gmpy.so -> /opt/local/Library/ Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages error: /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/ python3.1/site-packages/gmpy.so: Permission denied # minor glitch, easily resolveable $ sudo python setup.py install running install running build running build_ext running install_lib copying build/lib.macosx-10.6-i386-3.1/gmpy.so -> /opt/local/Library/ Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages running install_egg_info Writing /opt/local/Library/Frameworks/Python.framework/Versions/3.1/ lib/python3.1/site-packages/gmpy-1.11rc1-py3.1.egg-info $ python Python 3.1.1 (r311:74480, Dec 26 2009, 15:02:38) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import gmpy >>> gmpy.version() '1.11' >>> [2]+ Stopped pytho $ python test3/gmpy_test.py Unit tests for gmpy 1.11 on Python 3.1.1 (r311:74480, Dec 26 2009, 15:02:38) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] Testing gmpy 1.11 (GMP 4.3.1), default caching (100, 128) gmpy_test_cvr 148 tests, 0 failures gmpy_test_rnd 26 tests, 0 failures . . . 1500 tests in 42 items. 1500 passed and 0 failed. Test passed. Thanks guys, you saved my Christmas! I was afraid this MacBook was going to turn into a waste of money. I guess the point here is NEVER use the disk image on python.org, ALWAYS use macports to install Python 3.1. At least until python.org fixes it. -- http://mail.python.org/mailman/listinfo/python-list