Marlon Marcos
Marlon Marcos

Reputation: 185

Django: running manage.py always aborts

I have an existing Django application that I'm trying to set up locally. After creating a virtual environment and installing all the required dependencies, running manage.py just aborts without any other useful error message.

(venv) $ python manage.py
[1]    39973 abort      python manage.py

Any subcommands supplied also just aborts and I've been trying to find a way to debug with no luck.

Versions used:

python 3.6.8
Django 2.0.2

EDIT:

I finally figured out the problem. If you are on macOS 10.15 (Catalina) this may help you:

One of the dependencies is cryptography which requires openssl. You can install openssl via brew then add symbolic links to the following:

cd /usr/local/lib
ln -s /usr/local/Cellar/openssl/1.0.2t/lib/libcrypto.1.0.0.dylib libcrypto.dylib
ln -s /usr/local/Cellar/openssl/1.0.2t/lib/libssl.1.0.0.dylib libssl.dylib

Upvotes: 15

Views: 2086

Answers (3)

Sharan
Sharan

Reputation: 31

Looks like its an issue with asn1crypto package..

running the below command should fix the issue

rm -rf venv/lib/python2.7/site-packages/asn1crypto

Upvotes: 3

Andrii Zarubin
Andrii Zarubin

Reputation: 2255

Just remove cryptography package.

Had a similar problem and found a solution here https://github.com/jazzband/django-push-notifications/issues/549:

Upvotes: 0

jms0707
jms0707

Reputation: 21

I had similar problem. It is because python3.6.8 and macOS catalina are incompatible. If you upgrade python version at least 3.8, it will work.

https://docs.python.org/3.8/whatsnew/changelog.html?highlight=catalina

Upvotes: 1

Related Questions