GoogleCloudPlatform / dataflow-opinion-analysis

Opinion Analysis of News, Threaded Conversations, and User Generated Content

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImportErrors on RedditEngagement.ipynb notebook

damicinski opened this issue · comments

My apologies in advance for my lack of knowledge in a wide array of Python modules.

I have been trying to run the entire notebook in both Google Colab and Google Cloud Datalab. None of them seem to be able to run the notebook without import errors. I have tried to pip install them but pip is not able to find them.

ImportError: No module named google
ImportError: No module named google3.pyglib
NameError: global name 'os' is not defined
-> I was able to easily fix this one but it sort of baffles me that a notebook that seems to have been run with all the output saved and everything has this error?
ImportError: No module named colabtools

Sorry, I should have removed these imports (and I will in the next version). They are only needed in one method log_dataframe ( writing to log), so if you comment out that method, and remove the imports, the errors should go away.

@deepjedi The errors should be fully addressed now with release 0.6.5. The notebook was also added as a Kaggle kernel. See this blog post that explains how to run the notebook either in Colab or in Kaggle.