open_platform_session
Dear all,
I am new in the Eikon API world, I apologize in advance if I am posting a duplicate question but I did not find the answer I was looking for.
I have been working with python and Eikon API for a few day, connceting the script with a desktop session in order to create my analysis. I would like to enhance the script using a platform session in order to avoid to open every time The Refinitiv platform. I am using Example.RDPLibrary.Python guideline but running the code
rdp.open_platform_session(
APP_KEY,
rdp.GrantPassword(
username = RDP_LOGIN,
password = RDP_PASSWORD
)
)
I receive an error:
2020-10-02 11:16:31,727 - Session session.platform - Thread 9940 | MainThread
EDP Authentication failed. Error code -1 | TypeError("Expected object of type bytes or bytearray, got: ")
I tried to define APP_KEY, RDP_LOGIN and RDP_PASSWORD both as variables and call them from another script.
Can anyone suggest on this?
thank you very much in advance