{"action":"opened","issue":{"url":"https://api.github.com/repos/Dronecode/MAVProxy/issues/181","labels_url":"https://api.github.com/repos/Dronecode/MAVProxy/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/Dronecode/MAVProxy/issues/181/comments","events_url":"https://api.github.com/repos/Dronecode/MAVProxy/issues/181/events","html_url":"https://github.com/Dronecode/MAVProxy/issues/181","id":101172455,"number":181,"title":"Error importing modules in scripts called within MAVProxy","user":{"login":"HuguesD","id":13796161,"avatar_url":"https://avatars.githubusercontent.com/u/13796161?v=3","gravatar_id":"","url":"https://api.github.com/users/HuguesD","html_url":"https://github.com/HuguesD","followers_url":"https://api.github.com/users/HuguesD/followers","following_url":"https://api.github.com/users/HuguesD/following{/other_user}","gists_url":"https://api.github.com/users/HuguesD/gists{/gist_id}","starred_url":"https://api.github.com/users/HuguesD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HuguesD/subscriptions","organizations_url":"https://api.github.com/users/HuguesD/orgs","repos_url":"https://api.github.com/users/HuguesD/repos","events_url":"https://api.github.com/users/HuguesD/events{/privacy}","received_events_url":"https://api.github.com/users/HuguesD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-15T12:47:15Z","updated_at":"2015-08-15T12:47:15Z","closed_at":null,"body":"Hi,\r\nI try to run a simple script from MAVProxy (via command:  api start script.py) which contains this code:\r\n###################################\r\nimport sys, pygame, pygame.mixer\r\n\r\npygame.init()\r\n\r\nsize = width, height = 600, 400\r\nblack = 0,0,0\r\n\r\nscreen = pygame.display.set_mode(size)\r\ntux = pygame.image.load(\"logo.bmp\")\r\n\r\nx = 0\r\ny = 0\r\nr = 0\r\ng = 0\r\nb = 0\r\nwhile 1:\r\n\tfor event in pygame.event.get():\r\n\t\tif event.type == pygame.QUIT:\r\n\t\t\tsys.exit()\r\n\t\telif event.type == KEYDOWN:\r\n\t\t\tsys.exit()\r\n\tscreen.fill((r,g,b))\t\r\n\tscreen.blit(tux,(200,200))\r\n\tscreen.blit(tux,(x,y))\r\n\tpygame.display.flip()\r\n\tx = x+1\r\n\ty = y+1\r\n\tif r == 255:\r\n\t\tr1 = -1\r\n\telif r == 0:\r\n\t\tr1 = 1\r\n\tr = r+r1\r\n##############################\r\nIt stop on an Import Error : no module named mixer\r\nAlthough the sys.path is correctly set and although the file pygame.mixer.pyd is in the script directory\r\nI'm under windows.\r\nAny idea how to solve this issue ?"}}