#9 — bootstrap.py fails in win32 when spaces are in the python path

by (anonymous) — last modified Jan 08, 2009 03:19 PM
State Unconfirmed
Version:
Area General
Issue type Bug
Severity Medium
Submitted by (anonymous)
Submitted on Jun 06, 2008
Responsible
Target release:
This problem was fixed in the Zope zc.buildout trunk (svn://svn.zope.org/repos/main/zc.buildout/trunk/bootstrap) in r85041. This bug exists in the trunk of ZopeSkel. I suspect all that needs to be done is copy/port bootstrap.py from zc.buildout. Perhaps better would be to reference it via svn:externals.
Steps to reproduce:
Install Python 2.4 on Windows (I used Vista 32-bit) to "C:\Program Files\Python" (or your favorite path with spaces).

Follow the instructions from http://plone.org/[…]/creating-a-buildout-for-your-project. i.e.

mkdir c:\temp
cd c:\temp
C:\temp>paster create -t plone3_buildout myproject
Selected and implied templates:
  zopeskel#plone3_buildout A buildout for Plone 3 projects

Variables:
  egg: myproject
  package: myproject
  project: myproject
Enter zope2_install (Path to Zope 2 installation; leave blank to fetch one) ['']:
Enter plone_products_install (Path to directory containing Plone products; leave blank to fetch one) ['']:
Enter zope_user (Zope root admin user) ['admin']:
Enter zope_password (Zope root admin password) ['']:
Enter http_port (HTTP port) [8080]:
Enter debug_mode (Should debug mode be "on" or "off"?) ['off']:
Enter verbose_security (Should verbose security be "on" or "off"?) ['off']:
Creating template plone3_buildout
Creating directory .\myproject
...

C:\temp> cd myproject

C:\temp\myproject>"c:\Program Files\Python\python.exe" bootstrap.py
c:\Program: can't open file 'Files\Python\python.exe': [Errno 2] No such file or directory
Traceback (most recent call last):
  File "bootstrap.py", line 46, in ?
    PYTHONPATH=
AssertionError
Added by (anonymous) on Oct 10, 2008 03:06 PM
Is it possible to make ZopeSkel depend on zc.buildout and grab bootstrap.py from the pkg_resources instead of keeping a static copy in the template? In particular, does paste.script.templates.Template (from which Plone3Buildout is derived) provide a hook for generating template content in which we could get bootstrap.py from the pkg_resources?

No responses can be added.