{"id":14589,"date":"2022-03-07T09:12:45","date_gmt":"2022-03-07T17:12:45","guid":{"rendered":"https:\/\/www.vernier.com\/til\/?p=14589"},"modified":"2022-11-17T11:25:38","modified_gmt":"2022-11-17T19:25:38","slug":"no-module-named-godirect-error-message-using-gdx-sensors-with-python","status":"publish","type":"post","link":"https:\/\/www.vernier.com\/til\/14589","title":{"rendered":"No module named &#8216;godirect&#8217; error message using Go Direct sensors with Python"},"content":{"rendered":"<p>If you get this message:  ModuleNotFoundError:&nbsp; No module named &#8216;godirect&#8217; on&nbsp; the line of code that reads &#8220;from gdx import gdx&#8221;, there are two possible causes:<\/p>\n<p> If the message says the error is in the file gdx\/<a href=\"http:\/\/gdx.py\">gdx.py<\/a>, line 1 as in the example below:<\/p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.vernier.com\/wp-content\/uploads\/2022\/03\/a1-1-1024x123.png\" alt=\"\" class=\"wp-image-165699\"\/><\/figure>\n<p>This means you do not have the Vernier godirect module installed properly. All you need to go is to make sure you have&nbsp; internet connectivity and access to a terminal program and follow the instructions in the section labelled &#8220;Install the Vernier godirect Module&#8221; on the Vernier GDX Python instructions at <a href=\"https:\/\/vernierst.github.io\/godirect-examples\/python\/\"><a href=\"https:\/\/vernierst.github.io\/godirect-examples\/python\/\">https:\/\/vernierst.github.io\/godirect-examples\/python\/<\/a><\/a><br \/>You do not need to reboot or restart your IDE. The change should take effect immediately.<\/p>\n<p>If the message says the error is in the file other than gdx\/<a href=\"http:\/\/gdx.py\">gdx.py<\/a>, and probably not on line 1,&nbsp; as in the example below:<\/p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.vernier.com\/wp-content\/uploads\/2022\/03\/a3-1024x153.png\" alt=\"\" class=\"wp-image-165701\"\/><\/figure>\n<p>This means you do not have the required folder named &#8220;gdx&#8221; in the same folder with the code you are running.&nbsp; All you have to do is go to move the folder named gdx to the same folder where your python code is stored. You might refer to the section labelled &#8220;About the Getting Started Examples&#8221; on the Vernier GDX Python instructions at <a href=\"https:\/\/vernierst.github.io\/godirect-examples\/python\/\"><a href=\"https:\/\/vernierst.github.io\/godirect-examples\/python\/\">https:\/\/vernierst.github.io\/godirect-examples\/python\/<\/a><\/a><\/p>\n<p><a href=\"\/til\/16133\/\">Coding with Vernier Sensors and Python - Troubleshooting and FAQs<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>If you get this message: ModuleNotFoundError:&nbsp; No module named &#8216;godirect&#8217; on&nbsp; the line of code that reads &#8220;from gdx import gdx&#8221;, there are two possible&#8230;<\/p>\n","protected":false},"author":9585,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-14589","post","type-post","status-publish","format-standard","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/14589","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/users\/9585"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/comments?post=14589"}],"version-history":[{"count":0,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/14589\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/media?parent=14589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/categories?post=14589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/tags?post=14589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}