SSLv3_server_method

Hello,
I’m trying to run mitmproxy and getting the following error:

Traceback (most recent call last):
  File "/usr/local/bin/mitmproxy", line 7, in <module>
    from mitmproxy.main import mitmproxy
  File "/usr/local/lib/python2.7/dist-packages/mitmproxy/main.py", line 9, in <module>
    from mitmproxy import cmdline
  File "/usr/local/lib/python2.7/dist-packages/mitmproxy/cmdline.py", line 7, in <module>
    from mitmproxy import flowfilter
  File "/usr/local/lib/python2.7/dist-packages/mitmproxy/flowfilter.py", line 41, in <module>
    from mitmproxy.models.http import HTTPFlow
  File "/usr/local/lib/python2.7/dist-packages/mitmproxy/models/__init__.py", line 4, in <module>
    from .connections import ClientConnection, ServerConnection
  File "/usr/local/lib/python2.7/dist-packages/mitmproxy/models/connections.py", line 10, in <module>
    from netlib import certutils
  File "/usr/local/lib/python2.7/dist-packages/netlib/certutils.py", line 13, in <module>
    import OpenSSL
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/rand.py", line 12, in <module>
    from OpenSSL._util import (
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/_util.py", line 6, in <module>
    from cryptography.hazmat.bindings.openssl.binding import Binding
  File "/usr/local/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 14, in <module>
    from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: /usr/local/lib/python2.7/dist-packages/cryptography/hazmat/bindings/_openssl.so: undefined symbol: SSLv3_server_method**

How can I fix it?

This is caused by the cryptography Python module, which fails on your system when we just call import OpenSSL. You can probably fix your problem by upgrading/reinstalling cryptography and/or OpenSSL on your system.