Nishad K
Nishad K

Reputation: 49

Why do I get an error when launching Django server in MacOS?

I just started using Django for a web app project and I am going through the Elasticsearch in Django but when I run the python manage.py runserver command from the defualt mysite directory I get the following error:

zsh: abort python manage.py runserver

Upvotes: 5

Views: 580

Answers (2)

Ramy M. Mousa
Ramy M. Mousa

Reputation: 5943

I arrived at a solution for the problem:

If you're using a virtual environment

cd venv/lib/python3.7/site-packages

rm -rf asn1crypto

Then things will be working back.

If you're not using a virtual env, remove it from system site-packages

cd /usr/local/bin/python3.7/site-packages

then remove it the same way above.

It appears to be a compatibility issue with OSX Catalina, issue posted on GitHub October 30th, 2019

Upvotes: 1

thelawnmowerman
thelawnmowerman

Reputation: 12136

I had the same exact problem and solved it updating this library:

brew uninstall asn1crypto   (uninstall current outdated version)
brew install asn1crypto     (install new version, 1.3.0 up)

Upvotes: 1

Related Questions