Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Runtime error with CEO Change Announcements

Hello all. I'm a newbie playing around with the CEO change announcement pipeline in the algorithms view.

I'm running into the error below where I cannot access any properties of the data source in this mode (research mode is fine).

I found another notebook using the data source, cloned it and tried to run it and it is still failing with the same error (this is the one I cloned) https://www.quantopian.com/posts/ceo-change-plus-sentiment-signal#5762f1a2d48cc61a920001ab

example:

gender = CEOChangeAnnouncements.out_ceogender  

There was a runtime error.
AttributeError: type object 'CEOChangeAnnouncements' has no attribute 'out_ceogender'

...

what am I missing? any ideas where I could find documentation on the CEOChangeAnnouncements class? thanks!

6 responses

Refer to this link for information on how to use the library. The source code in the link you've posted seems outdated as the link I've posted says that you can import the free library sample by doing the following:

from quantopian.interactive.data.eventvestor import ceo_change_free  

Hello, thanks for your comment. As far as I understand there are different libraries for the research environment (interactive) and the algorithm environment. When I try to use the import above in the research mode it's fine, but in the algorithm environment it says

*"Runtime exception: ImportError: No module named interactive.data.eventvestor
The interactive namespace is not available in the backtester, but can be used in research. Try importing from quantopian.pipeline.data instead."

but this also fails to import

from quantopian.pipeline.data.eventvestor import ceo_change_free as cc  

as does

from quantopian.pipeline.data.eventvestor import CEOChangeAnnouncementsFree  

(really just guessing now).

What is bizarre is I was able to get one bit of information out of the CEOChangeAnnouncements import:

gender = CEOChangeAnnouncements.in_ceogender  

but all of the other columns listed in the documentation aren't accessible

I am running into the same issue. Any updates on this?

Hi Linus,

I apologize. I thought that I had responded to this thread yesterday. I've attached a sample notebook that uses a few of the columns from the CEO dataset in pipeline. If you clone the notebook, does it work for you?

Disclaimer

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.

Hi Jamie,
The notebook you attached works. However you can only access some columns. For example in_ceogender.latest works but out_ceogender.latest gives an AttributeError.
Anyways thanks for your help.

Has the CEOChange... API disappeared in 2019?