On 6/19/09 7:54 PM, George Wright wrote: > Hi. I'm new to this list. > Just wanted to record some problems using beginners tutorial. > The tutorial is excellent and well explained. Maybe it can be improved > if the glitches I encountered are fixed. > I haven't searched archives for previous discussion of this topic. > I'm running OSX 10.5.7 on MacBook. > > 1. Installing repoze.bfg Into the Virtual Python Environment > http://docs.repoze.org/bfg/narr/install.html#installing-repoze-bfg-on-a-unix-system > I think it could be made clearer that you have to > $ cd bfgenv > before doing > $ bin/easy_install ... repose.bfg > > All the following is within a virtualenv bfgenv > > 2. > http://docs.repoze.org/bfg/narr/install.html#installing-repoze-bfg-on-a-unix-system > At the bottom of this page under the heading 'What Gets Installed' is > included > Paste, PasteScript, and PasteDeploy. Well they didn't get installed > and I had to install them separately like this: > bin/easy_install -i http://dist.repoze.org/bfg/current/simple Paste > and > bin/easy_install -i http://dist.repoze.org/bfg/current/simple > PasteDeploy > etc .... > 3. http://docs.repoze.org/bfg/narr/project.html#creating-the-project > In addition each time I tried to create the project I found the > following packages (one at a time) to be missing. They had to be > installed by the same method above: > zope.deprecation > zope.event > pytz > > Only after all this did the command to build the project work: > (bfgenv)geomacbk:bfgenv georgewr$ bin/paster create -t bfg_starter > > Hope these comments are helpful.
Hi George, Thanks for the comments! Note that something about your environment is not right. There have been issues like this reported by people using the "system" Python on Mac OS X in conjunction with virtualenv; something about the combination is not quite right. Personally, I've just avoided the issue by installing Python on my Mac OS X system by hand (by downloading the Python tarball and doing "./configure --prefix=/Users/chrism/opt/Python-2.5.X; make; make install"). Here's terminal output from a successful installation and project creation using that Python installation for me ("virtualenv2.5" used below points at ~/opt/Python-2.5.2/bin/virtualenv on my system): [chr...@vitaminf repoze]$ virtualenv2.5 --no-site-packages george New python executable in george/bin/python Installing setuptools............done. [chr...@vitaminf repoze]$ cd george/ [chr...@vitaminf george]$ 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-eWfVtA/repoze.bfg-0.9.1/egg-dist-tmp-xXLJ81 Adding repoze.bfg 0.9.1 to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-ynkBPX/martian-0.12dev-ignore-pyc-branch/egg-dist-tmp-JO31VA Adding martian 0.12dev-ignore-pyc-branch to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-IJ0pVc/repoze.zcml-0.3/egg-dist-tmp-SfAPfD Adding repoze.zcml 0.3 to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-bet7md/zope.deprecation-3.4.0/egg-dist-tmp-ubxug2 Adding zope.deprecation 3.4.0 to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-v9pF7k/zope.component-3.6.0/egg-dist-tmp-ZdKzB9 Adding zope.component 3.6.0 to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-5W_WIA/zope.interface-3.5.1/egg-dist-tmp-zWdCoa Adding zope.interface 3.5.1 to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-wX93GS/WebOb-0.9.6.1/egg-dist-tmp-TTKFIg Adding WebOb 0.9.6.1 to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-aWOgxN/Routes-1.11dev-chrism-home/egg-dist-tmp-LyBSxz 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/repoze/george/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-YRdwiz/PasteScript-1.7.3/egg-dist-tmp-SBjvMi Adding PasteScript 1.7.3 to easy-install.pth file Installing paster script to /Users/chrism/projects/repoze/george/bin Installing paster script to /Users/chrism/projects/repoze/george/bin Installed /Users/chrism/projects/repoze/george/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-b1v8cW/chameleon.zpt-1.0b17/egg-dist-tmp-bHYwYi Adding chameleon.zpt 1.0b17 to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-kmxHBr/chameleon.core-1.0b34/egg-dist-tmp-9w5oib Adding chameleon.core 1.0b34 to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-1UWtsI/zope.testing-3.7.3/egg-dist-tmp-lVq35I Adding zope.testing 3.7.3 to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-J9EUWd/zope.configuration-3.6.0/egg-dist-tmp-w_ty_I Adding zope.configuration 3.6.0 to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-IzCRlw/zope.event-3.4.1/egg-dist-tmp-S8QNFn Adding zope.event 3.4.1 to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-En4FA1/PasteDeploy-1.3.2/egg-dist-tmp-AVSqnZ 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/repoze/george/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-zFxhrD/Paste-1.7.2/egg-dist-tmp-EMTLbt Adding Paste 1.7.2 to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-7HQ_QL/zope.i18n-3.7.0/egg-dist-tmp-NbCBAV Adding zope.i18n 3.7.0 to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-laFFiD/sourcecodegen-0.6.9/egg-dist-tmp-09ZSG_ Adding sourcecodegen 0.6.9 to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-H_AbWz/zope.schema-3.5.4/egg-dist-tmp-1GpHZx Adding zope.schema 3.5.4 to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-YeKapN/zope.i18nmessageid-3.5.0dev-optional-c/egg-dist-tmp-L_BDN5 Adding zope.i18nmessageid 3.5.0dev-optional-c to easy-install.pth file Installed /Users/chrism/projects/repoze/george/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-GtD_Qy/pytz-2009g/egg-dist-tmp-LizK-I 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/repoze/george/lib/python2.5/site-packages/pytz-2009g-py2.5.egg Finished processing dependencies for repoze.bfg [chr...@vitaminf george]$ bin/paster create -t bfg_starter aproject Selected and implied templates: repoze.bfg#bfg_starter repoze.bfg starter project Variables: egg: aproject package: aproject project: aproject Creating template bfg_starter Creating directory ./aproject Recursing into +package+ Creating ./aproject/aproject/ Copying __init__.py to ./aproject/aproject/__init__.py Copying configure.zcml to ./aproject/aproject/configure.zcml Copying models.py to ./aproject/aproject/models.py Copying run.py_tmpl to ./aproject/aproject/run.py Recursing into templates Creating ./aproject/aproject/templates/ Copying mytemplate.pt to ./aproject/aproject/templates/mytemplate.pt Recursing into static Creating ./aproject/aproject/templates/static/ Copying default.css to ./aproject/aproject/templates/static/default.css Recursing into images Creating ./aproject/aproject/templates/static/images/ Copying img01.gif to ./aproject/aproject/templates/static/images/img01.gif Copying img02.gif to ./aproject/aproject/templates/static/images/img02.gif Copying img03.gif to ./aproject/aproject/templates/static/images/img03.gif Copying img04.gif to ./aproject/aproject/templates/static/images/img04.gif Copying spacer.gif to ./aproject/aproject/templates/static/images/spacer.gif Copying templatelicense.txt to ./aproject/aproject/templates/static/templatelicense.txt Copying tests.py_tmpl to ./aproject/aproject/tests.py Copying views.py_tmpl to ./aproject/aproject/views.py Copying +project+.ini_tmpl to ./aproject/aproject.ini Copying CHANGES.txt_tmpl to ./aproject/CHANGES.txt Copying README.txt_tmpl to ./aproject/README.txt Copying ez_setup.py to ./aproject/ez_setup.py Copying setup.py_tmpl to ./aproject/setup.py Running /Users/chrism/projects/repoze/george/bin/python setup.py egg_info _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev