Recently, I was experimenting with text analytics in Python. One of the modules available is TextBlob. As is standard, the way to learn how to use a package is to look for a related sample and run it on your system.
And that is precisely what I did. I copied the sample into a .py file and ran it.
On execution, Python gave an error – ImportError: cannot import name ‘TextBlob’
Did a Google search and one of the solutions was interesting. It mentioned that you need to rename your file from textblob to something else. And that is exactly what I had done. I had named the sample as textblob.py. Hence it was searching for TextBlob in the source, which obviously was not present. I changed the name and the sample started working.