Error of openssl after installing mitmproxy

My OS is Ubuntu 14.04 and after installing the mitmproxy as Installation and run it, error occur:

Traceback (most recent call last):
  File "/root/.pyenv/versions/3.5.2/bin/mitmproxy", line 11, in <module>
  File "/root/.pyenv/versions/3.5.2/lib/python3.5/site-packages/mitmproxy/tools/", line 83, in mitmproxy
    server = process_options(parser, console_options, args)
  File "/root/.pyenv/versions/3.5.2/lib/python3.5/site-packages/mitmproxy/tools/", line 42, in process_options
    pconf = config.ProxyConfig(options)
  File "/root/.pyenv/versions/3.5.2/lib/python3.5/site-packages/mitmproxy/proxy/", line 65, in __init__
    self.configure(options, set(options.keys()))
  File "/root/.pyenv/versions/3.5.2/lib/python3.5/site-packages/mitmproxy/proxy/", line 97, in configure
  File "/root/.pyenv/versions/3.5.2/lib/python3.5/site-packages/mitmproxy/", line 223, in from_store
  File "/root/.pyenv/versions/3.5.2/lib/python3.5/site-packages/OpenSSL/", line 1661, in load_certificate
  File "/root/.pyenv/versions/3.5.2/lib/python3.5/site-packages/OpenSSL/", line 48, in exception_from_error_queue
    raise exception_type(errors)
OpenSSL.crypto.Error: [('PEM routines', 'PEM_read_bio', 'no start line')]


root@vultr:~# python -V
Python 3.5.2
root@vultr:~# openssl version -a
OpenSSL 1.0.2k  26 Jan 2017
built on: reproducible build, date unspecified
platform: linux-x86_64
options:  bn(64,64) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx) 
OPENSSLDIR: "/usr/local/ssl"
root@vultr:~# mitmproxy --version
mitmproxy 1.0.2

I manually updated the openssl after installing mitmproxy, but the system info of mitmproxy remains old version of openssl:

root@vultr:~# mitmproxy --sysinfo
Mitmproxy version: 1.0.2
Python version: 3.5.2
Platform: Linux-3.13.0-105-generic-x86_64-with-debian-jessie-sid
SSL version: OpenSSL 1.0.1f 6 Jan 2014
Linux distro: debian jessie/sid 

Maybe I should reinstall the mitmproxy??

What’s this problem and how to fix it??

How did you install mitmproxy?