{"action":"closed","issue":{"url":"https://api.github.com/repos/acockburn/appdaemon/issues/9","repository_url":"https://api.github.com/repos/acockburn/appdaemon","labels_url":"https://api.github.com/repos/acockburn/appdaemon/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/acockburn/appdaemon/issues/9/comments","events_url":"https://api.github.com/repos/acockburn/appdaemon/issues/9/events","html_url":"https://github.com/acockburn/appdaemon/issues/9","id":172555277,"number":9,"title":"Problems upgrading from the Initial v1 release","user":{"login":"jbardi","id":227243,"avatar_url":"https://avatars.githubusercontent.com/u/227243?v=3","gravatar_id":"","url":"https://api.github.com/users/jbardi","html_url":"https://github.com/jbardi","followers_url":"https://api.github.com/users/jbardi/followers","following_url":"https://api.github.com/users/jbardi/following{/other_user}","gists_url":"https://api.github.com/users/jbardi/gists{/gist_id}","starred_url":"https://api.github.com/users/jbardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbardi/subscriptions","organizations_url":"https://api.github.com/users/jbardi/orgs","repos_url":"https://api.github.com/users/jbardi/repos","events_url":"https://api.github.com/users/jbardi/events{/privacy}","received_events_url":"https://api.github.com/users/jbardi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-22T21:07:39Z","updated_at":"2016-08-24T11:29:55Z","closed_at":"2016-08-24T11:29:55Z","body":"There were several issues with upgrading from the initial release that broke everything until I did some trial and error troubleshooting.\r\n\r\nA big issue was that you changed from using import appapi to import appdaemon.appapi as appapi, which stopped all of my pervious apps from running. I only found out the proper import by looking at the hello.py, so I had to replace that line in all of my apps.\r\n\r\nI was forced to run it as a systemd service because the /etc/init.d script you provided will not work as it keeps giving the error:\r\n\r\nImportError: No module named 'appdaemon.conf'; 'appdaemon' is not a package\r\n\r\nSo it is not finding the conf.py from the appdaemon.py\r\n\r\nSo, then, using the systemd service throws an error because it does not include the -c argument to point to the configuration file, which is at the default location along with the included appdaemon.cfg.example, but it still told me it couldn't find it, so I had to add the -c flag to the appdaemon.service file.\r\n\r\nI really LOVE appdaemon, but enough has changed from the setup of the original version that I can guarantee that all users of the previous version will have errors and problems upgrading. Hopefully this will not be a problem for new users starting out fresh.\r\n\r\nThanks again for the appdaemon, don't know how I lived without it :)"}}
{"actor":{"display_login":"acockburn"}}