question

Upvotes
Accepted
5 1 0 1

RDP libraries: 'Request' object has no attribute 'prepare'

Hi

I am working with a client that has a free trial for ERT Cloud and they are getting the following error message when executing the example "2.3.0 - Content - StreamingPrices - Update DataFrame.ipynb" using the RDP libraries (they are trying to connect to the Cloud, not Eikon or TREP):


2020-09-25 13:44:33,956 - Session session.platform - Thread 140075215456064 | MainThread
EDP Authentication failed. Error code -1 | AttributeError("'Request' object has no attribute 'prepare'",)


Python version is 3.6.8

2020-09-25 13:44:43$ python
Python 3.6.8 |Anaconda, Inc.| (default, Dec 30 2018, 01:22:34)
[GCC 7.3.0] on linux


Any idea ?


rdp-apirefinitiv-data-platformrefinitiv-data-platform-libraries
icon clock
10 |1500

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

Upvotes
Accepted
41 1 0 1

Hi there, I had the same issue and it's due to changes in the httpx dependency.

Refinitiv suggested downgrading to 0.14.2 as a workaround (pip install httpx==0.14.2)


https://community.developers.refinitiv.com/questions/66483/port-number-was-not-identified-httpx-api-has-chang.html

icon clock
10 |1500

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

Upvotes
5 1 0 1

Many thanks Simon, That worked fine !

icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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