{"action":"closed","issue":{"url":"https://api.github.com/repos/zulip/zulip/issues/162","labels_url":"https://api.github.com/repos/zulip/zulip/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/zulip/zulip/issues/162/comments","events_url":"https://api.github.com/repos/zulip/zulip/issues/162/events","html_url":"https://github.com/zulip/zulip/issues/162","id":110454161,"number":162,"title":"python-ujson missing on Trusty i386 (\"No module named ujson\")","user":{"login":"joshkel","id":476338,"avatar_url":"https://avatars.githubusercontent.com/u/476338?v=3","gravatar_id":"","url":"https://api.github.com/users/joshkel","html_url":"https://github.com/joshkel","followers_url":"https://api.github.com/users/joshkel/followers","following_url":"https://api.github.com/users/joshkel/following{/other_user}","gists_url":"https://api.github.com/users/joshkel/gists{/gist_id}","starred_url":"https://api.github.com/users/joshkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshkel/subscriptions","organizations_url":"https://api.github.com/users/joshkel/orgs","repos_url":"https://api.github.com/users/joshkel/repos","events_url":"https://api.github.com/users/joshkel/events{/privacy}","received_events_url":"https://api.github.com/users/joshkel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zulip/zulip/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/zulip/zulip/labels/Platform%20support","name":"Platform support","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-10-08T13:43:45Z","updated_at":"2015-10-21T06:09:25Z","closed_at":"2015-10-21T06:09:25Z","body":"While installing Zulip on a Ubuntu 14.04 Server VM, `scripts/setup/install` gave the following error (buried in the middle of the output; it was willing to continue in spite of this): \r\n\r\n```\r\nError: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install python-ujson' returned 100: Reading package lists...\r\nBuilding dependency tree...\r\nReading state information...\r\nE: Unable to locate package python-ujson\r\n\r\nError: /Stage[main]/Zulip::App_frontend/Zulip::App_frontend::Safepackage[python-ujson]/Package[python-ujson]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install python-ujson' returned 100: Reading package lists...\r\nBuilding dependency tree...\r\nReading state information...\r\nE: Unable to locate package python-ujson\r\n```\r\n\r\nWhen I tried to run `initialize-database`, it gave the following output:\r\n\r\n```\r\n++ dirname /home/zulip/deployments/current/scripts/setup/initialize-database\r\n+ cd /home/zulip/deployments/current/scripts/setup/../..\r\n+ python manage.py checkconfig\r\nTraceback (most recent call last):\r\n  File \"manage.py\", line 21, in <module>\r\n    execute_from_command_line(sys.argv)\r\n  File \"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py\", line 338, in execute_from_command_line\r\n    utility.execute()\r\n  File \"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py\", line 312, in execute\r\n    django.setup()\r\n  File \"/usr/lib/python2.7/dist-packages/django/__init__.py\", line 17, in setup\r\n    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)\r\n  File \"/usr/lib/python2.7/dist-packages/django/utils/log.py\", line 86, in configure_logging\r\n    logging_config_func(logging_settings)\r\n  File \"/usr/lib/python2.7/logging/config.py\", line 794, in dictConfig\r\n    dictConfigClass(config).configure()\r\n  File \"/usr/lib/python2.7/logging/config.py\", line 576, in configure\r\n    '%r: %s' % (name, e))\r\nValueError: Unable to configure handler 'zulip_admins': Cannot resolve 'zerver.handlers.AdminZulipHandler': No module named ujson\r\n```\r\n\r\nThis was easily fixed by running `apt-get install python-pip libpython2.7-dev; pip install ujson`, but it would obviously be better if the `python-ujson` package were properly available. It might also be better if the setup script were more thorough about error checking (or if Zulip were a traditional .deb package that could declare its own dependencies - but that's a whole other can of worms)."}}