Jan-20-2017, 10:43 PM
Quote:Funny, I'm not getting that error (I'm running from a python tab in maya dont know if that would be any reason)No clue about Maya, but there is definitely an error in your program.
You can either import like this
from collections import Counter
and call like this Counter()
Or import like this
import collections
and call like this collections.Counter()
.Even if Maya is for godknowswhatreason allowing this, it is something you should definitely be aware of.
You should most definitely be getting an error like this:
1 2 3 4 5 6 |
>>> from collections import Counter >>> collections.Counter Traceback (most recent call last): File "<stdin>" , line 1 , in <module> NameError: name 'collections' is not defined >>> |