devcartel / pyrfa

Open sourced Python API for Refinitiv (Thomson Reuters) Enterprise Platform.
http://devcartel.com/pyrfa
MIT License
50 stars 15 forks source link

unexpected kernel died #16

Open zhah2 opened 8 years ago

zhah2 commented 8 years ago

Hi, i tried to use pyrfa to retrieve reuters data and when it runs the line below in the sample: p.createConfigDb("./pyrfa.cfg") it reported: AN EXCEPTION HAS BEEN THROWN! The following information describes the exception: Exception Type: InvalidUsageException Exception Severity: Error Exception Classification: IncorrectAPIUsage Exception Status Text: Cannot open configuration file for [./pyrfa.cfg], reason: [File does not exist.] Load of config db failed './pyrfa.cfg'

wiwat-tharateeraparb commented 8 years ago

It tries to locate the configuration file in the current directory. Make sure that you have that pyrfa.cfg.

zhah2 commented 8 years ago

Thanks! Sorry, just one more quick question, as I am fairly new to this reuters system: in the login process, as written in the documentation, it needs the following param: Pyrfa.login([username],[instanceId],[applicationId],[position]) username: String instanceId: String applicationId: String position: String

user name is straightforward: reuters login id, e.g. xxxx@company.com but for the other 3 params, I am not sure what should be provided. Can you shed some light on that? Thanks!

ukrit-himakoon commented 8 years ago

Hello,

If there's no DACS permissioning binds to these values. Please try to use the ones we have put inside our example script. One more details regarding Pyrfa.login(), all the parameters are optional, you can also call login() without a parameter. Because these can be defined via pyrfa.cfg.

In the software package, we have provided the examples/consumer.py as a guideline. You can configure examples/pyrfa.cfg under the _\Connections\ConnectionRSSL1 name space then run this* consumer.py script*

In examples/pyrfa.cfg update the parameters rsslport, ServerList, Username and ServiceName then running consumer.py

Please also turn \pyrfa\debug = true too. In order to see most of the debug messages while running the example.

Check if it can subscribe the data,

Best regards, Ukrit H.

On Thu, Aug 18, 2016 at 1:09 AM, zhah2 notifications@github.com wrote:

Thanks! Sorry, just one more quick question, as I am fairly new to this reuters system: in the login process, as written in the documentation, it needs the following param: Pyrfa.login([username],[instanceId],[applicationId],[position]) username: String instanceId: String applicationId: String position: String

user name is straightforward: reuters login id, e.g. xxxx@company.com but for the other 3 params, I am not sure what should be provided. Can you shed some light on that? Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/devcartel/thomsonreuters/issues/16#issuecomment-240497637, or mute the thread https://github.com/notifications/unsubscribe-auth/ADQ4Jy1SZFWB4VfzWtxmH2LNqcAqGhVyks5qg05SgaJpZM4JmmAy .

zhah2 commented 8 years ago

The reason I asked is becoz of the following error when I ran the consumer.py (with pyrfa.cfg in current directory): Exception: [Pyrfa::login] Login failed. Please check data permission. (username: pyrfa) If I dont change anything in the file, I was not able to login and retrieve data.

wiwat-tharateeraparb commented 8 years ago

You will need a proper username and permission to connect to Thomson Reuters systems (e.g. ADS or Elektron) to get real-time data feed. The username is sometimes called DACS username by Thomson Reuters. The permission to data set is controlled by DACS (authentication server.)

If you know the TREP admin who can help you with this information, please contact him and mention that you are using API to get data and see if your TREP-RT (ADS) or Elektron allows such access.