question

Upvotes
Accepted
1 0 0 1

newsAlerts Python example

I have downloaded the python example pack. The examples to retrieve market data work fine.

For newsAlert, I get an error : sqsQueue.py , import boto3 , no module named boto3.

Can you give some advice on how to run the newsAlerts example?

rdp-apirefinitiv-data-platform
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.

@wim.ooms1

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

@wim.ooms1

Hi,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvotes
Accepted
9.6k 10 7 7

Hello @wim.ooms1

newAlerts example use sqsQueue module:

import requests
import json
import rdpToken
import sqsQueue
import atexit
...

sqsQueue module requires boto3 module:

import boto3
import json
import base64
from Crypto.Cipher import AES
import html
...

"no module named boto3" indicates that boto3 module is not found e.g. the module is not installed on your machine. Hence, please make sure that you have installed boto3 module. The example command line to install boto3 module is shown below:

pip install boto3
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.

Upvote
24.7k 54 17 14

Hello @wim.ooms1

Did you install the require libraries for the news alert example yet? Please see more detail in RDP News and Research Alert tutorial page.

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.