for example, the output for the command:
pycnnum.num2cn(101)
is
File "", line 1, in
File "/home/example/.local/lib/python3.6/site-packages/pycnnum/pycnnum.py", line 282, in num2cn
result_symbols = get_value(int_string)
File "/home/example/.local/lib/python3.6/site-packages/pycnnum/pycnnum.py", line 268, in get_value
return get_value(result_string) + [result_unit] + get_value(striped_string[-result_unit.power:])
File "/home/example/.local/lib/python3.6/site-packages/pycnnum/pycnnum.py", line 268, in get_value
return get_value(result_string) + [result_unit] + get_value(striped_string[-result_unit.power:])
File "/home/example/.local/lib/python3.6/site-packages/pycnnum/pycnnum.py", line 260, in get_value
return [system.digits[0] * (len(value_string) - len(striped_string)), system.digits[int(striped_string)]]
TypeError: unsupported operand type(s) for *: 'ChineseNumberDigi' and 'int'
here I changed my username with "example"
Indeed, It looks like the function doesnt work for any number with a "0" in it, that is not at the tail-end. For example,
1821010 doesnt work
111180000 does work
I made my attempt with the replacement of the following, from:
return [system.digits[0] * (len(value_string) - len(striped_string)), system.digits[int(striped_string)]]
to
return [system.digits[0], system.digits[int(striped_string)]]
that is, no need for multiplication (and that is invalid as well as shown in error message).
Fixed in the coming release