{"action":"created","issue":{"url":"https://api.github.com/repos/20c/vaping/issues/8","repository_url":"https://api.github.com/repos/20c/vaping","labels_url":"https://api.github.com/repos/20c/vaping/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/20c/vaping/issues/8/comments","events_url":"https://api.github.com/repos/20c/vaping/issues/8/events","html_url":"https://github.com/20c/vaping/issues/8","id":206171648,"number":8,"title":"default config dir","user":{"login":"justinc1","id":587971,"avatar_url":"https://avatars.githubusercontent.com/u/587971?v=3","gravatar_id":"","url":"https://api.github.com/users/justinc1","html_url":"https://github.com/justinc1","followers_url":"https://api.github.com/users/justinc1/followers","following_url":"https://api.github.com/users/justinc1/following{/other_user}","gists_url":"https://api.github.com/users/justinc1/gists{/gist_id}","starred_url":"https://api.github.com/users/justinc1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinc1/subscriptions","organizations_url":"https://api.github.com/users/justinc1/orgs","repos_url":"https://api.github.com/users/justinc1/repos","events_url":"https://api.github.com/users/justinc1/events{/privacy}","received_events_url":"https://api.github.com/users/justinc1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-08T11:32:53Z","updated_at":"2017-02-08T11:49:28Z","closed_at":null,"body":"Immediately after pip install vaping:\r\n```\r\n(vaping)justin_cinkelj@jcdell ~ $ vaping start\r\nTraceback (most recent call last):\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/bin/vaping\", line 9, in <module>\r\n    load_entry_point('vaping==0.2.0', 'console_scripts', 'vaping')()\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 722, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 697, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 1066, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 895, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 535, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/decorators.py\", line 64, in new_func\r\n    return ctx.invoke(f, obj, *args[1:], **kwargs)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 535, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/vaping/cli.py\", line 54, in start\r\n    daemon = vaping.daemon.Vaping(ctx.config)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/vaping/daemon.py\", line 48, in __init__\r\n    self.home_dir = os.path.abspath(self.config.meta['config_dir'])\r\nTypeError: 'NoneType' object has no attribute '__getitem__'\r\n```\r\n\r\nCould a default config file/dir be auto-created?\r\n\r\nAlso, error message like \"Specify a valid VAPING_HOME, for example $0 --home ./.vaping\" would be nice.\r\n"},"comment":{"url":"https://api.github.com/repos/20c/vaping/issues/comments/278306908","html_url":"https://github.com/20c/vaping/issues/8#issuecomment-278306908","issue_url":"https://api.github.com/repos/20c/vaping/issues/8","id":278306908,"user":{"login":"justinc1","id":587971,"avatar_url":"https://avatars.githubusercontent.com/u/587971?v=3","gravatar_id":"","url":"https://api.github.com/users/justinc1","html_url":"https://github.com/justinc1","followers_url":"https://api.github.com/users/justinc1/followers","following_url":"https://api.github.com/users/justinc1/following{/other_user}","gists_url":"https://api.github.com/users/justinc1/gists{/gist_id}","starred_url":"https://api.github.com/users/justinc1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinc1/subscriptions","organizations_url":"https://api.github.com/users/justinc1/orgs","repos_url":"https://api.github.com/users/justinc1/repos","events_url":"https://api.github.com/users/justinc1/events{/privacy}","received_events_url":"https://api.github.com/users/justinc1/received_events","type":"User","site_admin":false},"created_at":"2017-02-08T11:49:28Z","updated_at":"2017-02-08T11:49:28Z","body":"```\r\nmkdir ~/.vaping\r\n\r\n(vaping)justin_cinkelj@jcdell ~ $ vaping --debug --home ~/.vaping start\r\nTraceback (most recent call last):\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/bin/vaping\", line 9, in <module>\r\n    load_entry_point('vaping==0.2.0', 'console_scripts', 'vaping')()\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 722, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 697, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 1063, in invoke\r\n    Command.invoke(self, ctx)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 895, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 535, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/decorators.py\", line 64, in new_func\r\n    return ctx.invoke(f, obj, *args[1:], **kwargs)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 535, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/vaping/cli.py\", line 40, in cli\r\n    update_context(ctx, kwargs)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/vaping/cli.py\", line 21, in update_context\r\n    ctx.update_options(kwargs)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/munge/click.py\", line 70, in update_options\r\n    self.config = self.config_class(read=self.home)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/munge/config.py\", line 59, in __init__\r\n    self.read(kwargs['read'])\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/munge/config.py\", line 138, in read\r\n    raise IOError(\"config file not found in %s\" % (conf_path,))\r\nIOError: config file not found in /home/justin_cinkelj/.vaping\r\n```\r\n\r\nSo I create the official config file:\r\n```\r\n(vaping)justin_cinkelj@jcdell ~ $ cat ~/.vaping/config.yml \r\nvaping:\r\n  pidfile: vaping.pid\r\n  plugin_path: []\r\n\r\n\r\nprobes:\r\n\r\nplugins:\r\n(vaping)justin_cinkelj@jcdell ~ $ \r\n(vaping)justin_cinkelj@jcdell ~ $ vaping --debug --home ~/.vaping start\r\npluginmgr hook.compile(vaping.plugins) __init__.py:25\r\nTraceback (most recent call last):\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/bin/vaping\", line 9, in <module>\r\n    load_entry_point('vaping==0.2.0', 'console_scripts', 'vaping')()\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 722, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 697, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 1066, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 895, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 535, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/decorators.py\", line 64, in new_func\r\n    return ctx.invoke(f, obj, *args[1:], **kwargs)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/click/core.py\", line 535, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/vaping/cli.py\", line 54, in start\r\n    daemon = vaping.daemon.Vaping(ctx.config)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/vaping/daemon.py\", line 53, in __init__\r\n    plugin.instantiate(config['plugins'], self.plugin_context)\r\n  File \"/home/justin_cinkelj/.virtualenvs/vaping/local/lib/python2.7/site-packages/pluginmgr/__init__.py\", line 272, in instantiate\r\n    for plugin_config in config:\r\nTypeError: 'NoneType' object is not iterable\r\n(vaping)justin_cinkelj@jcdell ~ $ \r\n```\r\n\r\nShould I add one plugin from .virtualenvs/vaping/lib/python2.7/site-packages/vaping/plugins?\r\n\r\n"}}
{"actor":{"display_login":"justinc1"}}