{"action":"created","issue":{"url":"https://api.github.com/repos/unbit/uwsgi/issues/1030","repository_url":"https://api.github.com/repos/unbit/uwsgi","labels_url":"https://api.github.com/repos/unbit/uwsgi/issues/1030/labels{/name}","comments_url":"https://api.github.com/repos/unbit/uwsgi/issues/1030/comments","events_url":"https://api.github.com/repos/unbit/uwsgi/issues/1030/events","html_url":"https://github.com/unbit/uwsgi/issues/1030","id":104680469,"number":1030,"title":"Can't run app with custom Python (2.7.10):  undefined symbol: Py_GetArgcArgv","user":{"login":"carlopires","id":45199,"avatar_url":"https://avatars.githubusercontent.com/u/45199?v=3","gravatar_id":"","url":"https://api.github.com/users/carlopires","html_url":"https://github.com/carlopires","followers_url":"https://api.github.com/users/carlopires/followers","following_url":"https://api.github.com/users/carlopires/following{/other_user}","gists_url":"https://api.github.com/users/carlopires/gists{/gist_id}","starred_url":"https://api.github.com/users/carlopires/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlopires/subscriptions","organizations_url":"https://api.github.com/users/carlopires/orgs","repos_url":"https://api.github.com/users/carlopires/repos","events_url":"https://api.github.com/users/carlopires/events{/privacy}","received_events_url":"https://api.github.com/users/carlopires/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-03T12:31:57Z","updated_at":"2016-03-06T22:12:40Z","closed_at":null,"body":"I have a custom python 2.7.10 installed in /opt/python. I installed uwsgi for it using `pip install uWSGI`. When I try to run an application using this custom uwsgi I get the following error:\r\n\r\n    [uWSGI] getting INI configuration from uwsgi_config.ini\r\n    *** Starting uWSGI 2.0.11.1 (64bit) on [Thu Sep  3 12:17:06 2015] ***\r\n    compiled with version: 4.8.4 on 03 September 2015 11:59:05\r\n    os: Linux-3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:22:43 UTC 2014\r\n    nodename: ubuntu\r\n    machine: x86_64\r\n    clock source: unix\r\n    pcre jit disabled\r\n    detected number of CPU cores: 2\r\n    current working directory: /home/ubuntu/test\r\n    writing pidfile to uwsgi.pid\r\n    detected binary path: /opt/python/bin/uwsgi\r\n    your processes number limit is 59762\r\n    your memory page size is 4096 bytes\r\n     *** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers *** \r\n    detected max file descriptor number: 1024\r\n    lock engine: pthread robust mutexes\r\n    thunder lock: disabled (you can enable it with --thunder-lock)\r\n    uwsgi socket 0 bound to UNIX address /var/run/test/uwsgi_test.sock fd 3\r\n    Python version: 2.7.10 (default, Sep  3 2015, 01:59:55)  [GCC 4.8.4]\r\n    *** Python threads support is disabled. You can enable it with --enable-threads ***\r\n    Python main interpreter initialized at 0x269f030\r\n    your server socket listen backlog is limited to 100 connections\r\n    your mercy for graceful operations on workers is 60 seconds\r\n    mapped 1115840 bytes (1089 KB) for 10 cores\r\n    *** Operational MODE: preforking ***\r\n    Traceback (most recent call last):\r\n      File \"/home/ubuntu/test/test.py\", line 13, in <module>\r\n        from av_logger import configure_logger\r\n      File \"./av_logger.py\", line 5, in <module>\r\n        import av_utils\r\n      File \"./av_utils.py\", line 11, in <module>\r\n        from watchdog.av_watchdog import WatchDog\r\n      File \"./watchdog/av_watchdog.py\", line 12, in <module>\r\n        import setproctitle\r\n    ImportError: /opt/python/lib/python2.7/site-packages/setproctitle.so: undefined symbol: Py_GetArgcArgv\r\n    unable to load app 0 (mountpoint='') (callable not found or import error)\r\n\r\nIt looks like a problem loading setproctitle module, but I can load it fine from python prompt:\r\n\r\n    ubuntu@carlo:~/test$ /opt/python/bin/python\r\n    Python 2.7.10 (default, Sep  3 2015, 01:59:55) \r\n    [GCC 4.8.4] on linux2\r\n    Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n    >>> import setproctitle\r\n    >>>\r\n\r\nuwsgi configuration file is as following:\r\n\r\n    [uwsgi]\r\n    gid = 1000\r\n    uid = 1000\r\n    socket = /var/run/test/uwsgi_test.sock\r\n    chmod-socket = 664\r\n    #chown-socket = ubuntu:www-data\r\n    wsgi-file = /home/ubuntu/test/test.py\r\n    callable = app\r\n    \r\n    ; create the uwsgi master process\r\n    master = 1\r\n    pidfile = uwsgi.pid\r\n    single-interpreter = 1\r\n    buffer-size = 32768\r\n    ignore-sigpipe = true\r\n    cheaper-algo = spare\r\n    cheaper = 2\r\n    cheaper-initial = 5\r\n    workers = 10\r\n    cheaper-step = 1\r\n    harakiri = 60\r\n"},"comment":{"url":"https://api.github.com/repos/unbit/uwsgi/issues/comments/193006016","html_url":"https://github.com/unbit/uwsgi/issues/1030#issuecomment-193006016","issue_url":"https://api.github.com/repos/unbit/uwsgi/issues/1030","id":193006016,"user":{"login":"gregwym","id":510089,"avatar_url":"https://avatars.githubusercontent.com/u/510089?v=3","gravatar_id":"","url":"https://api.github.com/users/gregwym","html_url":"https://github.com/gregwym","followers_url":"https://api.github.com/users/gregwym/followers","following_url":"https://api.github.com/users/gregwym/following{/other_user}","gists_url":"https://api.github.com/users/gregwym/gists{/gist_id}","starred_url":"https://api.github.com/users/gregwym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregwym/subscriptions","organizations_url":"https://api.github.com/users/gregwym/orgs","repos_url":"https://api.github.com/users/gregwym/repos","events_url":"https://api.github.com/users/gregwym/events{/privacy}","received_events_url":"https://api.github.com/users/gregwym/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T22:12:40Z","updated_at":"2016-03-06T22:12:40Z","body":"Update, this is no longer an issue in uWSGI 2.0.12. "}}