{"action":"created","issue":{"url":"https://api.github.com/repos/pythonnet/pythonnet/issues/85","labels_url":"https://api.github.com/repos/pythonnet/pythonnet/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/pythonnet/pythonnet/issues/85/comments","events_url":"https://api.github.com/repos/pythonnet/pythonnet/issues/85/events","html_url":"https://github.com/pythonnet/pythonnet/issues/85","id":95557248,"number":85,"title":"mod_wsgi hangs with import clr","user":{"login":"mikofski","id":1385621,"avatar_url":"https://avatars.githubusercontent.com/u/1385621?v=3","gravatar_id":"","url":"https://api.github.com/users/mikofski","html_url":"https://github.com/mikofski","followers_url":"https://api.github.com/users/mikofski/followers","following_url":"https://api.github.com/users/mikofski/following{/other_user}","gists_url":"https://api.github.com/users/mikofski/gists{/gist_id}","starred_url":"https://api.github.com/users/mikofski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikofski/subscriptions","organizations_url":"https://api.github.com/users/mikofski/orgs","repos_url":"https://api.github.com/users/mikofski/repos","events_url":"https://api.github.com/users/mikofski/events{/privacy}","received_events_url":"https://api.github.com/users/mikofski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-17T00:14:42Z","updated_at":"2015-12-16T18:12:59Z","closed_at":null,"body":"### Background\r\n* in a flask app using `mod_wsgi` on Apache, if the app has `import clr`, then the application hangs\r\n* possible rehash of [SourceForge Python.NET bug 16](http://sourceforge.net/p/pythonnet/bugs/16/)\r\n>\"conflict between django+mod-wsgi and clr?\"\r\n"},"comment":{"url":"https://api.github.com/repos/pythonnet/pythonnet/issues/comments/165198874","html_url":"https://github.com/pythonnet/pythonnet/issues/85#issuecomment-165198874","issue_url":"https://api.github.com/repos/pythonnet/pythonnet/issues/85","id":165198874,"user":{"login":"mikofski","id":1385621,"avatar_url":"https://avatars.githubusercontent.com/u/1385621?v=3","gravatar_id":"","url":"https://api.github.com/users/mikofski","html_url":"https://github.com/mikofski","followers_url":"https://api.github.com/users/mikofski/followers","following_url":"https://api.github.com/users/mikofski/following{/other_user}","gists_url":"https://api.github.com/users/mikofski/gists{/gist_id}","starred_url":"https://api.github.com/users/mikofski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikofski/subscriptions","organizations_url":"https://api.github.com/users/mikofski/orgs","repos_url":"https://api.github.com/users/mikofski/repos","events_url":"https://api.github.com/users/mikofski/events{/privacy}","received_events_url":"https://api.github.com/users/mikofski/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T18:12:59Z","updated_at":"2015-12-16T18:12:59Z","body":"@eisenheimjelid I had to use [IronPython](http://ironpython.net/) with [`subprocess`](https://docs.python.org/2/library/subprocess.html#subprocess.check_output)\r\n\r\n    import subprocess\r\n    target = [\"~/path/to/IronPython27/ipy.exe\", \"~/path/to/my_dotnet_app.py\", \"arg0\", ..., \"kwargs\"]\r\n    retval = subprocess.check_output(target, universal_newlines=True)\r\n\r\na little slow depending on your machine, but works fine.\r\n\r\nFor Windows you will need [.NET](https://msdn.microsoft.com/en-us/vstudio/aa496123.aspx?f=255&MSPPError=-2147217396) and for Linux/Darwin you will need [Mono](http://www.mono-project.com/)\r\n\r\non [Ubuntu](http://www.ubuntu.com/):\r\n\r\n    sudo apt-get install mono-complete\r\n"}}