[TIP] Problem with Python 2.4 and tox on Mac OS X Lion
Michael Foord
fuzzyman at voidspace.org.uk
Sun Jul 31 16:34:14 PDT 2011
Hey all,
This is using Python 2.7 from Activestate and Python 2.4 from Python.org on Mac OS X Lion. Could it be because Python 2.7 is 64 bit and Python 2.4 is 32 bit?
_________________ [tox testenv:py24] ______________________________
[TOX] ***creating virtualenv py24
[TOX] /compile/mock/.tox$ /Library/Frameworks/Python.framework/Versions/2.4/bin/python2.4 ../../../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/virtualenv.py --distribute --no-site-packages py24 >py24/log/0.log
[TOX] ERROR: invocation failed, logfile: /compile/mock/.tox/py24/log/0.log
[TOX] ERROR: /compile/mock/.tox$ /Library/Frameworks/Python.framework/Versions/2.4/bin/python2.4 ../../../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/virtualenv.py --distribute --no-site-packages py24 >py24/log/0.log
Traceback (most recent call last):
File "../../../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/virtualenv.py", line 1922, in ?
main()
File "../../../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/virtualenv.py", line 796, in main
never_download=options.never_download)
File "../../../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/virtualenv.py", line 887, in create_environment
site_packages=site_packages, clear=clear))
File "../../../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/virtualenv.py", line 1000, in install_python
fix_lib64(lib_dir)
File "../../../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/virtualenv.py", line 1262, in fix_lib64
if [p for p in distutils.sysconfig.get_config_vars().values()
File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/distutils/sysconfig.py", line 488, in get_config_vars
func()
File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/distutils/sysconfig.py", line 373, in _init_posix
raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.5" but "10.3" during configure
[TOX] ERROR: InvocationError: /Library/Frameworks/Python.framework/Versions/2.4/bin/python2.4 ../../../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/virtualenv.py --distribute --no-site-packages py24 (see /compile/mock/.tox/py24/log/0.log)
--
http://www.voidspace.org.uk/
May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing
http://www.sqlite.org/different.html
More information about the testing-in-python
mailing list