{"action":"created","issue":{"url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/19","repository_url":"https://api.github.com/repos/spatialaudio/python-sounddevice","labels_url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/19/comments","events_url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/19/events","html_url":"https://github.com/spatialaudio/python-sounddevice/issues/19","id":139450511,"number":19,"title":"Python import sounddevice as sd (ImportError: No module name sounddevice)","user":{"login":"Tondy","id":1473686,"avatar_url":"https://avatars.githubusercontent.com/u/1473686?v=3","gravatar_id":"","url":"https://api.github.com/users/Tondy","html_url":"https://github.com/Tondy","followers_url":"https://api.github.com/users/Tondy/followers","following_url":"https://api.github.com/users/Tondy/following{/other_user}","gists_url":"https://api.github.com/users/Tondy/gists{/gist_id}","starred_url":"https://api.github.com/users/Tondy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tondy/subscriptions","organizations_url":"https://api.github.com/users/Tondy/orgs","repos_url":"https://api.github.com/users/Tondy/repos","events_url":"https://api.github.com/users/Tondy/events{/privacy}","received_events_url":"https://api.github.com/users/Tondy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-09T01:58:49Z","updated_at":"2016-03-09T08:43:33Z","closed_at":null,"body":"I have python code that is running on raspberry pi B++ that uses the sounddevice library that lets you play and record sounds with python. I have successfully installed the modules. I can confirm through the python command line and enter import sounddevice as sd is works without errors. I have also confirmed by typing help ('modules') in python command line and sounddevice module appears. Only when I am running this code in an independent python program does the ImportError: No module name sounddevice appear.\r\n\r\nHope some one can help.\r\n\r\nHere is the included code:\r\n\r\nimport sounddevice as sd\r\n\r\nThe error:\r\n\r\nImportError: No module name sounddevice"},"comment":{"url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/comments/194185722","html_url":"https://github.com/spatialaudio/python-sounddevice/issues/19#issuecomment-194185722","issue_url":"https://api.github.com/repos/spatialaudio/python-sounddevice/issues/19","id":194185722,"user":{"login":"mgeier","id":705404,"avatar_url":"https://avatars.githubusercontent.com/u/705404?v=3","gravatar_id":"","url":"https://api.github.com/users/mgeier","html_url":"https://github.com/mgeier","followers_url":"https://api.github.com/users/mgeier/followers","following_url":"https://api.github.com/users/mgeier/following{/other_user}","gists_url":"https://api.github.com/users/mgeier/gists{/gist_id}","starred_url":"https://api.github.com/users/mgeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgeier/subscriptions","organizations_url":"https://api.github.com/users/mgeier/orgs","repos_url":"https://api.github.com/users/mgeier/repos","events_url":"https://api.github.com/users/mgeier/events{/privacy}","received_events_url":"https://api.github.com/users/mgeier/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T08:43:33Z","updated_at":"2016-03-09T08:43:33Z","body":"Do you have different Python versions installed?\r\n\r\nIf yes, you have to install the module on each of them.\r\n\r\nOr probably your \"independent python program\" uses a virtual environment?"}}