Typeerror: Coercing To Unicode: Need String Or Buffer, Dict Found
Anyone know how to solve this error? Exception Type: TypeError Exception Value: coercing to Unicode: need string or buffer, dict found Can you help me??
Solution 1:
You are giving dictionary where a string or buffer was expected.
You should check your code or debug around the line you get the Exception, check if all the functions that expect a string aren't getting a dictionary instead.
You probably forgot to index a dictionary.
Solution 2:
This error is quite general as others have pointed out. However, it seems that in this context it is caused by a problem in matplotlibs font manager. I ran into a similar problem when trying to use Latex with matplotlib, and was able to fix it by deleting fontList.cache from the matplotlib.get_configdir() directory as David suggested.
Post a Comment for "Typeerror: Coercing To Unicode: Need String Or Buffer, Dict Found"