Problem building ObjectHandler

Posted by Erik Schlogl on
URL: http://quantlib.414.s1.nabble.com/Problem-building-ObjectHandler-tp8266.html

Hi,

 

I’ve followed the instructions for installing ObjectHandler 0.9.7 under Windows, and got to the point where I’ve loaded the Visual C++ Solution into Visual C++ 2008 Express Edition. A build of the solution then fails with the following error:

 

1>------ Build started: Project: ohgensrc, Configuration: All Win32 ------

1>Performing Makefile project actions

1>Microsoft (R) Program Maintenance Utility Version 9.00.21022.08

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1> ..\..\gensrc\gensrc.py -xdlv --oh_dir=..

1>  File "c:\build_ql_0_9_7\gensrc\gensrc.py", line 51

1>    print USAGE_ERROR % { 'scriptName' : sys.argv[0] }

1>                    ^

1>SyntaxError: invalid syntax

1>NMAKE : fatal error U1077: '..\..\gensrc\gensrc.py' : return code '0x1'

1>Stop.

1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"

1>Build log was saved at "file://c:\build_ql_0_9_7\ObjectHandler\gensrc\build\vc\BuildLog.htm"

1>ohgensrc - 2 error(s), 0 warning(s)

 

This looks like Python doesn’t understand the gensrc.py script. I have

 

Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on win32

 

If I try to execute gensrc.py from the IDLE Python GUI directly, I get a similar error.

 

I’m no expert on Python, so I don’t have a clue where this problem might be coming from.

 

Can anyone help?

 

Thanks,

Erik

 

UTS CRICOS Provider Code: 00099F
DISCLAIMER: This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments. If
you have received this message in error, please notify the sender immediately
and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority,
states them to be the views of the University of Technology Sydney. Before
opening any attachments, please check them for viruses and defects.

Think. Green. Do.

Please consider the environment before printing this email.

------------------------------------------------------------------------------


_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users