Re: [Quickfix-developers] Quickfix-developers Digest, Vol 17, Issue 10
Brought to you by:
orenmnero
|
From: Ian S. <dar...@gm...> - 2007-10-31 18:04:13
|
I was able to run the run_executor_python script you mentioned. When I ran the executor.py directly, my mouse changed shape and the window manager got weird in linux. Running the script file instead I was able to get it working. With some directory shuffling and and to prove I could, I was able to call executor.py directly. After comparing the two files, I found the issue was linked to my use of quickfix.Application rather than having written my own version of the same class used in the script also called Application. Another example I found uses MyApplication() instead but doesn't mention anything about it. Long story (3.5 weeks) short, I needed to inherit rather than instantiate. Ian Smith > Message: 2 > Date: Tue, 30 Oct 2007 09:43:37 -0500 > From: "Chris Busbey" <cb...@co...> > Subject: Re: [Quickfix-developers] Python library errors > To: qui...@li... > Message-ID: > <67c...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > Were you able to run the run_executor_python script in the bin directory? > > <http://www.quickfixengine.org/services.html> > > > > 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 > > |