Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "abort" issue in Django?

Tags:

python

django

I am doing a project in Django. I have installed python 3.7.5 and Django 1.11. When I try to run the command

python manage.py migrate

I am getting

[1] abort      python manage.py migrate

The same thing is happening for

python manage.py runserver

I have been brainstorming for the last 2 days on how to fix this issue but no luck. Can someone help me out here in fixing this issue?

Screenshot of the issue

like image 578
Abhishek Kumar Avatar asked Nov 24 '19 11:11

Abhishek Kumar


1 Answers

I finally got the answer for this question. It is frustrating to know that new version of macOS Catalina (10.15) only has this issue. Issue is related to cryptography which require OpenSSL. To fix these issues follow these steps:

  1. Run brew install openssl
  2. cd /usr/local/lib
  3. Search for the file which has the name like libcrypto.dylib. For OpenSSL version 1.0.0 the path will be /usr/local/Cellar/openssl/1.0.2t/lib/libcrypto.1.0.0.dylib, and for OpenSSL 1.1.1 the path will be /usr/local/Cellar/[email protected]/1.1.1d/lib/libcrypto.1.1.dylib
  4. Also search path for libssl.dylib

  5. Run the following commands with the paths that you found:

    ln -s /usr/local/Cellar/[email protected]/1.1.1d/lib/libcrypto.1.1.dylib libcrypto.dylib
    
    ln -s /usr/local/Cellar/[email protected]/1.1.1d/lib/libssl.1.1.dylib libssl.dylib
    
like image 51
Abhishek Gautam Avatar answered Nov 17 '22 04:11

Abhishek Gautam