KataTrainReservation icon indicating copy to clipboard operation
KataTrainReservation copied to clipboard

add windows batch to start services

Open codecop opened this issue 11 years ago • 4 comments

Emily, here are the two batch scripts for the Python services. Unfortunately they are on top of my code done during the workshop. Please ignore all changes but the latest one called "add windows batch to start services". If that causes too much trouble I can create another branch and cherry pick it there to create a clean pull request - if necessary. Thank you, great workshop at XP.

codecop avatar Jun 15 '13 11:06 codecop

Thanks for this! I'm going to do some work on this kata and I'll pick out your changes as part of that. I may not get around to it for a while though, am going on my summer holidays ...

emilybache avatar Jun 19 '13 15:06 emilybache

I'm having some trouble getting these services to work, and I'm sure if I knew more about Python, it would be obvious what's wrong. I'm on Windows 7 running Python 3.3.2 and CherryPy 3.2.4. When I run "py train_data_service.py", I get:

File "train_data_service.py", line 46
  print help_text
                ^
SyntaxError: invalid syntax

When I run "py booking_reference_service.py", I get an analogous error on line 41. Any idea what might be the matter?

neontapir avatar Aug 05 '13 20:08 neontapir

@neontapir you need to use Python 2.x as indicated by the readme.

codecop avatar Aug 05 '13 20:08 codecop

Thanks, @codecop, I was able to get it working under Python 2.7.

neontapir avatar Aug 05 '13 21:08 neontapir

Outdated and contains solution, too.

codecop avatar Dec 04 '23 11:12 codecop