proycon / LaMachine

LaMachine - A software distribution of our in-house as well as some 3rd party NLP software - Virtual Machine, Docker, or local compilation/installation script
https://proycon.github.io/LaMachine
GNU General Public License v3.0
68 stars 20 forks source link

Add webserver support on macOS (virtualenv flavour) as well [502 Bad Gateway] #114

Open proycon opened 6 years ago

proycon commented 6 years ago

macOS users are missing out currently if they decide on a local/native installation, but it should be doable to get a webserver and uwsgi running.

proycon commented 6 years ago

Uwsgi support on mac seems to be tougher than expected, when using the homebrew uwsgi, processes crash without further information:

proycon@proycons-iMac ~/dev/etc/uwsgi-emperor/vassals (dev) $ uwsgi colibricore.ini
[uWSGI] getting INI configuration from colibricore.ini
[1]    9260 abort      uwsgi colibricore.ini

the pip-installed uwsgi doesn't start either (linked against wrong python?):

dyld: Library not loaded: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/Python
  Referenced from: /Users/proycon/dev/bin/uwsgi
  Reason: image not found
[1]    9972 abort      uwsgi
proycon commented 6 years ago

I'm postponing solving this until later. The webserver support on macOS is now limited to the portal and the jupyter lab, most underlying services won't work yet and produce 502 Bad Gateway.

Mac users can always use the VM or Docker options as an alternative that does work fully.