Join the 80,000 other DTN customers who enjoy the fastest, most reliable data available. There is no better value than DTN!

(Move your cursor to this area to pause scrolling)




"With HUGE volume on AAPL and RIMM for 2 days, everyone in a trading room was whining about freezes, crashes and lag with *******, RealTick, TS and Cyber. InvestorRT with IQFeed was rock solid. I mean SOLID!" - Comment from Public IRC Chat
"DTN has never given me problems. It is incredibly stable. In fact I've occasionally lost the data feed from Interactive Brokers, but still been able to trade because I'm getting good data from DTN." - Comment from Leighton
"I've never had DTN go out on me since switching. ******* would go down a couple times every month when I was using them." - Comment from Bryce in AL.
"I was with ******* for 4 years at $230 a month, this is a huge savings for me, GOD BLESS YOU PEOPLE," - Comment from T.S. via Email
"IQFeed version 4 is a real screamer compared to anything else I have seen." - Comment from Tom
"Thanks for following up with me. You guys do a great job in tech support." - Comment from Phelps
"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"I am keeping IQFeed, much better reliabilty than *******. I may refer a few other people in the office to switch as well." - Comment from Don
"Its working FABULOUSLY for me!! Holy cow...there has been so much I've been missing lately, and with this feed and Linnsoft software...I'm in the game now." - Comment from Chris R.
"I had always used ******* but for the past 2 weeks have been trying DTN IQFeed. Customer support has been extraordinary. They call just to make sure your problem hasn't recurred." - Comment from Public Forum
Home  Search  Register  Login  Blogs Recent Posts

Information on Various DTN Products:
DTN IQFeed | DTN ProphetX | DTN Ag | NxCore
Follow DTN_IQFeed on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »IQFeed Developer »IQFeed Developer Support »Cannot get iqconnet.exe to run on Ubuntu AWS Instance (import_dll Library mfc110.dll)
Author Topic: Cannot get iqconnet.exe to run on Ubuntu AWS Instance (import_dll Library mfc110.dll) (7 messages, Page 1 of 1)

karunkrishna
-Interested User-
Posts: 5
Joined: Dec 23, 2017


Posted: Dec 24, 2017 11:34 AM          Msg. 1 of 7
I use the iqconnect.exe on my windows machine with no problem. But I want to move my algo to AWS Ubuntu instance for more reliable automation.

I have been troubleshooting on stack-overflow but kind of stuck.

When I run the following command [IN] the following output [OUT] results below:

[IN]
ubuntu@ip_address:~/iqfeed$ wine iqconnect.exe -product ##APP_ID## -login ##USER## -password ##PASS## -autoconnect -savelogininfo

[OUT]
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:systray:initialize_systray Could not create tray window
err:module:import_dll Library mfc110.dll (which is needed by L"Z:\\home\\ubuntu\\iqfeed\\iqconnect.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\home\\ubuntu\\iqfeed\\iqconnect.exe" failed, status c0000135

not sure how to address this issue.

Do i need to find mfc100.dll from my local windows PC and save it in the directory "\home\ubuntu\iqfeed\"?



My configurations are:

configuration:wine-1.6.2
the iqconnect.exe i have copied over came from the following build 5.2.6.0

Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
4.4.0-1041-aws #50-Ubuntu SMP Wed Nov 15 22:18:17 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


Quote:

stargrazer
-DTN Evangelist-
Posts: 243
Joined: Jun 13, 2005

Right Here & Now


Posted: Dec 24, 2017 12:39 PM          Msg. 2 of 7
two items:

1) you will need to have the i386 wine packages installed

2) you need to run the iqfeed installer inside the wine environment, you can't just copy iqconnect over.

hope this helps.

karunkrishna
-Interested User-
Posts: 5
Joined: Dec 23, 2017


Posted: Dec 24, 2017 12:45 PM          Msg. 3 of 7
Let me try that aswell. Do you mean the run wine on iqfeed_client.exe (http://www.iqfeed.net/iqfeed_client.exe)?

Copying over mcf110.dll seemed to where iqconnect.exe was located seem to get be future.
For example. it created the DTN folder and the following log statement. But Wine terminates right away.
Log statement below and what wine exported below that (fyi)

This is in the IQConnectLog.txt file

=== IQConnect Log File Opened On Sun Dec 24 18:36:32 ===
Current Log Levels,Connectivity,Information,Admin
Current IQFeed Version,5.2.6.0
STATUS Connectivity 42 0 2017-12-24 18:36:32 Creating trader account verification thread. Status idle
STATUS Connectivity 44 0 2017-12-24 18:36:32 Initializing the login thread
STATUS Connectivity 9 0 2017-12-24 18:36:32 Getting login from registry: ##USER###
STATUS Connectivity 9 0 2017-12-24 18:36:32 Getting Password from registry: (8 characters)
STATUS Connectivity 9 0 2017-12-24 18:36:32 Processing Command Line
STATUS Connectivity 9 0 2017-12-24 18:36:32 Received product ID from 3rd party application: (26 characters)
STATUS Connectivity 9 0 2017-12-24 18:36:32 Received login from 3rd party application: (##USER###)
STATUS Connectivity 9 0 2017-12-24 18:36:32 Recieved password from 3rd party application: (8 characters)
STATUS Connectivity 9 0 2017-12-24 18:36:32 Received autoconnect from 3rd party application
STATUS Connectivity 9 0 2017-12-24 18:36:32 Received savelogininfo from 3rd party application
STATUS Connectivity 9 0 2017-12-24 18:36:32 Ignoring autoconnect from 3rd party application because we don't have credentials yet.
STATUS Connectivity 9 0 2017-12-24 18:36:32 Ignoring savelogininfo from 3rd party application because we don't have credentials yet.
STATUS Information 9 0 2017-12-24 18:36:32 Initialization complete.
STATUS Connectivity 44 0 2017-12-24 18:36:32 Retrieving IP addresses.
STATUS Connectivity 44 0 2017-12-24 18:36:32 Connecting to server (login.interquote.com) on port 60020.
STATUS Connectivity 44 0 2017-12-24 18:36:32 Connect Process: Status 1.
STATUS Connectivity 44 0 2017-12-24 18:36:32 Connect Process: Status 2.
STATUS Connectivity 43 0 2017-12-24 18:36:32 Authorizations Thread shutting down (156384765) - Context was terminated




ubuntu@ip-172-31-44-131:~/iqfeed$ wine iqconnect.exe -product ##APP_ID## -login ##USER###-password ##PASS## -autoconnect -savelogininfo
err:winediag:nulldrv_CreateWindow Application tried to create a window, but no driver could be loaded.
err:winediag:nulldrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.

karunkrishna
-Interested User-
Posts: 5
Joined: Dec 23, 2017


Posted: Dec 24, 2017 01:03 PM          Msg. 4 of 7
Also when I run wine on iqconnect.exe or iqfeed_client.exe (setup exe)

I get the following error. Not sure if I need to add any arguments to wine, etc.

ubuntu@ip-172-31-44-131:~/iqfeed$ wine iqfeed_client.exe
err:winediag:nulldrv_CreateWindow Application tried to create a window, but no driver could be loaded.
err:winediag:nulldrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.

ubuntu@ip-172-31-44-131:~/iqfeed$ echo $DISPLAY
:0
Edited by karunkrishna on Dec 24, 2017 at 01:04 PM

karunkrishna
-Interested User-
Posts: 5
Joined: Dec 23, 2017


Posted: Dec 24, 2017 01:49 PM          Msg. 5 of 7
Able to get further by launching process as headless. Using command below. However does not appear to connect like windows.
Not sure If I need to send another command to keep connection connected.

xvfb-run -s -noreset -a wine iqconnect.exe -product ##APP_ID## -login ##USER## -password ##PASS## -autoconnect -savelogininfo



tail: IQConnectLog.txt: file truncated
=== IQConnect Log File Opened On Sun Dec 24 19:44:44 ===
Current Log Levels,Connectivity,Information,Admin
Current IQFeed Version,5.2.6.0
STATUS Connectivity 43 0 2017-12-24 19:44:44 Creating trader account verification thread. Status idle
STATUS Connectivity 45 0 2017-12-24 19:44:44 Initializing the login thread
STATUS Connectivity 9 0 2017-12-24 19:44:44 Getting login from registry: ##USER##)
STATUS Connectivity 9 0 2017-12-24 19:44:44 Getting Password from registry: (8 characters)
STATUS Connectivity 9 0 2017-12-24 19:44:44 Processing Command Line
STATUS Connectivity 9 0 2017-12-24 19:44:44 Received product ID from 3rd party application: (26 characters)
STATUS Connectivity 9 0 2017-12-24 19:44:44 Received login from 3rd party application: (##USER##)
STATUS Connectivity 9 0 2017-12-24 19:44:44 Recieved password from 3rd party application: (8 characters)
STATUS Connectivity 9 0 2017-12-24 19:44:44 Received autoconnect from 3rd party application
STATUS Connectivity 9 0 2017-12-24 19:44:44 Received savelogininfo from 3rd party application
STATUS Connectivity 9 0 2017-12-24 19:44:44 Ignoring autoconnect from 3rd party application because we don't have credentials yet.
STATUS Connectivity 9 0 2017-12-24 19:44:44 Ignoring savelogininfo from 3rd party application because we don't have credentials yet.
STATUS Information 9 0 2017-12-24 19:44:44 Initialization complete.
STATUS Connectivity 45 0 2017-12-24 19:44:44 Retrieving IP addresses.
STATUS Connectivity 45 0 2017-12-24 19:44:44 Connecting to server (login.interquote.com) on port 60020.
STATUS Connectivity 45 0 2017-12-24 19:44:44 Connect Process: Status 1.
STATUS Connectivity 45 0 2017-12-24 19:44:44 Connect Process: Status 2.
STATUS Connectivity 45 0 2017-12-24 19:44:44 Connect Process: Status 3.
STATUS Connectivity 45 0 2017-12-24 19:44:44 Connected to server 14.
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 0 (66.112.156.213:60000)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 1 (66.112.156.181:60004)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 2 (66.112.156.215:60002)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 3 (66.112.156.211:60009)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 4 (66.112.156.213:60001)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 5 (66.112.156.213:60005)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 6 (66.112.156.213:60012)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 7 (66.112.156.200:60003)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 8 (66.112.156.209:60015)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 9 (66.112.156.216:60050)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 10 (66.112.156.213:60014)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 11 (66.112.156.218:60003)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 12 (66.112.156.212:60016)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Processed Server 13 (66.112.156.208:60018)
STATUS Connectivity 45 0 2017-12-24 19:44:44 Connection to server 14 closed.
STATUS Connectivity 45 0 2017-12-24 19:44:44 Connection to server (14) closed gracefully.
STATUS Connectivity 45 0 2017-12-24 19:44:44 0 products left to authenticate. Ready
STATUS Connectivity 45 0 2017-12-24 19:44:44 Resetting socket in authentication thread.

quickTick
-Interested User-
Posts: 35
Joined: Nov 17, 2013


Posted: Dec 24, 2017 07:23 PM          Msg. 6 of 7
Not sure what exactly the output means, but IQConnect has a configurable timeout that determines how long it waits for a client application to connect. This timeout is quite short by default, so it is good to have the client app already trying to open a connection as you issue that command. After that, IQConnect closes automatically. As I said, I'm not sure if your output indicates this situation.

karunkrishna
-Interested User-
Posts: 5
Joined: Dec 23, 2017


Posted: Dec 24, 2017 07:40 PM          Msg. 7 of 7
That did help.
Looks like you need to keep a socket open or it kicks you out after 5 second.
The error log doesn't suggest that in the file attached...but I believe that is because I was not opening the required ports properly.

You can consider this closed.
 

 

Time: Tue January 16, 2018 1:29 AM CFBB v1.2.0 15 ms.
© AderSoftware 2002-2003