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)




"I used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
"I just wanted to say how happy I am with your service. I was able to download the API docs last week and I was able to replicate Interactive Brokers historical bar queries and realtime bar queries over the weekend. That was about one of the fastest integrations that I've ever done and it works perfectly!!!!" - Comment from Jason via Email
"I like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"I just wanted to let u know that your data feed/service is by far the best!!! Your unfiltered tick data is excellent for reading order flow and none of your competitors delivers this quality of data!" - Comment from Peter via Email
"You are much better than lawyers or the phone company because you answer the phone when I call! I just love your customer service." - Comment from Isreal
"It’s so nice to be working with real professionals!" - Comment from Len
"If someone needs the best quality data and backfill beyond what their broker provides at a rate that is the best in the industry, I highly recommend IQFeed." - Comment from Josh via Public Forum
"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"I have been using IQFeed now for a few years in MultiCharts and I have zero complaints. Very, very rare to have any data hiccups or anything at all go wrong." - Comment from Public Forum
"Thank you so much - awesome feed, awesome service!" - Comment from Greg via Email
Home  Search  Register  Login  Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTNMarkets on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »Archive (2017 and earlier) »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 Guru-
Posts: 302
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: 53
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: Fri April 26, 2024 11:19 AM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003