Quantcast

install Quickfix FIX engine on windows, use python API to build a client/buy-side

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

install Quickfix FIX engine on windows, use python API to build a client/buy-side

Asaf Ben Gal
Hello,

I want to install the Quickfix FIX engine on windows and use its python API to build a client/buy-side application.

I'm using windows 10, 64bit
Python 2.7

I don't know how to install the Quickfix engine, I tried to do the listed below to no sucess:
1. pip install quickfix but it gives errors like "failed building wheel for quickfix"
2. Downloading the "source zip" file from "http://www.quickfixengine.org/" and using visual studio community 2015 to "batch build" the "quickfix_vs12.sln" but it gives errors that "quickfix.lib" does not exist.
3. install with "quickfix‑1.14.3‑cp27‑none‑win_amd64.whl" from "http://www.lfd.uci.edu/~gohlke//pythonlibs/" but it also didn't work...

I tried more stuff to no success :(

Can anyone help please with the steps needed to:
1. Install quickfix engine on windows 10 amd64
2. Make the Python package of quickfix available to use in order to build a buy-side client.

Thanks,

Asaf
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: install Quickfix FIX engine on windows, use python API to build a client/buy-side

Zhangjianyue
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/


Hi, 

Perhaps module wheel is not installed in your system.
Try to do as following:
  search wheel
2. Enter pip document:
pip install *.whl
3. Reinstall quickfix py.

It may help you, and good luck.
Cheers.
Johnson


At 2017-04-27 22:01:27, "Asaf Ben Gal" <[hidden email]> wrote: >QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/ > >Hello, > >I want to install the Quickfix FIX engine on windows and use its python API >to build a client/buy-side application. > >I'm using windows 10, 64bit >Python 2.7 > >I don't know how to install the Quickfix engine, I tried to do the listed >below to no sucess: >1. pip install quickfix but it gives errors like "failed building wheel for >quickfix" >2. Downloading the "source zip" file from "http://www.quickfixengine.org/" >and using visual studio community 2015 to "batch build" the >"quickfix_vs12.sln" but it gives errors that "quickfix.lib" does not exist. >3. install with "quickfix‑1.14.3‑cp27‑none‑win_amd64.whl" from >"http://www.lfd.uci.edu/~gohlke//pythonlibs/" but it also didn't work... > >I tried more stuff to no success :( > >Can anyone help please with the steps needed to: >1. Install quickfix engine on windows 10 amd64 >2. Make the Python package of quickfix available to use in order to build a >buy-side client. > >Thanks, > >Asaf > > > >-- >View this message in context: http://quickfix.13857.n7.nabble.com/install-Quickfix-FIX-engine-on-windows-use-python-API-to-build-a-client-buy-side-tp6874.html >Sent from the QuickFIX - Dev mailing list archive at Nabble.com. > >------------------------------------------------------------------------------ >Check out the vibrant tech community on one of the world's most >engaging tech sites, Slashdot.org! http://sdm.link/slashdot >_______________________________________________ >Quickfix-developers mailing list >[hidden email] >https://lists.sourceforge.net/lists/listinfo/quickfix-developers

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfix-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: install Quickfix FIX engine on windows, use python API to build a client/buy-side

Asaf Ben Gal
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/


Hi Johnson,

Thanks for the quick reply!

Finally I managed to install quickfix and install the quickfix py. 

My problem was that I had both python 3 and python 2 on my machine... removed python 3 and it worked.


By the way, I installed quickfix by downloading the "source tar" and building the "quickfix_vs12.sln" in Microsoft visual studio.

The thing is that it had a syntax error in the "utility.cpp' file in line number 399 in the "bool thread_spawn( THREAD_START_ROUTINE func, void* var, thread_id& thread )" method.

The original (399 line) was: "result = _beginthreadex( NULL, 0, &func, var, 0, &id );" and I deleted the "&" sign so that it would be: "result = _beginthreadex( NULL, 0, func, var, 0, &id );"

and only then the build was successful...

Is it a known issue? Did I fix it correctly? I'm not familiar with c# so I have no idea why it worked....

Thanks again,

Asaf 



On Fri, Apr 28, 2017 at 5:54 AM, Zhangjianyue <[hidden email]> wrote:
Hi, 

Perhaps module wheel is not installed in your system.
Try to do as following:
  search wheel
2. Enter pip document:
pip install *.whl
3. Reinstall quickfix py.

It may help you, and good luck.
Cheers.
Johnson


At 2017-04-27 22:01:27, "Asaf Ben Gal" <[hidden email]> wrote: >QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/ > >Hello, > >I want to install the Quickfix FIX engine on windows and use its python API >to build a client/buy-side application. > >I'm using windows 10, 64bit >Python 2.7 > >I don't know how to install the Quickfix engine, I tried to do the listed >below to no sucess: >1. pip install quickfix but it gives errors like "failed building wheel for >quickfix" >2. Downloading the "source zip" file from "http://www.quickfixengine.org/" >and using visual studio community 2015 to "batch build" the >"quickfix_vs12.sln" but it gives errors that "quickfix.lib" does not exist. >3. install with "quickfix‑1.14.3‑cp27‑none‑win_amd64.whl" from >"http://www.lfd.uci.edu/~gohlke//pythonlibs/" but it also didn't work... > >I tried more stuff to no success :( > >Can anyone help please with the steps needed to: >1. Install quickfix engine on windows 10 amd64 >2. Make the Python package of quickfix available to use in order to build a >buy-side client. > >Thanks, > >Asaf > > > >-- >View this message in context: http://quickfix.13857.n7.nabble.com/install-Quickfix-FIX-engine-on-windows-use-python-API-to-build-a-client-buy-side-tp6874.html >Sent from the QuickFIX - Dev mailing list archive at Nabble.com. > >------------------------------------------------------------------------------ >Check out the vibrant tech community on one of the world's most >engaging tech sites, Slashdot.org! http://sdm.link/slashdot >_______________________________________________ >Quickfix-developers mailing list >[hidden email] >https://lists.sourceforge.net/lists/listinfo/quickfix-developers


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfix-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: install Quickfix FIX engine on windows, use python API to build a client/buy-side

K. Frank
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/

Hello Asaf!

On Fri, Apr 28, 2017 at 4:47 AM, Asaf Ben Gal <[hidden email]> wrote:
> ...
> By the way, I installed quickfix by downloading the "source tar" and building the "quickfix_vs12.sln" in Microsoft visual studio.
>
> The thing is that it had a syntax error in the "utility.cpp' file in line number 399 in the "bool thread_spawn( THREAD_START_ROUTINE func, void* var, thread_id& thread )" method.

I saw the same problem with quickfix-1.13.3 back in 2013.

> The original (399 line) was: "result = _beginthreadex( NULL, 0, &func, var, 0, &id );" and I deleted the "&" sign so that it would be: "result = _beginthreadex( NULL, 0, func, var, 0, &id );"
>
> and only then the build was successful...

I made the same correction and was able to build and run quickfix in a
smallish application without any obvious problems.

> Is it a known issue? Did I fix it correctly? I'm not familiar with c# so I have no idea why it worked....

(By the way, I think you mean c++ here.)

I started a thread on this list about it.  Here's a link to my original post:

   https://sourceforge.net/p/quickfix/mailman/message/30333881/

and to the entire thread:

   https://sourceforge.net/p/quickfix/mailman/quickfix-developers/thread/CAKEnbTMwYrXCU1e55ywAzXxLnVoPQfcMyxay%3DEDkNq_OHqoBvg%40mail.gmail.com/#msg30333881

In that thread Mike Gatny said:

   It works with the VS compiler (32-bit, anyway).

I don't doubt that it worked for him, but this never made any sense to me.
My reading of the original code (with "&func") is such that I can't see how
it would ever compile, even with a "tolerant" compiler.

(I should note that I was doing a presumably unsupported windows build
using mingw-w64, a windows port of gcc, rather than ms visual studio.)

It's weird.  You see exactly what I would expect on windows -- a compile
error when using "&func".  But, as far as I can tell, lots of people build and
run quickfix on windows, presumably without seeing this error.

> Thanks again,
>
> Asaf


Happy FIXing!


K. Frank

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfix-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: install Quickfix FIX engine on windows, use python API to build a client/buy-side

Asaf Ben Gal
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/


Hello Frank!

Thanks very much for the quick reply! I'm sorry for my late reply...

It is weird that people compile it with  "&func" and it works for them... but as you said, it probably depends on the compiler...

These things are all about the try and error process, but the most important thing is that eventually it works!!

Happy FIXing too!

Best,

Asaf 









On Sun, May 7, 2017 at 5:10 PM, K. Frank <[hidden email]> wrote:
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/

Hello Asaf!

On Fri, Apr 28, 2017 at 4:47 AM, Asaf Ben Gal <[hidden email]> wrote:
> ...
> By the way, I installed quickfix by downloading the "source tar" and building the "quickfix_vs12.sln" in Microsoft visual studio.
>
> The thing is that it had a syntax error in the "utility.cpp' file in line number 399 in the "bool thread_spawn( THREAD_START_ROUTINE func, void* var, thread_id& thread )" method.

I saw the same problem with quickfix-1.13.3 back in 2013.

> The original (399 line) was: "result = _beginthreadex( NULL, 0, &func, var, 0, &id );" and I deleted the "&" sign so that it would be: "result = _beginthreadex( NULL, 0, func, var, 0, &id );"
>
> and only then the build was successful...

I made the same correction and was able to build and run quickfix in a
smallish application without any obvious problems.

> Is it a known issue? Did I fix it correctly? I'm not familiar with c# so I have no idea why it worked....

(By the way, I think you mean c++ here.)

I started a thread on this list about it.  Here's a link to my original post:

   https://sourceforge.net/p/quickfix/mailman/message/30333881/

and to the entire thread:

   https://sourceforge.net/p/quickfix/mailman/quickfix-developers/thread/CAKEnbTMwYrXCU1e55ywAzXxLnVoPQfcMyxay%3DEDkNq_OHqoBvg%40mail.gmail.com/#msg30333881

In that thread Mike Gatny said:

   It works with the VS compiler (32-bit, anyway).

I don't doubt that it worked for him, but this never made any sense to me.
My reading of the original code (with "&func") is such that I can't see how
it would ever compile, even with a "tolerant" compiler.

(I should note that I was doing a presumably unsupported windows build
using mingw-w64, a windows port of gcc, rather than ms visual studio.)

It's weird.  You see exactly what I would expect on windows -- a compile
error when using "&func".  But, as far as I can tell, lots of people build and
run quickfix on windows, presumably without seeing this error.

> Thanks again,
>
> Asaf


Happy FIXing!


K. Frank

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfix-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-developers


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfix-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
Loading...