question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lib has no attribute 'Cryptography_HAS_SSL_ST'

See original GitHub issue

Observed behavior

I’m having this Lib has no attribute 'Cryptography_HAS_SSL_ST' when running kolibri command on Ubuntu 16.04

At the Ubuntu 18.04 this error will not reproduce with the same .deb installer.

Errors and logs

Traceback (most recent call last):
  File "/usr/bin/kolibri", line 11, in <module>
    load_entry_point('kolibri==0.11.0a5', 'console_scripts', 'kolibri')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/kolibri/utils/cli.py", line 24, in <module>
    from . import server  # noqa
  File "/usr/lib/python3/dist-packages/kolibri/utils/server.py", line 8, in <module>
    import requests
  File "/usr/lib/python3/dist-packages/kolibri/dist/requests/__init__.py", line 95, in <module>
    from urllib3.contrib import pyopenssl
  File "/usr/lib/python3/dist-packages/kolibri/dist/urllib3/contrib/pyopenssl.py", line 46, in <module>
    import OpenSSL.SSL
  File "/usr/lib/python3/dist-packages/kolibri/dist/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/usr/lib/python3/dist-packages/kolibri/dist/OpenSSL/SSL.py", line 194, in <module>
    if _lib.Cryptography_HAS_SSL_ST:
AttributeError: module 'lib' has no attribute 'Cryptography_HAS_SSL_ST'

screen shot 2018-08-29 at 12 10 52 pm

Context

Tell us about your environment, including:

  • Kolibri version: 0.11.0a5
  • Operating system: Ubuntu 16.04
  • Browser:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
radinamaticcommented, Aug 30, 2018

@mrpau-richard Could you use this workaround to re-start the integration testing workflow on Ubuntu 16.04? Thanks!

0reactions
lyw07commented, Aug 30, 2018

@radinamatic thank you for the update! Unfortunately I think this is what we can try to temporarily eliminate the error for testing. I will create a PR for the fix asap

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: module 'lib' has no attribute ' ...
I've used the python:3.7.6-slim-stretch docker image for almost one year. Just today I got this strange issue (with pyOpenSSL==17.5.0): ...
Read more >
python - How to fix Error: "module 'lib' has no attribute ' ...
On my WSL im getting the error AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' whenever I try to use pip e.g. pip ...
Read more >
openssl - module 'lib' has no attribute ' ...
I managed to solve this issue by downgrading cryptography library using following command. pip install cryptography==36.0.0. Share.
Read more >
What may be the cause of this error? AttributeError: module ...
This happens due to cryptography library version mismatch. ... AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'.
Read more >
AttributeError: module 'lib' has no attribute ' ...
AttributeError: module 'lib' has no attribute 'Cryptography_HAS_TLSEXT_HOSTNAME' ... as a first line respond following any dnf command. I am ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found