Zope2.12.0b2 generate broken runzope.bat on Windows.

Bug #380780 reported by Shimizukawa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Undecided
Unassigned

Bug Description

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.

Revision history for this message
Shimizukawa (shimizukawa) wrote :

os.system('''"python" -c "print 'foo'"''') cause error, but os.system('''""python" -c "print 'foo'""''') works fine.

Revision history for this message
Hanno Schlichting (hannosch) wrote :

Is this still the case for the runzope file shipped in the final version or 2.12.5 for that matter?

Changed in zope2:
status: New → Incomplete
Revision history for this message
Shimizukawa (shimizukawa) wrote :

> Is this still the case for the runzope file shipped in the final version or 2.12.5 for that matter?

This is no longer an issue in Zope >= 2.12.0 release.

Changed in zope2:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers