runfile('C:/Users/usb/.spyder-py3/temp.py', wdir='C:/Users/usb/.spyder-py3')
Traceback (most recent call last):
File "<ipython-input-4-4cdbcda25942>", line 1, in <module>
runfile('C:/Users/usb/.spyder-py3/temp.py', wdir='C:/Users/usb/.spyder-py3')
File "d:\Users\usb\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 880, in runfile
execfile(filename, namespace)
File "d:\Users\usb\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/usb/.spyder-py3/temp.py", line 39, in <module>
wc.generate_from_frequencies(dict(common_c))
File "d:\Users\usb\Anaconda3\lib\site-packages\wordcloud\wordcloud.py", line 439, in generate_from_frequencies
font = ImageFont.truetype(self.font_path, font_size)
File "d:\Users\usb\Anaconda3\lib\site-packages\PIL\ImageFont.py", line 238, in truetype
return FreeTypeFont(font, size, index, encoding)
File "d:\Users\usb\Anaconda3\lib\site-packages\PIL\ImageFont.py", line 127, in __init__
self.font = core.getfont(font, size, index, encoding)
OSError: cannot open resource