|
From: Michael <mdr...@we...> - 2012-07-04 20:00:51
|
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
|
|
From: Ferdinando A. <na...@am...> - 2012-07-05 14:10:27
|
Hi Micheal in order to achieve your goal you should compile Python with VC2010, or Pyhton and QL bindings would never link. Anyway that is definitely not the suggested way to go, as you might discover that also QL is not friendly with VC2010. Try to go back to VC2008. I for one would probably just skip VC2010 altogheter ciao -- Nando On Wed, Jul 4, 2012 at 10:00 PM, Michael <mdr...@we...> wrote: > 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 > Qua...@li... > https://lists.sourceforge.net/lists/listinfo/quantlib-dev > |
|
From: Didrik P. <dp...@en...> - 2012-07-05 14:47:49
|
On 5 July 2012 16:09, Ferdinando Ametrano <na...@am...> wrote: > Hi Micheal > > in order to achieve your goal you should compile Python with VC2010, > or Pyhton and QL bindings would never link. > Anyway that is definitely not the suggested way to go, as you might > discover that also QL is not friendly with VC2010. > > Try to go back to VC2008. I for one would probably just skip VC2010 altogheter > > ciao -- Nando > > On Wed, Jul 4, 2012 at 10:00 PM, Michael <mdr...@we...> wrote: >> 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 This is an issue with distutils that is not aware of VC2010. By tweaking your environment variables, you can bypass that. You might have issues related to the manifest in you files. I have solved that issue with Cython and some wrappers built under VS2010 lately. I don't know how SWIG behaves though. -- Didrik |
|
From: Luigi B. <lui...@gm...> - 2012-07-05 14:31:14
|
Nando,
I agree with VC2008 being the preferred compiler for the Python
module, but what do you mean with "QL is not friendly with VC2010"?
Luigi
On Thu, Jul 5, 2012 at 4:09 PM, Ferdinando Ametrano <na...@am...> wrote:
> Hi Micheal
>
> in order to achieve your goal you should compile Python with VC2010,
> or Pyhton and QL bindings would never link.
> Anyway that is definitely not the suggested way to go, as you might
> discover that also QL is not friendly with VC2010.
>
> Try to go back to VC2008. I for one would probably just skip VC2010 altogheter
>
> ciao -- Nando
>
> On Wed, Jul 4, 2012 at 10:00 PM, Michael <mdr...@we...> wrote:
>> 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
>> Qua...@li...
>> https://lists.sourceforge.net/lists/listinfo/quantlib-dev
>>
>
> ------------------------------------------------------------------------------
> 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
> Qua...@li...
> https://lists.sourceforge.net/lists/listinfo/quantlib-dev
|
|
From: Ferdinando A. <na...@am...> - 2012-07-05 14:40:51
|
> I agree with VC2008 being the preferred compiler for the Python > module, but what do you mean with "QL is not friendly with VC2010"? Is the 2010 project actively maintained? |
|
From: Luigi B. <lui...@gm...> - 2012-07-05 15:37:50
|
Sure it is. At the very least, the one released in 1.2 works. Luigi On Thu, Jul 5, 2012 at 4:40 PM, Ferdinando Ametrano <na...@am...> wrote: > Is the 2010 project actively maintained? |
|
From: Ferdinando A. <na...@am...> - 2012-07-05 15:49:35
|
ok... so shame on me as the problem is just for QLXL which is not supported in 2010... :-( On Thu, Jul 5, 2012 at 5:37 PM, Luigi Ballabio <lui...@gm...> wrote: > Sure it is. At the very least, the one released in 1.2 works. > > Luigi > > On Thu, Jul 5, 2012 at 4:40 PM, Ferdinando Ametrano <na...@am...> wrote: >> Is the 2010 project actively maintained? |
|
From: Eric E. <eri...@na...> - 2012-07-05 20:21:50
|
Quoting Ferdinando Ametrano <na...@am...>: > ok... so shame on me as the problem is just for QLXL which is not > supported in 2010... :-( i can try to rectify that when i package up the final release. =================================================== Eric Ehlers nazcatech sprl | Brussels | http://www.nazcatech.be * Distributed computing for pricing analytics * Use Microsoft Excel as a client to the Grid |