[Quickfix-developers] Python library errors
Brought to you by:
orenmnero
From: Ian S. <dar...@gm...> - 2007-10-26 19:45:02
|
Hello, I would greatly appreciate assistance with python for Quickfix My major issue is that there are no working examples of a Python connection working. I tested my config file using Banzai, and things are working for that connection now. On my compiled version with Python 2.5 included, I get the following error: NotImplementedError: No matching function for overloaded 'new_SocketAcceptorBase' I have read through all of the documentation I can find, and all of the python examples have flaws errors and bugs. I fixed a few in order to make the code below, but I'm still having serious issues. Maybe this is simple, and I just need to vary the parameters I pass to SocketAcceptor. Building Python with quickfix took a very long time, I'm going to go through the process again and try to write up better examples so other people have a more "copy+paste" experience. Here is the error and code, from a terminal session. import quickfix def connecttest(file): try: settings = quickfix.SessionSettings(file) application = Application() storeFactory = quickfix.FileStoreFactory(settings) logFactory = quickfix.FileLogFactory(settings) acceptor = quickfix.SocketAcceptor(application, storeFactory, settings, logFactory) acceptor.start() # while condition == true: do something acceptor.stop() except quickfix.ConfigError, e: print e connecttest("/tmp/config.ini") Traceback (most recent call last): File "<pyshell#41>", line 1, in <module> connecttest("/tmp/config.ini") File "<pyshell#40>", line 7, in connecttest acceptor = quickfix.SocketAcceptor(application, storeFactory, settings, logFactory) File "/usr/lib/python2.5/site-packages/quickfix.py", line 19982, in __init__ def __init__(self, application, storeFactory, settings, logFactory): File "/usr/lib/python2.5/site-packages/quickfix.py", line 19940, in __init__ this = _quickfix.new_SocketAcceptorBase(*args) #orig NotImplementedError: No matching function for overloaded 'new_SocketAcceptorBase' -- Ian Smith |