How to Solve NameError: name 'fromstring' is not defined -- xml
Solution: Import the 'fromstring' module
To Solve the error, add the following line to the top of your code.
from xml import fromstring
For more information:
Python xml fromstring