{"action":"opened","issue":{"url":"https://api.github.com/repos/mistio/mist.io/issues/751","repository_url":"https://api.github.com/repos/mistio/mist.io","labels_url":"https://api.github.com/repos/mistio/mist.io/issues/751/labels{/name}","comments_url":"https://api.github.com/repos/mistio/mist.io/issues/751/comments","events_url":"https://api.github.com/repos/mistio/mist.io/issues/751/events","html_url":"https://github.com/mistio/mist.io/issues/751","id":153863992,"number":751,"title":"celery start: ImportError: No module named mist.io","user":{"login":"mrmikee","id":4103941,"avatar_url":"https://avatars.githubusercontent.com/u/4103941?v=3","gravatar_id":"","url":"https://api.github.com/users/mrmikee","html_url":"https://github.com/mrmikee","followers_url":"https://api.github.com/users/mrmikee/followers","following_url":"https://api.github.com/users/mrmikee/following{/other_user}","gists_url":"https://api.github.com/users/mrmikee/gists{/gist_id}","starred_url":"https://api.github.com/users/mrmikee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrmikee/subscriptions","organizations_url":"https://api.github.com/users/mrmikee/orgs","repos_url":"https://api.github.com/users/mrmikee/repos","events_url":"https://api.github.com/users/mrmikee/events{/privacy}","received_events_url":"https://api.github.com/users/mrmikee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-09T20:37:02Z","updated_at":"2016-05-09T20:37:02Z","closed_at":null,"body":"Fresh Ubuntu 16.04 server install following Installation instructions in Readme.rst file.\r\nAfter applying the [buildout patch from X4 (re: issue740)](https://github.com/mistio/mist.io/issues/740#issuecomment-217352723):\r\n\r\n```\r\nYou can easily fix the whole buildout drama, by replacing line 38-58 in buildout.cfg with the config below:\r\n\r\n[mist]\r\nrecipe = zc.recipe.egg\r\ndependent-scripts = true\r\neggs =\r\n    mist.io\r\n    PasteScript\r\n    ${buildout:eggs}\r\n\r\n[uwsgi]\r\nrecipe = unweb.recipe.uwsgi\r\nurl = http://projects.unbit.it/downloads/uwsgi-2.0.11.2.tar.gz\r\neggs =\r\n    ${mist:eggs}\r\n\r\n[pip]\r\nrecipe = collective.recipe.cmd\r\nshell = /bin/bash\r\non_install = true\r\non_update = true\r\ncmds = ./bin/pip install -r requirements.txt; echo $'\\npip modules installed.\\n'\r\n```\r\nThe install goes well, but once I run `./bin/supervisord`.\r\nCelery and uwsgi fails to start.\r\n\r\n```bash\r\n./bin/supervisorctl status\r\ncelery                           FATAL     Exited too quickly (process log may have details)\r\nhaproxy                          RUNNING   pid 30013, uptime 0:05:44\r\nhub-shell                        STARTING  \r\nmemcache                         RUNNING   pid 30019, uptime 0:05:44\r\nrabbitmq                         RUNNING   pid 30016, uptime 0:05:44\r\nsockjs                           STARTING  \r\nuwsgi                            FATAL     Exited too quickly (process log may have details)\r\n```\r\n\r\nInspection of the log file shows:\r\n\r\n```\r\ncat var/log/celery-stderr---supervisor-MOew4j.log \r\nTraceback (most recent call last):\r\n  File \"/home/mc4081/www/mist.io/bin/celery\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/__main__.py\", line 30, in main\r\n    main()\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/celery.py\", line 81, in main\r\n    cmd.execute_from_commandline(argv)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/celery.py\", line 769, in execute_from_commandline\r\n    super(CeleryCommand, self).execute_from_commandline(argv)))\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 305, in execute_from_commandline\r\n    argv = self.setup_app_from_commandline(argv)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 465, in setup_app_from_commandline\r\n    self.app = self.find_app(app)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 485, in find_app\r\n    return find_app(app, symbol_by_name=self.symbol_by_name)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/app/utils.py\", line 229, in find_app\r\n    sym = symbol_by_name(app, imp=imp)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 488, in symbol_by_name\r\n    return symbol_by_name(name, imp=imp)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/kombu/utils/__init__.py\", line 96, in symbol_by_name\r\n    module = imp(module_name, package=package, **kwargs)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/utils/imports.py\", line 101, in import_from_cwd\r\n    return imp(module, package=package)\r\n  File \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module\r\n    __import__(name)\r\nImportError: No module named mist.io\r\nTraceback (most recent call last):\r\n  File \"/home/mc4081/www/mist.io/bin/celery\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/__main__.py\", line 30, in main\r\n    main()\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/celery.py\", line 81, in main\r\n    cmd.execute_from_commandline(argv)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/celery.py\", line 769, in execute_from_commandline\r\n    super(CeleryCommand, self).execute_from_commandline(argv)))\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 305, in execute_from_commandline\r\n    argv = self.setup_app_from_commandline(argv)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 465, in setup_app_from_commandline\r\n    self.app = self.find_app(app)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 485, in find_app\r\n    return find_app(app, symbol_by_name=self.symbol_by_name)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/app/utils.py\", line 229, in find_app\r\n    sym = symbol_by_name(app, imp=imp)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 488, in symbol_by_name\r\n    return symbol_by_name(name, imp=imp)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/kombu/utils/__init__.py\", line 96, in symbol_by_name\r\n    module = imp(module_name, package=package, **kwargs)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/utils/imports.py\", line 101, in import_from_cwd\r\n    return imp(module, package=package)\r\n  File \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module\r\n    __import__(name)\r\nImportError: No module named mist.io\r\nTraceback (most recent call last):\r\n  File \"/home/mc4081/www/mist.io/bin/celery\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/__main__.py\", line 30, in main\r\n    main()\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/celery.py\", line 81, in main\r\n    cmd.execute_from_commandline(argv)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/celery.py\", line 769, in execute_from_commandline\r\n    super(CeleryCommand, self).execute_from_commandline(argv)))\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 305, in execute_from_commandline\r\n    argv = self.setup_app_from_commandline(argv)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 465, in setup_app_from_commandline\r\n    self.app = self.find_app(app)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 485, in find_app\r\n    return find_app(app, symbol_by_name=self.symbol_by_name)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/app/utils.py\", line 229, in find_app\r\n    sym = symbol_by_name(app, imp=imp)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 488, in symbol_by_name\r\n    return symbol_by_name(name, imp=imp)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/kombu/utils/__init__.py\", line 96, in symbol_by_name\r\n    module = imp(module_name, package=package, **kwargs)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/utils/imports.py\", line 101, in import_from_cwd\r\n    return imp(module, package=package)\r\n  File \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module\r\n    __import__(name)\r\nImportError: No module named mist.io\r\nTraceback (most recent call last):\r\n  File \"/home/mc4081/www/mist.io/bin/celery\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/__main__.py\", line 30, in main\r\n    main()\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/celery.py\", line 81, in main\r\n    cmd.execute_from_commandline(argv)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/celery.py\", line 769, in execute_from_commandline\r\n    super(CeleryCommand, self).execute_from_commandline(argv)))\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 305, in execute_from_commandline\r\n    argv = self.setup_app_from_commandline(argv)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 465, in setup_app_from_commandline\r\n    self.app = self.find_app(app)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 485, in find_app\r\n    return find_app(app, symbol_by_name=self.symbol_by_name)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/app/utils.py\", line 229, in find_app\r\n    sym = symbol_by_name(app, imp=imp)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 488, in symbol_by_name\r\n    return symbol_by_name(name, imp=imp)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/kombu/utils/__init__.py\", line 96, in symbol_by_name\r\n    module = imp(module_name, package=package, **kwargs)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/utils/imports.py\", line 101, in import_from_cwd\r\n    return imp(module, package=package)\r\n  File \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module\r\n    __import__(name)\r\nImportError: No module named mist.io\r\nTraceback (most recent call last):\r\n  File \"/home/mc4081/www/mist.io/bin/celery\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/__main__.py\", line 30, in main\r\n    main()\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/celery.py\", line 81, in main\r\n    cmd.execute_from_commandline(argv)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/celery.py\", line 769, in execute_from_commandline\r\n    super(CeleryCommand, self).execute_from_commandline(argv)))\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 305, in execute_from_commandline\r\n    argv = self.setup_app_from_commandline(argv)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 465, in setup_app_from_commandline\r\n    self.app = self.find_app(app)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 485, in find_app\r\n    return find_app(app, symbol_by_name=self.symbol_by_name)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/app/utils.py\", line 229, in find_app\r\n    sym = symbol_by_name(app, imp=imp)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/bin/base.py\", line 488, in symbol_by_name\r\n    return symbol_by_name(name, imp=imp)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/kombu/utils/__init__.py\", line 96, in symbol_by_name\r\n    module = imp(module_name, package=package, **kwargs)\r\n  File \"/home/mc4081/www/mist.io/local/lib/python2.7/site-packages/celery/utils/imports.py\", line 101, in import_from_cwd\r\n    return imp(module, package=package)\r\n  File \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module\r\n    __import__(name)\r\nImportError: No module named mist.io\r\n```\r\n"}}