{"id":895,"date":"2014-11-20T16:38:50","date_gmt":"2014-11-20T21:38:50","guid":{"rendered":"https:\/\/www.softwareab.net\/wordpress\/?p=895"},"modified":"2014-11-20T16:38:50","modified_gmt":"2014-11-20T21:38:50","slug":"openstack-client-tools-mac-install-errors","status":"publish","type":"post","link":"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/","title":{"rendered":"OpenStack Client Tools: Mac Install Errors"},"content":{"rendered":"<p>Today&#8217;s adventure is on the Mac OSX Mavericks, we tried to install OpenStack client tools and had some failures. Read on to see how we work around it.<\/p>\n<p><!--more--><\/p>\n<p>The problem? On a brand-new OSX Mavericks tried to follow the instructions from the standard Guide at http:\/\/docs.openstack.org\/user-guide\/content\/install_clients.html.<\/p>\n<p>Presumably, this is very simple. Just use commands like:<\/p>\n<pre>\r\nsudo pip install python-novaclient\r\n<\/pre>\n<p>Running the <code>pip<\/code> command works fine&#8230;but when you run any of the clients, you get the following type of error:<\/p>\n<pre>\r\nisgmj2chg3qp:~ n75029$ nova\r\nTraceback (most recent call last):\r\n  File \"\/usr\/local\/bin\/nova\", line 7, in <module>\r\n    from novaclient.shell import main\r\n  File \"\/Library\/Python\/2.7\/site-packages\/novaclient\/__init__.py\", line 18, in <module>\r\n    __version__ = pbr.version.VersionInfo('python-novaclient').version_string()\r\n  File \"\/Library\/Python\/2.7\/site-packages\/pbr\/version.py\", line 78, in version_string\r\n    for part in self.release_string().split('.'):\r\n  File \"\/Library\/Python\/2.7\/site-packages\/pbr\/version.py\", line 70, in release_string\r\n    self.release = self._get_version_from_pkg_resources()\r\n  File \"\/Library\/Python\/2.7\/site-packages\/pbr\/version.py\", line 62, in _get_version_from_pkg_resources\r\n    return packaging.get_version(self.package)\r\n  File \"\/Library\/Python\/2.7\/site-packages\/pbr\/packaging.py\", line 870, in get_version\r\n    raise Exception(\"Versioning for this project requires either an sdist\" \r\nException: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?\r\n<\/pre>\n<h3>The Solution &#8211; Long-Term<\/h3>\n<p>This is a known bug &#8211; see https:\/\/bugs.launchpad.net\/pbr\/+bug\/1369179. The problem is strictly related to how the software is installed and interactions between the <code>pbr<\/code> (Python Build Reasonableness &#8211; see http:\/\/docs.openstack.org\/developer\/pbr\/) packages. It will be fixed either in the OpenStack Juno or Kilo releases.<\/p>\n<h3>The Workaround<\/h3>\n<p>The basic problem is that the Python <code>pbr<\/code> module is looking to read the package version information only from the PKG-INFO file, which is not present when you use the <code>pip install<\/code> pattern recommended by OpenStack. While <code>pbr<\/code> will be fixed to look for package version information from the METADATA file as well as the PKG-INFO file, short-term we need a solution.<\/p>\n<p>The answer is easy but a bit time-consuming: install from source.<\/p>\n<p>Before you start to think that this is not a good idea, keep in mind that &#8220;source&#8221; is simply Python code. Which is all that <code>pip<\/code> would do; we&#8217;re just doing the steps manually. Because we are installing from source, the PKG-INFO file is created and installed in the application folders like <code>\/Library\/Python\/2.7\/site-packages\/novaclient<\/code> and everything works.<\/p>\n<p>To do the install:<\/p>\n<ul>\n<li>Pull down the package you want. You can find them at the Python Package Index at https:\/\/pypi.python.org\/pypi. Simply search for the OpenStack client package name like <code>python-novaclient<\/code> and you&#8217;ll find the page you want. It will come down as a <code>.tar.gz<\/code> file.<\/li>\n<li>Be <strong>sure<\/strong> to start with the <strong><code>pbr<\/code> package<\/strong>. First uninstall it if it is there:\n<pre>\r\nsudo pip uninstall pbr\r\n<\/pre>\n<p>Then uncompress the downloaded package; I used:<\/p>\n<pre>\r\ntar xzf pbr-0.10.0.tar.gz\r\ncd pbr-0.10.0\r\nsudo python .\/setup.py install\r\n<\/pre>\n<p>That&#8217;s it. The <code>pbr<\/code> package is now installed.<\/li>\n<li>Repeat the above pattern for each of the OpenStack client tools. For example:\n<pre>\r\ntar xzf python-novaclient-2.20.0.tar.gz\r\ncd python-novaclient-2.20.0\r\nsudo python .\/setup.py install\r\n<\/pre>\n<\/li>\n<p>And now, when you run the client tools they will work OK:<\/p>\n<pre>\r\nisgmj2chg3qp:openstack-client n75029$ nova --version\r\n2.20.0\r\n<\/pre>\n<p>Happy Computing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s adventure is on the Mac OSX Mavericks, we tried to install OpenStack client tools and had some failures. Read on to see how we work around it.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[66,73,69,1],"tags":[67,86,74,71],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>OpenStack Client Tools: Mac Install Errors - softwareab<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OpenStack Client Tools: Mac Install Errors - softwareab\" \/>\n<meta property=\"og:description\" content=\"Today&#8217;s adventure is on the Mac OSX Mavericks, we tried to install OpenStack client tools and had some failures. Read on to see how we work around it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/\" \/>\n<meta property=\"og:site_name\" content=\"softwareab\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/cloudraticsolutions\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/cloudraticsolutions\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-11-20T21:38:50+00:00\" \/>\n<meta name=\"author\" content=\"Andrew Bruce\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@realcloudratics\" \/>\n<meta name=\"twitter:site\" content=\"@realcloudratics\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andrew Bruce\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/\"},\"author\":{\"name\":\"Andrew Bruce\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600\"},\"headline\":\"OpenStack Client Tools: Mac Install Errors\",\"datePublished\":\"2014-11-20T21:38:50+00:00\",\"dateModified\":\"2014-11-20T21:38:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/\"},\"wordCount\":373,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600\"},\"keywords\":[\"cloud\",\"OpenStack\",\"OSX\",\"virtualization\"],\"articleSection\":[\"Cloud\",\"Mac\",\"OpenStack\",\"Teknocratica\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/\",\"url\":\"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/\",\"name\":\"OpenStack Client Tools: Mac Install Errors - softwareab\",\"isPartOf\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#website\"},\"datePublished\":\"2014-11-20T21:38:50+00:00\",\"dateModified\":\"2014-11-20T21:38:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.softwareab.net\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"cloud\",\"item\":\"https:\/\/www.softwareab.net\/wordpress\/tag\/cloud-2\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"OpenStack Client Tools: Mac Install Errors\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#website\",\"url\":\"https:\/\/www.softwareab.net\/wordpress\/\",\"name\":\"softwareab\",\"description\":\"Technocratica, Technopolitik, Technophobia\",\"publisher\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.softwareab.net\/wordpress\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600\",\"name\":\"Andrew Bruce\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.softwareab.net\/wordpress\/wp-content\/uploads\/2024\/03\/andy-cartoon.jpg\",\"contentUrl\":\"https:\/\/www.softwareab.net\/wordpress\/wp-content\/uploads\/2024\/03\/andy-cartoon.jpg\",\"width\":400,\"height\":330,\"caption\":\"Andrew Bruce\"},\"logo\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/image\/\"},\"description\":\"Team-oriented systems mentor with deep knowledge of numerous software methodologies, technologies, languages, and operating systems. Excited about turning emerging technology into working production-ready systems. Focused on moving software teams to a higher level of world-class application development. Specialties:Software analysis and development...Product management through the entire lifecycle...Discrete product integration specialist!\",\"sameAs\":[\"http:\/\/cloudraticsolutions.net\/\",\"https:\/\/www.facebook.com\/cloudraticsolutions\/\",\"https:\/\/twitter.com\/realcloudratics\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OpenStack Client Tools: Mac Install Errors - softwareab","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/","og_locale":"en_US","og_type":"article","og_title":"OpenStack Client Tools: Mac Install Errors - softwareab","og_description":"Today&#8217;s adventure is on the Mac OSX Mavericks, we tried to install OpenStack client tools and had some failures. Read on to see how we work around it.","og_url":"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/","og_site_name":"softwareab","article_publisher":"https:\/\/www.facebook.com\/cloudraticsolutions\/","article_author":"https:\/\/www.facebook.com\/cloudraticsolutions\/","article_published_time":"2014-11-20T21:38:50+00:00","author":"Andrew Bruce","twitter_card":"summary_large_image","twitter_creator":"@realcloudratics","twitter_site":"@realcloudratics","twitter_misc":{"Written by":"Andrew Bruce","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/#article","isPartOf":{"@id":"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/"},"author":{"name":"Andrew Bruce","@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600"},"headline":"OpenStack Client Tools: Mac Install Errors","datePublished":"2014-11-20T21:38:50+00:00","dateModified":"2014-11-20T21:38:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/"},"wordCount":373,"commentCount":0,"publisher":{"@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600"},"keywords":["cloud","OpenStack","OSX","virtualization"],"articleSection":["Cloud","Mac","OpenStack","Teknocratica"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/","url":"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/","name":"OpenStack Client Tools: Mac Install Errors - softwareab","isPartOf":{"@id":"https:\/\/www.softwareab.net\/wordpress\/#website"},"datePublished":"2014-11-20T21:38:50+00:00","dateModified":"2014-11-20T21:38:50+00:00","breadcrumb":{"@id":"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.softwareab.net\/wordpress\/openstack-client-tools-mac-install-errors\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.softwareab.net\/wordpress\/"},{"@type":"ListItem","position":2,"name":"cloud","item":"https:\/\/www.softwareab.net\/wordpress\/tag\/cloud-2\/"},{"@type":"ListItem","position":3,"name":"OpenStack Client Tools: Mac Install Errors"}]},{"@type":"WebSite","@id":"https:\/\/www.softwareab.net\/wordpress\/#website","url":"https:\/\/www.softwareab.net\/wordpress\/","name":"softwareab","description":"Technocratica, Technopolitik, Technophobia","publisher":{"@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.softwareab.net\/wordpress\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600","name":"Andrew Bruce","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/www.softwareab.net\/wordpress\/wp-content\/uploads\/2024\/03\/andy-cartoon.jpg","contentUrl":"https:\/\/www.softwareab.net\/wordpress\/wp-content\/uploads\/2024\/03\/andy-cartoon.jpg","width":400,"height":330,"caption":"Andrew Bruce"},"logo":{"@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/image\/"},"description":"Team-oriented systems mentor with deep knowledge of numerous software methodologies, technologies, languages, and operating systems. Excited about turning emerging technology into working production-ready systems. Focused on moving software teams to a higher level of world-class application development. Specialties:Software analysis and development...Product management through the entire lifecycle...Discrete product integration specialist!","sameAs":["http:\/\/cloudraticsolutions.net\/","https:\/\/www.facebook.com\/cloudraticsolutions\/","https:\/\/twitter.com\/realcloudratics"]}]}},"_links":{"self":[{"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/posts\/895"}],"collection":[{"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/comments?post=895"}],"version-history":[{"count":1,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/posts\/895\/revisions"}],"predecessor-version":[{"id":896,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/posts\/895\/revisions\/896"}],"wp:attachment":[{"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/media?parent=895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/categories?post=895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/tags?post=895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}