GoogleCloudPlatform / dataflow-opinion-analysis

Opinion Analysis of News, Threaded Conversations, and User Generated Content
Apache License 2.0
101 stars 25 forks source link

ImportErrors on RedditEngagement.ipynb notebook #2

Closed damicinski closed 6 years ago

damicinski commented 6 years ago

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

datancoffee commented 6 years ago

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.

datancoffee commented 6 years ago

@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.