edac-epscor / nmepscor-data-collection-form

NMEPSCoR data documentation tool -- angular-enterprise-seed/djangoized
MIT License
1 stars 2 forks source link

BS4 dependency causes deadlock #1

Closed at3560k closed 10 years ago

at3560k commented 10 years ago

Utilizing bs4 keeps this from running in modwsgi with our normal settings.

Since it's just used to parse out a user name...

https://bugs.launchpad.net/beautifulsoup/+bug/948577 https://techknowhow.library.emory.edu/blogs/branker/2010/07/30/django-lxml-wsgi-and-python-sub-interpreter-magic

"Unfortunately, given that Cython-based libraries are incompatible with sub-interpreters, and given that mod_wsgi uses sub-interpreters, it follows logically that Cython-based libraries like lxml are incompatible with simple mod_wsgi configurations. In our case, this manifested as a single-thread self-deadlock in the Python Global Interpreter Lock whenever we tried to use our application at all. "