{"id":933,"date":"2014-12-02T11:08:22","date_gmt":"2014-12-02T10:08:22","guid":{"rendered":"http:\/\/elkano.org\/blog\/?p=933"},"modified":"2014-12-02T11:08:22","modified_gmt":"2014-12-02T10:08:22","slug":"calamari-initialize-ubuntu-14-04-importerror-module-named-_io","status":"publish","type":"post","link":"https:\/\/elkano.org\/blog\/calamari-initialize-ubuntu-14-04-importerror-module-named-_io\/","title":{"rendered":"calamari initialize on ubuntu 14.04: ImportError: No module named _io"},"content":{"rendered":"<p>After installing calamari on Ubuntu 14.04 trusty I run initialize script but got the following error:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-linenumbers=\"false\">#calamari-ctl initialize\r\nTraceback (most recent call last):\r\nFile &quot;\/usr\/bin\/calamari-ctl&quot;, line 9, in \r\nload_entry_point(&#039;calamari-cthulhu==0.1&#039;, &#039;console_scripts&#039;, &#039;calamari-ctl&#039;)()\r\nFile &quot;\/opt\/calamari\/venv\/local\/lib\/python2.7\/site-packages\/distribute-0.6.24-py2.7.egg\/pkg_resources.py&quot;, line 337, in load_entry_point\r\nreturn get_distribution(dist).load_entry_point(group, name)\r\nFile &quot;\/opt\/calamari\/venv\/local\/lib\/python2.7\/site-packages\/distribute-0.6.24-py2.7.egg\/pkg_resources.py&quot;, line 2279, in load_entry_point\r\nreturn ep.load()\r\nFile &quot;\/opt\/calamari\/venv\/local\/lib\/python2.7\/site-packages\/distribute-0.6.24-py2.7.egg\/pkg_resources.py&quot;, line 1989, in load\r\nentry = __import__(self.module_name, globals(),globals(), [&#039;__name__&#039;])\r\nFile &quot;\/opt\/calamari\/venv\/local\/lib\/python2.7\/site-packages\/calamari_cthulhu-0.1-py2.7.egg\/cthulhu\/calamari_ctl.py&quot;, line 6, in \r\nimport tempfile\r\nFile &quot;\/usr\/lib\/python2.7\/tempfile.py&quot;, line 32, in \r\nimport io as _io\r\nFile &quot;\/usr\/lib\/python2.7\/io.py&quot;, line 51, in \r\nimport _io\r\nImportError: No module named _io<\/pre>\n<p>To fix:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-linenumbers=\"false\"># mv \/opt\/calamari\/venv\/local\/bin\/python \/opt\/calamari\/venv\/local\/bin\/pythonOLD\r\n# cp \/usr\/bin\/python2.7 \/opt\/calamari\/venv\/local\/bin\/python\r\n<\/pre>\n<p>And then:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-linenumbers=\"false\"># calamari-ctl initialize\r\n[INFO] Loading configuration..\r\n[INFO] Starting\/enabling salt...\r\n[INFO] Starting\/enabling postgres...\r\n[INFO] Initializing database...\r\n[INFO] Initializing web interface...\r\n[INFO] You will now be prompted for login details for the administrative user account. This is the account you will use to log into the web interface once setup is complete.\r\nUsername (leave blank to use &#039;root&#039;):\r\nEmail address: user@domain\r\nPassword:\r\nPassword (again):\r\nSuperuser created successfully.\r\n[INFO] Starting\/enabling services...\r\n[INFO] Restarting services...\r\n[INFO] Complete.<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>After installing calamari on Ubuntu 14.04 trusty I run initialize script but got the following error: #calamari-ctl initialize Traceback (most recent call last): File &quot;\/usr\/bin\/calamari-ctl&quot;, line 9, in load_entry_point(&#039;calamari-cthulhu==0.1&#039;, &#039;console_scripts&#039;, &#039;calamari-ctl&#039;)() File &quot;\/opt\/calamari\/venv\/local\/lib\/python2.7\/site-packages\/distribute-0.6.24-py2.7.egg\/pkg_resources.py&quot;, line 337, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File &quot;\/opt\/calamari\/venv\/local\/lib\/python2.7\/site-packages\/distribute-0.6.24-py2.7.egg\/pkg_resources.py&quot;, line 2279, in load_entry_point return ep.load() File &quot;\/opt\/calamari\/venv\/local\/lib\/python2.7\/site-packages\/distribute-0.6.24-py2.7.egg\/pkg_resources.py&quot;, line 1989, in load entry [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[120],"tags":[133,121,134],"_links":{"self":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/933"}],"collection":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/comments?post=933"}],"version-history":[{"count":2,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/933\/revisions"}],"predecessor-version":[{"id":935,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/933\/revisions\/935"}],"wp:attachment":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/media?parent=933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/categories?post=933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/tags?post=933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}