Login  Register

Use QuantLib Swig Python Extension with VS2010

Posted by Michael-643 on Jul 04, 2012; 8:00pm
URL: http://quantlib.414.s1.nabble.com/Use-QuantLib-Swig-Python-Extension-with-VS2010-tp13445.html

Dear all,

I'm trying to compile the python swig extension. Unfortunately this is not working. My current setup looks like this.

- QuantLib Version 1.1
- Python Version 2.7.2
- Visual Studio 2010 SP1

When I try to compile the python swig extensions I get the following error:
running build
running build_py
running build_ext
building 'QuantLib._QuantLib' extension
error: Unable to find vcvarsall.ba
I googled for solutions, but all the indications I found were similar to what I found here:

http://slacy.com/blog/2010/09/python-unable-to-find-vcvarsall-bat/

Essentially the problem seems to be: python 2.7 is only "designed" to be compiled with VS2008 (and before) and you can not mix a (pre)compiled python 2.7 with libraries compiled with VS2010.

Now, it is not that easy to have an older version of VS installed on my system and in any case I would really prefer to stick with VS2010.

The question is: does anybody have a similar setup to mine and was able to compile the python swig extensions? If so, did you have to change things and what exactly has it been?

Any help would be very much appreciated.

Kind regards,

Michael

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev