{"id":1447,"date":"2016-04-22T16:04:16","date_gmt":"2016-04-22T23:04:16","guid":{"rendered":"http:\/\/www.laurenwood.org\/anyway\/?p=1447"},"modified":"2016-04-22T16:04:33","modified_gmt":"2016-04-22T23:04:33","slug":"importerror","status":"publish","type":"post","link":"https:\/\/www.laurenwood.org\/anyway\/2016\/04\/importerror\/","title":{"rendered":"ImportError"},"content":{"rendered":"<p>I dis\u00adcovered anoth\u00ader issue while deploy\u00ading to Python\u00adAny\u00adwhere (maybe it\u2019s applic\u00adable to oth\u00ader <span class=\"caps\">PAAS<\/span> pro\u00adviders as&nbsp;well).<\/p>\n<p>There was an odd Impor\u00adt\u00adEr\u00adror when run\u00adning <code>manage.py<\/code>. In the spe\u00adcif\u00adic case I had, it showed up when run\u00adning the tests with <code>coverage<\/code>: <quote>from Uni\u00adpath import Path Impor\u00adt\u00adEr\u00adror: No mod\u00adule named \u2018Uni\u00adpath\u2019<\/quote>. It turned out I had\u00adn\u2019t installed cov\u00ader\u00adage in the vir\u00adtu\u00adal envir\u00adon\u00adment, which meant the sys\u00adtem was using the default one. Installing cov\u00ader\u00adage in the vir\u00adtu\u00adal envir\u00adon\u00adment as well fixed the problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I dis\u00adcovered anoth\u00ader issue while deploy\u00ading to Python\u00adAny\u00adwhere (maybe it\u2019s applic\u00adable to oth\u00ader <span class=\"caps\">PAAS<\/span> pro\u00adviders as&nbsp;well). There was an odd Impor\u00adt\u00adEr\u00adror when run\u00adning manage.py. In the spe\u00adcif\u00adic case I had, it showed up when run\u00adning the tests with cov\u00ader\u00adage: from Uni\u00adpath import Path Impor\u00adt\u00adEr\u00adror: No mod\u00adule named \u2018Uni\u00adpath\u2019. It turned out I had\u00adn\u2019t installed cov\u00ader\u00adage \u2026 <a href=\"https:\/\/www.laurenwood.org\/anyway\/2016\/04\/importerror\/\" class=\"more-link\">Con\u00adtin\u00adue read\u00ading<span class=\"screen-reader-text\"> \u201cImpor\u00adt\u00adEr\u00adror\u201d<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wp_typography_post_enhancements_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"","activitypub_status":"","footnotes":""},"categories":[112,6],"tags":[],"class_list":["post-1447","post","type-post","status-publish","format-standard","hentry","category-django","category-technology"],"_links":{"self":[{"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/posts\/1447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/comments?post=1447"}],"version-history":[{"count":4,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/posts\/1447\/revisions"}],"predecessor-version":[{"id":1451,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/posts\/1447\/revisions\/1451"}],"wp:attachment":[{"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/media?parent=1447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/categories?post=1447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/tags?post=1447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}