{"action":"created","issue":{"url":"https://api.github.com/repos/n8henrie/fauxmo/issues/50","repository_url":"https://api.github.com/repos/n8henrie/fauxmo","labels_url":"https://api.github.com/repos/n8henrie/fauxmo/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/n8henrie/fauxmo/issues/50/comments","events_url":"https://api.github.com/repos/n8henrie/fauxmo/issues/50/events","html_url":"https://github.com/n8henrie/fauxmo/issues/50","id":294222887,"number":50,"title":"problems starting fauxmo as service","user":{"login":"luks29","id":35041880,"avatar_url":"https://avatars2.githubusercontent.com/u/35041880?v=4","gravatar_id":"","url":"https://api.github.com/users/luks29","html_url":"https://github.com/luks29","followers_url":"https://api.github.com/users/luks29/followers","following_url":"https://api.github.com/users/luks29/following{/other_user}","gists_url":"https://api.github.com/users/luks29/gists{/gist_id}","starred_url":"https://api.github.com/users/luks29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luks29/subscriptions","organizations_url":"https://api.github.com/users/luks29/orgs","repos_url":"https://api.github.com/users/luks29/repos","events_url":"https://api.github.com/users/luks29/events{/privacy}","received_events_url":"https://api.github.com/users/luks29/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-04T19:27:35Z","updated_at":"2018-02-06T01:00:37Z","closed_at":null,"author_association":"NONE","body":"- **Operating system and version**:\r\n- **Python version**: 3.6.4\r\n- **Fauxmo version** (`fauxmo --version`): 0.4.5\r\n- **Echo device type** (e.g. Echo, Echo Plus, Dot): Echo Plus 2nd Gen \r\n- **[Echo Firmware Version](https://github.com/n8henrie/fauxmo/blob/dev/README.md#troubleshooting--faq)**: \r\n\r\n## My Issue\r\nI cannot get fauxmo running as a startup service. Everything works perfectly when I use it under my virtualenv:\r\n`fauxmo -c config.json -v`\r\n\r\nBut when I try:\r\n`python -m fauxmo.cli -c config.json -v`\r\n\r\nI get:\r\n```\r\n(venv) pi@raspi2:~$ python -m fauxmo.cli -c config.json -v\r\n34\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.6/runpy.py\", line 193, in _run_module_as_main\r\n    \"__main__\", mod_spec)\r\n  File \"/usr/local/lib/python3.6/runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"/home/pi/venv/lib/python3.6/site-packages/fauxmo/cli.py\", line 10, in <module>\r\n    from fauxmo.fauxmo import main\r\n  File \"/home/pi/venv/lib/python3.6/site-packages/fauxmo/fauxmo.py\", line 15, in <module>\r\n    from test.support import find_unused_port\r\nModuleNotFoundError: No module named 'test.support'; 'test' is not a package\r\n```\r\n\r\nIf I try starting it without loading my venv it either takes the wrong python version(2.7.?) or it brings the same error as above. \r\n\r\n\r\nAnd the same happens when I start it as service.\r\n\r\n## [WHYT](http://mattgemmell.com/what-have-you-tried)\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/n8henrie/fauxmo/issues/comments/363274247","html_url":"https://github.com/n8henrie/fauxmo/issues/50#issuecomment-363274247","issue_url":"https://api.github.com/repos/n8henrie/fauxmo/issues/50","id":363274247,"user":{"login":"n8henrie","id":1234956,"avatar_url":"https://avatars1.githubusercontent.com/u/1234956?v=4","gravatar_id":"","url":"https://api.github.com/users/n8henrie","html_url":"https://github.com/n8henrie","followers_url":"https://api.github.com/users/n8henrie/followers","following_url":"https://api.github.com/users/n8henrie/following{/other_user}","gists_url":"https://api.github.com/users/n8henrie/gists{/gist_id}","starred_url":"https://api.github.com/users/n8henrie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n8henrie/subscriptions","organizations_url":"https://api.github.com/users/n8henrie/orgs","repos_url":"https://api.github.com/users/n8henrie/repos","events_url":"https://api.github.com/users/n8henrie/events{/privacy}","received_events_url":"https://api.github.com/users/n8henrie/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T01:00:37Z","updated_at":"2018-02-06T01:00:37Z","author_association":"OWNER","body":"Hmm, I can't reproduce.\r\n```\r\n$ python --version\r\nPython 3.6.4\r\n$ python -m fauxmo.cli -c config.json -vv\r\n2018-02-05 17:56:53 fauxmo:37       INFO     Fauxmo v0.4.5\r\n2018-02-05 17:56:54 fauxmo:123      INFO     Starting UDP server\r\n```\r\n\r\nHow did you install Fauxmo?\r\n\r\nCan you try deleting your venv, recreating, installing fauxmo, and report back?"}}
{"actor":{"display_login":"n8henrie"}}