Thread: [Quickfix-developers] install Quickfix FIX engine on windows, use python API to build a client/buy-
Brought to you by:
orenmnero
From: Asaf B. G. <asa...@gm...> - 2017-04-27 14:00:07
|
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. |
From: Zhangjianyue <zj...@16...> - 2017-04-28 02:55:02
|
Hi, Perhaps module wheel is not installed in your system. Try to do as following: 1. Download the whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/ 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" <asa...@gm...> 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 >Qui...@li... >https://lists.sourceforge.net/lists/listinfo/quickfix-developers |
From: Asaf B. G. <asa...@gm...> - 2017-04-28 08:47:21
|
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 <zj...@16...> wrote: > Hi, > > Perhaps module wheel is not installed in your system. > Try to do as following: > 1. Download the whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/ > <http://link.zhihu.com/?target=http%3A//www.lfd.uci.edu/%7Egohlke/pythonlibs/%23lxml> > 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" <asa...@gm...> 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 > >Qui...@li... > >https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > |
From: K. F. <kfr...@gm...> - 2017-05-07 14:10:13
|
Hello Asaf! On Fri, Apr 28, 2017 at 4:47 AM, Asaf Ben Gal <asa...@wh...> 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 |
From: Asaf B. G. <asa...@gm...> - 2017-05-08 18:56:38
|
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 <kfr...@gm...> wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/ > > Hello Asaf! > > On Fri, Apr 28, 2017 at 4:47 AM, Asaf Ben Gal <asa...@wh...> > 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 > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |