[zope2-tracker] [Bug 380780] [NEW] Zope2.12.0b2 generate broken runzope.bat on Windows.

Shimizukawa shimizukawa at gmail.com
Tue May 26 20:09:41 EDT 2009


Public bug reported:

I'm trying Zope2.12.0b2 on Windows with python2.4.4.
(Windows Vista SP1, VisualStudio2003, Python2.4.4)

$ cd \
$ virtualenv zope
$ cd zope
$ Scripts\activate
$ easy_install -i http://download.zope.org/Zope2/index/2.12.0b2 Zope2
$ Scripts\mkzopeinstance -d inst -u admin:admin

but, inst\bin\runzope.bat seems broken.
I mended it by the hand, then Zope started correctly. 

  - @set ZOPE_RUN=\Startup\run.py
  + @set ZOPE_RUN=C:\zope\lib\site-packages\zope2-2.12.0b2-py2.4-win32.egg\Zope2\Startup\run.py

This probrem caused by Zope2/utilities/mkzopeinstance.py r99032.
The following codes in r99032 seem not to execute correctly in cmd.exe shell on Windows.

    p = os.popen('"%s" -c"import os, Zope2; '
        'print os.path.realpath(os.path.dirname(Zope2.__file__))"' % python)

On cmd.exe,
Fine:
   $ "C:\zope\Scripts\python.exe" -c"import os, Zope2; print os.path.realpath(os.path.dirname(Zope2.__file__))"
   C:\zope\lib\site-packages\zope2-2.12.0b2-py2.4-win32.egg\Zope2

Bad (popen cause this):
   $ cmd.exe /C "C:\zope\Scripts\python.exe" -c"import os, Zope2; print os.path.realpath(os.path.dirname(Zope2.__file__))"
   'C:\zope\Scripts\python.exe" -c"import' is not recognized as an internal or external command, operable program or batch file.

** Affects: zope2
     Importance: Undecided
         Status: New

-- 
Zope2.12.0b2 generate broken runzope.bat on Windows.
https://bugs.launchpad.net/bugs/380780
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.


More information about the zope2-tracker mailing list