{"id":16152,"date":"2022-10-21T09:33:51","date_gmt":"2022-10-21T16:33:51","guid":{"rendered":"https:\/\/www.vernier.com\/til\/?p=16152"},"modified":"2022-10-21T09:36:43","modified_gmt":"2022-10-21T16:36:43","slug":"do-i-need-to-have-the-gdx-folder-co-located-with-my-python-program","status":"publish","type":"post","link":"https:\/\/www.vernier.com\/til\/16152","title":{"rendered":"Do I need to have the gdx folder co-located with my Python program?"},"content":{"rendered":"<p class=\"wp-block-paragraph\">The gdx folder contains functions that allow your program to communicate with Vernier&#8217;s Go Direct sensors. When you add the <code>from gdx import gdx<\/code> code to your Python program, it will look for the gdx folder in one of two places: co-located with your program file, or in the site packages folder for your Python installation.<\/p>\n<p class=\"wp-block-paragraph\">Use this terminal command to identify where Python is looking for modules. Then move or copy the gdx to the site-packages folder.  <code>python -m site --user-site<\/code><\/p>\n<p class=\"wp-block-paragraph\"><a href=\"\/til\/16133\/\">Coding with Vernier Sensors and Python - Troubleshooting and FAQs<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>The gdx folder contains functions that allow your program to communicate with Vernier&#8217;s Go Direct sensors. When you add the from gdx import gdx code&#8230;<\/p>\n","protected":false},"author":86433,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-16152","post","type-post","status-publish","format-standard","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/16152","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\/86433"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/comments?post=16152"}],"version-history":[{"count":0,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/16152\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/media?parent=16152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/categories?post=16152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/tags?post=16152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}