PacktPublishing / Django-4-by-example

Django 4 by example (4th Edition) published by Packt
https://djangobyexample.com/
MIT License
799 stars 461 forks source link

module 'lib' has no attribute 'OpenSSL_add_all_algorithms' #30

Open s-kvng opened 1 year ago

s-kvng commented 1 year ago

Any time I run this command "python manage.py runserver_plus --cert-file cert.crt"... I get an error. Already downloaded the packages, but still doesnt work. This is from chapter 5 OpenSSL_error

amadeann commented 1 year ago

I ran into the same issue and fixed it by adding cryptography==38.0.4 line to requirements.txt and then running pip install -r requirements.txt.

source: https://tickets.dominodatalab.com/hc/en-us/articles/12619091555860-JupyterLab-fails-to-start-with-AttributeError-module-lib-has-no-attribute-OpenSSL-add-all-algorithms-