Error running mitmproxy after install

hi pals!
I’m having the following error message after installing mitmproxy. Installs works fine, but when I try to run for the very first time, Iget this message

root@debian:~# /root/.local/bin/mitmproxy --host
Traceback (most recent call last):
File “/root/.local/bin/mitmproxy”, line 11, in
File “/root/.local/lib/python3.5/site-packages/mitmproxy/tools/”, line 67, in mitmproxy
console_options = options.Options()
File “/root/.local/lib/python3.5/site-packages/mitmproxy/”, line 123, in init
self.rfile = rfile
File “/root/.local/lib/python3.5/site-packages/mitmproxy/”, line 111, in setattr
self._typecheck(attr, value)
File “/root/.local/lib/python3.5/site-packages/mitmproxy/”, line 122, in _typecheck
typecheck.check_type(attr, value, expected_type)
File “/root/.local/lib/python3.5/site-packages/mitmproxy/utils/”, line 29, in check_type
types = typeinfo.union_params
AttributeError: ‘_Union’ object has no attribute ‘union_params

Any Idea what could be??? My SO is linux debian jessie

What’s your output for mitmproxy --sysinfo? This looks like you are not using 1.0.2