On 6/19/09 9:51 PM, George Wright wrote: > Thanks Chris > This is my system python > geomacbk:~ georgewr$ which python2.5 > /usr/bin/python2.5 > geomacbk:~ georgewr$ which python > /usr/bin/python > And I have installed python2.6 but don't use it ...... > geomacbk:~ georgewr$ which python2.6 > /usr/local/bin/python2.6 > > Python 2.6 (trunk:66714:66715M, Oct 1 2008, 18:36:04) > [GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> > > Could I use that 2.6 in the same way you have done? > I guess I need a new virtualenv, easy_install, pip to go with it?
Using 2.6 in general as a Python *version* is fine (2.4, 2.5, and 2.6 should all work); I don't really know where that /usr/local/bin/python2.6 on your system comes from though; using it might solve the issue, it might not. To remove any trace of doubt, I always just use my own Python that I compile myself. It's very easy, at least if you have XCode installed. FTR, here's how I install a "new" Python on my own system: """ [chr...@vitaminf george]$ wget http://python.org/ftp/python/2.5.4/Python-2.5.4.tgz --2009-06-19 21:55:06-- http://python.org/ftp/python/2.5.4/Python-2.5.4.tgz Resolving python.org... 82.94.164.162, 2001:888:2000:d::a2 Connecting to python.org|82.94.164.162|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 11604497 (11M) [application/x-tar] Saving to: `Python-2.5.4.tgz' 100%[======================================>] 11,604,497 225K/s in 49s 2009-06-19 21:55:55 (229 KB/s) - `Python-2.5.4.tgz' saved [11604497/11604497] [chr...@vitaminf george]$ tar xzf Python-2.5.4.tgz [chr...@vitaminf george]$ cd Python-2.5.4 [chr...@vitaminf Python-2.5.4]$ mkdir -p ~/opt [chr...@vitaminf Python-2.5.4]$ ./configure --prefix=/Users/chrism/opt/Python-2.5.4; make; make install checking MACHDEP... darwin checking EXTRAPLATDIR... $(PLATMACDIRS) <... snip a bunch of output ...> cd /Users/chrism/opt/Python-2.5.4/bin; ln -s python2.5-config python-config) Creating directory /Users/chrism/opt/Python-2.5.4/share/man Creating directory /Users/chrism/opt/Python-2.5.4/share/man/man1 /sw/bin/ginstall -c -m 644 ./Misc/python.man \ /Users/chrism/opt/Python-2.5.4/share/man/man1/python.1 [chr...@vitaminf Python-2.5.4]$ wget http://peak.telecommunity.com/dist/ez_setup.py --2009-06-19 22:02:51-- http://peak.telecommunity.com/dist/ez_setup.py Resolving peak.telecommunity.com... 209.190.5.234 Connecting to peak.telecommunity.com|209.190.5.234|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 9716 (9.5K) [text/plain] Saving to: `ez_setup.py' 100%[======================================>] 9,716 --.-K/s in 0.04s 2009-06-19 22:02:51 (225 KB/s) - `ez_setup.py' saved [9716/9716] [chr...@vitaminf Python-2.5.4]$ ~/opt/Python-2.5.4/bin/python ez_setup.py Downloading http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c9-py2.5.egg Processing setuptools-0.6c9-py2.5.egg Copying setuptools-0.6c9-py2.5.egg to /Users/chrism/opt/Python-2.5.4/lib/python2.5/site-packages Adding setuptools 0.6c9 to easy-install.pth file Installing easy_install script to /Users/chrism/opt/Python-2.5.4/bin Installing easy_install-2.5 script to /Users/chrism/opt/Python-2.5.4/bin Installed /Users/chrism/opt/Python-2.5.4/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg Processing dependencies for setuptools==0.6c9 Finished processing dependencies for setuptools==0.6c9 [chr...@vitaminf Python-2.5.4]$ ~/opt/Python-2.5.4/bin/easy_install virtualenv Searching for virtualenv Reading http://pypi.python.org/simple/virtualenv/ Best match: virtualenv 1.3.3 Downloading http://pypi.python.org/packages/2.5/v/virtualenv/virtualenv-1.3.3-py2.5.egg#md5=fae350c941cd9eadf5e9a407c37a2e03 Processing virtualenv-1.3.3-py2.5.egg creating /Users/chrism/opt/Python-2.5.4/lib/python2.5/site-packages/virtualenv-1.3.3-py2.5.egg Extracting virtualenv-1.3.3-py2.5.egg to /Users/chrism/opt/Python-2.5.4/lib/python2.5/site-packages Adding virtualenv 1.3.3 to easy-install.pth file Installing virtualenv script to /Users/chrism/opt/Python-2.5.4/bin Installed /Users/chrism/opt/Python-2.5.4/lib/python2.5/site-packages/virtualenv-1.3.3-py2.5.egg Processing dependencies for virtualenv Finished processing dependencies for virtualenv """ This sets up a Python 2.5.4 with setuptools and easy_install. Then I can use its "virtualenv" to make a new virtual environment, and turn around and use the virtualenv to install BFG: """ [chr...@vitaminf george]$ ~/opt/Python-2.5.4/bin/virtualenv --no-site-packages myenvironment New python executable in myenvironment/bin/python Installing setuptools............done. [chr...@vitaminf george]$ cd myenvironment/ [chr...@vitaminf myenvironment]$ bin/easy_install -i http://dist.repoze.org/bfg/current/simple repoze.bfg Searching for repoze.bfg Reading http://dist.repoze.org/bfg/current/simple/repoze.bfg/ Best match: repoze.bfg 0.9.1 Downloading http://dist.repoze.org/bfg/current/repoze.bfg-0.9.1.tar.gz Processing repoze.bfg-0.9.1.tar.gz Running repoze.bfg-0.9.1/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-om_lnf/repoze.bfg-0.9.1/egg-dist-tmp-eR4R6a Adding repoze.bfg 0.9.1 to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/repoze.bfg-0.9.1-py2.5.egg Processing dependencies for repoze.bfg Searching for martian Reading http://dist.repoze.org/bfg/current/simple/martian/ Best match: martian 0.12dev-ignore-pyc-branch Downloading http://dist.repoze.org/bfg/current/martian-0.12dev-ignore-pyc-branch.tar.gz Processing martian-0.12dev-ignore-pyc-branch.tar.gz Running martian-0.12dev-ignore-pyc-branch/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-WlXYb_/martian-0.12dev-ignore-pyc-branch/egg-dist-tmp-cRbsH4 Adding martian 0.12dev-ignore-pyc-branch to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/martian-0.12dev_ignore_pyc_branch-py2.5.egg Searching for repoze.zcml Reading http://dist.repoze.org/bfg/current/simple/repoze.zcml/ Best match: repoze.zcml 0.3 Downloading http://dist.repoze.org/bfg/current/repoze.zcml-0.3.tar.gz Processing repoze.zcml-0.3.tar.gz Running repoze.zcml-0.3/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-CjuyYv/repoze.zcml-0.3/egg-dist-tmp-fobyzK Adding repoze.zcml 0.3 to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/repoze.zcml-0.3-py2.5.egg Searching for zope.deprecation Reading http://dist.repoze.org/bfg/current/simple/zope.deprecation/ Best match: zope.deprecation 3.4.0 Downloading http://dist.repoze.org/bfg/current/zope.deprecation-3.4.0.tar.gz Processing zope.deprecation-3.4.0.tar.gz Running zope.deprecation-3.4.0/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-dFKa6-/zope.deprecation-3.4.0/egg-dist-tmp-iSvrjl Adding zope.deprecation 3.4.0 to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/zope.deprecation-3.4.0-py2.5.egg Searching for zope.component>=3.6.0 Reading http://dist.repoze.org/bfg/current/simple/zope.component/ Best match: zope.component 3.6.0 Downloading http://dist.repoze.org/bfg/current/zope.component-3.6.0.tar.gz Processing zope.component-3.6.0.tar.gz Running zope.component-3.6.0/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-jedbn4/zope.component-3.6.0/egg-dist-tmp-dJKG-U Adding zope.component 3.6.0 to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/zope.component-3.6.0-py2.5.egg Searching for zope.interface>=3.5.1 Reading http://dist.repoze.org/bfg/current/simple/zope.interface/ Best match: zope.interface 3.5.1 Downloading http://dist.repoze.org/bfg/current/zope.interface-3.5.1.tar.gz Processing zope.interface-3.5.1.tar.gz Running zope.interface-3.5.1/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-aHDKg3/zope.interface-3.5.1/egg-dist-tmp-Eb6Mkl Adding zope.interface 3.5.1 to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/zope.interface-3.5.1-py2.5-macosx-10.3-i386.egg Searching for WebOb Reading http://dist.repoze.org/bfg/current/simple/WebOb/ Best match: WebOb 0.9.6.1 Downloading http://dist.repoze.org/bfg/current/WebOb-0.9.6.1.tar.gz Processing WebOb-0.9.6.1.tar.gz Running WebOb-0.9.6.1/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-BRLPdA/WebOb-0.9.6.1/egg-dist-tmp-p8RcKg Adding WebOb 0.9.6.1 to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/WebOb-0.9.6.1-py2.5.egg Searching for Routes Reading http://dist.repoze.org/bfg/current/simple/Routes/ Best match: Routes 1.11dev-chrism-home Downloading http://dist.repoze.org/bfg/current/Routes-1.11dev-chrism-home.tar.gz Processing Routes-1.11dev-chrism-home.tar.gz Running Routes-1.11dev-chrism-home/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-sV95O_/Routes-1.11dev-chrism-home/egg-dist-tmp-dqFG_q warning: no previously-included files matching '.DS_Store' found anywhere in distribution warning: no previously-included files matching '*.hgignore' found anywhere in distribution warning: no previously-included files matching '*.hgtags' found anywhere in distribution Adding Routes 1.11dev-chrism-home to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/Routes-1.11dev_chrism_home-py2.5.egg Searching for PasteScript Reading http://dist.repoze.org/bfg/current/simple/PasteScript/ Best match: PasteScript 1.7.3 Downloading http://dist.repoze.org/bfg/current/PasteScript-1.7.3.tar.gz Processing PasteScript-1.7.3.tar.gz Running PasteScript-1.7.3/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-rlMBLd/PasteScript-1.7.3/egg-dist-tmp-ZaMXvQ Adding PasteScript 1.7.3 to easy-install.pth file Installing paster script to /Users/chrism/projects/george/myenvironment/bin Installing paster script to /Users/chrism/projects/george/myenvironment/bin Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg Searching for chameleon.zpt>=1.0b16 Reading http://dist.repoze.org/bfg/current/simple/chameleon.zpt/ Best match: chameleon.zpt 1.0b17 Downloading http://dist.repoze.org/bfg/current/chameleon.zpt-1.0b17.tar.gz Processing chameleon.zpt-1.0b17.tar.gz Running chameleon.zpt-1.0b17/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-Ofa2n5/chameleon.zpt-1.0b17/egg-dist-tmp-tl8xj8 Adding chameleon.zpt 1.0b17 to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/chameleon.zpt-1.0b17-py2.5.egg Searching for chameleon.core>=1.0b32 Reading http://dist.repoze.org/bfg/current/simple/chameleon.core/ Best match: chameleon.core 1.0b34 Downloading http://dist.repoze.org/bfg/current/chameleon.core-1.0b34.tar.gz Processing chameleon.core-1.0b34.tar.gz Running chameleon.core-1.0b34/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-KlK0mp/chameleon.core-1.0b34/egg-dist-tmp-lMiMhx Adding chameleon.core 1.0b34 to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/chameleon.core-1.0b34-py2.5.egg Searching for zope.testing Reading http://dist.repoze.org/bfg/current/simple/zope.testing/ Best match: zope.testing 3.7.3 Downloading http://dist.repoze.org/bfg/current/zope.testing-3.7.3.tar.gz Processing zope.testing-3.7.3.tar.gz Running zope.testing-3.7.3/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-WT3x2-/zope.testing-3.7.3/egg-dist-tmp-7PhV1n Adding zope.testing 3.7.3 to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/zope.testing-3.7.3-py2.5.egg Searching for zope.configuration Reading http://dist.repoze.org/bfg/current/simple/zope.configuration/ Best match: zope.configuration 3.6.0 Downloading http://dist.repoze.org/bfg/current/zope.configuration-3.6.0.tar.gz Processing zope.configuration-3.6.0.tar.gz Running zope.configuration-3.6.0/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-UV-9_6/zope.configuration-3.6.0/egg-dist-tmp-WYG_u1 Adding zope.configuration 3.6.0 to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/zope.configuration-3.6.0-py2.5.egg Searching for zope.event Reading http://dist.repoze.org/bfg/current/simple/zope.event/ Best match: zope.event 3.4.1 Downloading http://dist.repoze.org/bfg/current/zope.event-3.4.1.tar.gz Processing zope.event-3.4.1.tar.gz Running zope.event-3.4.1/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-a5t9VH/zope.event-3.4.1/egg-dist-tmp-OawNcF Adding zope.event 3.4.1 to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/zope.event-3.4.1-py2.5.egg Searching for PasteDeploy Reading http://dist.repoze.org/bfg/current/simple/PasteDeploy/ Best match: PasteDeploy 1.3.2 Downloading http://dist.repoze.org/bfg/current/PasteDeploy-1.3.2.tar.gz Processing PasteDeploy-1.3.2.tar.gz Running PasteDeploy-1.3.2/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-7tUq09/PasteDeploy-1.3.2/egg-dist-tmp-fZjdC2 warning: no files found matching 'docs/*.html' warning: no previously-included files found matching 'docs/rebuild' Adding PasteDeploy 1.3.2 to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg Searching for Paste>=1.3 Reading http://dist.repoze.org/bfg/current/simple/Paste/ Best match: Paste 1.7.2 Downloading http://dist.repoze.org/bfg/current/Paste-1.7.2.tar.gz Processing Paste-1.7.2.tar.gz Running Paste-1.7.2/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-4Uj6lZ/Paste-1.7.2/egg-dist-tmp-2zmEU8 Adding Paste 1.7.2 to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg Searching for zope.i18n>=3.5 Reading http://dist.repoze.org/bfg/current/simple/zope.i18n/ Best match: zope.i18n 3.7.0 Downloading http://dist.repoze.org/bfg/current/zope.i18n-3.7.0.tar.gz Processing zope.i18n-3.7.0.tar.gz Running zope.i18n-3.7.0/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-BIkR1T/zope.i18n-3.7.0/egg-dist-tmp-4CKMDZ Adding zope.i18n 3.7.0 to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/zope.i18n-3.7.0-py2.5.egg Searching for sourcecodegen>=0.6.9 Reading http://dist.repoze.org/bfg/current/simple/sourcecodegen/ Best match: sourcecodegen 0.6.9 Downloading http://dist.repoze.org/bfg/current/sourcecodegen-0.6.9.tar.gz Processing sourcecodegen-0.6.9.tar.gz Running sourcecodegen-0.6.9/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-8K4wKs/sourcecodegen-0.6.9/egg-dist-tmp-VCmgoi Adding sourcecodegen 0.6.9 to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/sourcecodegen-0.6.9-py2.5.egg Searching for zope.schema Reading http://dist.repoze.org/bfg/current/simple/zope.schema/ Best match: zope.schema 3.5.4 Downloading http://dist.repoze.org/bfg/current/zope.schema-3.5.4.tar.gz Processing zope.schema-3.5.4.tar.gz Running zope.schema-3.5.4/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-EjUQSR/zope.schema-3.5.4/egg-dist-tmp-rbNfOd Adding zope.schema 3.5.4 to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/zope.schema-3.5.4-py2.5.egg Searching for zope.i18nmessageid Reading http://dist.repoze.org/bfg/current/simple/zope.i18nmessageid/ Best match: zope.i18nmessageid 3.5.0dev-optional-c Downloading http://dist.repoze.org/bfg/current/zope.i18nmessageid-3.5.0dev-optional-c.tar.gz Processing zope.i18nmessageid-3.5.0dev-optional-c.tar.gz Running zope.i18nmessageid-3.5.0dev-optional-c/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-VvoKiz/zope.i18nmessageid-3.5.0dev-optional-c/egg-dist-tmp-rq6Dj0 Adding zope.i18nmessageid 3.5.0dev-optional-c to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/zope.i18nmessageid-3.5.0dev_optional_c-py2.5-macosx-10.3-i386.egg Searching for pytz Reading http://dist.repoze.org/bfg/current/simple/pytz/ Best match: pytz 2009g Downloading http://dist.repoze.org/bfg/current/pytz-2009g.tar.gz Processing pytz-2009g.tar.gz Running pytz-2009g/setup.py -q bdist_egg --dist-dir /var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/easy_install-pvucz_/pytz-2009g/egg-dist-tmp-xV2Hvt warning: no files found matching '*.pot' under directory 'pytz' warning: no previously-included files found matching 'test_zdump.py' Adding pytz 2009g to easy-install.pth file Installed /Users/chrism/projects/george/myenvironment/lib/python2.5/site-packages/pytz-2009g-py2.5.egg Finished processing dependencies for repoze.bfg """ Please try this. - C _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev