Skip to content

AttributeError: 'module' object has no attribute '_lib' #281

@Kr0nZ

Description

@Kr0nZ

Not sure why this is happening, mitmproxy was working fine previously but now it just fails with this error msg. I haven't updated or changed anything, I even tried updating mitmproxy using (sudo pip install --upgrade mitmproxy) but I still get same msg

Traceback (most recent call last):
  File "/usr/local/bin/mitmproxy", line 43, in 
    config = process_proxy_options(parser, options)
  File "/usr/local/lib/python2.7/dist-packages/libmproxy/proxy/config.py", line 107, in process_proxy_options
    certforward = options.certforward,
  File "/usr/local/lib/python2.7/dist-packages/libmproxy/proxy/config.py", line 27, in __init__
    self.certstore = certutils.CertStore.from_store(self.confdir, CONF_BASENAME)
  File "/usr/local/lib/python2.7/dist-packages/netlib/certutils.py", line 153, in from_store
    dh = klass.load_dhparam(dhp)
  File "/usr/local/lib/python2.7/dist-packages/netlib/certutils.py", line 133, in load_dhparam
    bio = OpenSSL.SSL._lib.BIO_new_file(path, b"r")
AttributeError: 'module' object has no attribute '_lib'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions