Re: [Quickfix-users] Can't make Python API
Brought to you by:
orenmnero
From: aonlazio <aon...@fo...> - 2009-03-31 08:11:07
|
HI, I am also trying to install quickfix on windows without any success. >From my understanding from the previous posts, we got to have _quickfix.pyd which is the compiled file from c++ source. I roughly know that SWIG would do the job but I don't know how to do that in details yet. Let's brainstorm XD Aonlazio Quickfix-2 wrote: > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > I edited QuickfixPython.cpp to add the missing "const"s. C++ is not > a strength of mine so it's hardly surprising that after that I'm > getting a different error: > > Everything seems to install ok but when I enter "import quickfix42" > at a python prompt, I get: > > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib/python2.5/site-packages/quickfix42.py", line 1, in > <module> > import quickfix as fix > File "/usr/lib/python2.5/site-packages/quickfix.py", line 5, in > <module> > import _quickfix > ImportError: No module named _quickfix > > Any help much appreciated. > > On 10 Mar 2009, at 11:41, Quickfix wrote: > >> QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/ >> html/index.html >> QuickFIX Support: http://www.quickfixengine.org/services.html >> >> Hi all, >> >> Some python help would be much appreciated. >> >> ./configure --with-python=/usr/include/python2.5/ >> ...snip... >> make >> ...snip... >> QuickfixPython.cpp: In function 'int SWIG_Python_ConvertFunctionPtr >> (PyObject*, void**, swig_type_info*)': >> QuickfixPython.cpp:2052: error: invalid conversion from 'const char*' >> to 'char*' >> QuickfixPython.cpp: In function 'int SWIG_AsPtr_std_string(PyObject*, >> std::string**)': >> QuickfixPython.cpp:3987: warning: dereferencing type-punned pointer >> will break strict-aliasing rules >> QuickfixPython.cpp: In function 'int SWIG_AsVal_bool(PyObject*, >> bool*)': >> QuickfixPython.cpp:4026: warning: dereferencing type-punned pointer >> will break strict-aliasing rules >> QuickfixPython.cpp:4029: warning: dereferencing type-punned pointer >> will break strict-aliasing rules >> QuickfixPython.cpp: In function 'void SWIG_Python_FixMethods >> (PyMethodDef*, swig_const_info*, swig_type_info**, swig_type_info**)': >> QuickfixPython.cpp:165892: error: invalid conversion from 'const >> char*' to 'char*' >> >> Any suggestions? >> >> >> ---------------------------------------------------------------------- >> -------- >> _______________________________________________ >> Quickfix-users mailing list >> Qui...@li... >> https://lists.sourceforge.net/lists/listinfo/quickfix-users > > > ------------------------------------------------------------------------------ > _______________________________________________ > Quickfix-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-users > > -- View this message in context: http://www.nabble.com/Can%27t-make-Python-API-tp22433576p22764985.html Sent from the QuickFIX - User mailing list archive at Nabble.com. |