question

Upvotes
Accepted
35 3 3 7

Problem in connecting using RDP in Python despite valid App Key

Dear Refinitiv team, I'm trying to implement the solution mentioned in the following question:

https://community.developers.refinitiv.com/questions/69674/rdp-in-python-not-connecting-despite-valid-app-key.html

The output of the logging file is the below. The rdp.open_desktop_session() command basically stays stuck (i.e. runs) at this step with no further progress. I can't really understand what this means--would you by any chance have an interpretation? My Eikon App key works fine (I can connect using the Eikon API without issue).

Thank you very much in advance,

Adrien

rdp.open_desktop_session(myAppKey)
2021-06-15 12:12:43,884 - Session session - Thread 1041808 | MainThread
Request to http://127.0.0.1:9060/api/status
    headers = {'x-tr-applicationid': myAppKey}
    params = None
2021-06-15 12:12:43,884 - session - DEBUG - Request to http://127.0.0.1:9060/api/status
    headers = {'x-tr-applicationid': myAppKey}
    params = None
rdp-apirefinitiv-data-platform
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
35 3 3 7
Hello again @Alex Putkov., I finally managed to set up a new Python virtual environment and re-installed all packages, including the httpx and httpcore versions that you mentioned (nearby: httpx 0.18.1 and httpcore 0.13.6). Everything works fine now. What a saga... a big thank you for all your help these past weeks. Very much appreciated! All the best and thanks again.
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
131 1 0 0

@AAMZ

There was a disruption of login access on RDP earlier today. It has been resolved. Could you try restarting Eikon application and running your code again?
If the issue persists, please follow the steps in Chapter 3 "Verify that Eikon Desktop is running properly and APIPROXY service is enabled" of the article titled "Eikon Data API(Python) Troubleshooting" to generate APIProxy and SxS log files. Put these log files in a zip archive and post them on this thread.
Alternatively you can open a support case with Refinitiv Helpdesk by using Contact Us capability in Eikon application or by visiting MyRefinitiv.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Eikon.20210616.164242.p1087664.zip

@Alex.Putkov12 Thank you for the helpful response, I've followed the steps outlined. I'm still unfortunately having issues--please see attached the two files; the output looks quite different to the screenshots in section 3 the Troubleshooting guide you provided (I can successfully follow all of those steps, including confirming that the ports are both 9000 and 9060 and are open, but somehow the output of the API Proxy file is much less detailed than in the screenshots of the troubleshooting guide).

Thank you again for any help you can provide.

@AAMZ

The log files that you shared have been created with the default trace level. Did you click Configure button in the bottom left corner of Configuration Manager window after changing the trace level for Refinitiv Desktop? And did you restart Eikon application?

@Alex.Putkov12 Thank you for taking a look, I was trying to follow the instructions but unfortunately the "Configure" button in the Configuration Manager is greyed out even after I change the trace level, so I can't seem to 'save' the changes to the trace level. (please see attached a screenshot)

Besides that I have been restarting Eikon and trying again, but I guess I need to be able to set the right trace level in order to get you the log info you need. I'm working on a shared server--do you think that Admin rights might be needed in order for the "Configure" button to not be greyed out and allow me save the adjusted trace level?

Thank you very much again.

config_mgr_screenshot.png


Show more comments
Upvotes
39.2k 75 11 27

@AAMZ

Thank you for the log files. It looks like Eikon API Proxy works as expected, however RDP Library has a problem communicating with it on your machine. The issue is likely in one of the dependencies of RDP Library (httpx, nest-asyncio etc.). I understand you currently have RDP Library v1.0.0.a7 installed. Could you try updating it to the latest version (currently 1.0.0.a8.post2)? Run

pip install refinitiv-dataplatform --upgrade

After the upgrade of RDP Library, if you're still experiencing the issue, could you provide version numbers of RDP Library dependencies installed on your machine? Run for example "conda list" (or "pip list", if you don't have conda), save the output as a text file and post it on this thread.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

@Alex.Putkov12 thank you for getting back to me with these clarifications. Just to confirm that I've asked my IT dept. to help with the necessary upgrade (I don't have admin rights and so cannot do this myself). I'll let you know as soon as we've upgraded the package.


Thanks once again for your help

@Alex.Putkov12 : I've finally managed to get my IT department to upgrade the RDP library. Unfortunately, I'm still experiencing the same connection issues. Please find enclosed the list of the Python packages that are installed (you'll see there that I have the latest RDP library installed). In case it helps, I also include the latest SxS and API files from my session today.

Thank you again for any help you can provide, on our side we're really not sure how to proceed.

Best regards

requirements.txt

Eikon.20210716.145617.p1824612.zip



@AAMZ

Thank you for sharing the list of packages. This is a shot in the dark, but I would suggest updating the versions of httpx package to 0.18.2 and httpcore to 0.13.6. If this does not resolve the problem, you may want to rebuild your Python dev environment from scratch. Either create a new virtual dev environment using conda and install RDP Library into this environment. Or uninstall Python (maybe use this opportunity to update the version of Python you use) and reinstall it from scratch with any packages you require.

Show more comments
Click below to post an Idea Post Idea