{"action":"created","issue":{"url":"https://api.github.com/repos/nykh/qiniu-backup-tool/issues/4","labels_url":"https://api.github.com/repos/nykh/qiniu-backup-tool/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/nykh/qiniu-backup-tool/issues/4/comments","events_url":"https://api.github.com/repos/nykh/qiniu-backup-tool/issues/4/events","html_url":"https://github.com/nykh/qiniu-backup-tool/issues/4","id":99225401,"number":4,"title":"Windows compatibility issue","user":{"login":"nykh","id":4685174,"avatar_url":"https://avatars.githubusercontent.com/u/4685174?v=3","gravatar_id":"","url":"https://api.github.com/users/nykh","html_url":"https://github.com/nykh","followers_url":"https://api.github.com/users/nykh/followers","following_url":"https://api.github.com/users/nykh/following{/other_user}","gists_url":"https://api.github.com/users/nykh/gists{/gist_id}","starred_url":"https://api.github.com/users/nykh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nykh/subscriptions","organizations_url":"https://api.github.com/users/nykh/orgs","repos_url":"https://api.github.com/users/nykh/repos","events_url":"https://api.github.com/users/nykh/events{/privacy}","received_events_url":"https://api.github.com/users/nykh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nykh/qiniu-backup-tool/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-05T15:02:19Z","updated_at":"2015-08-07T04:18:09Z","closed_at":null,"body":"1. \r\n```python\r\nimport src.qauth\r\n```\r\ncauses ImportError. `src` is not a module. etc.\r\n\r\n2.\r\nThe dbm database files created under windows has extension not seen in UNIX system,\r\nmaking it hard to remove Windows dbm temp files."},"comment":{"url":"https://api.github.com/repos/nykh/qiniu-backup-tool/issues/comments/128592757","html_url":"https://github.com/nykh/qiniu-backup-tool/issues/4#issuecomment-128592757","issue_url":"https://api.github.com/repos/nykh/qiniu-backup-tool/issues/4","id":128592757,"user":{"login":"nykh","id":4685174,"avatar_url":"https://avatars.githubusercontent.com/u/4685174?v=3","gravatar_id":"","url":"https://api.github.com/users/nykh","html_url":"https://github.com/nykh","followers_url":"https://api.github.com/users/nykh/followers","following_url":"https://api.github.com/users/nykh/following{/other_user}","gists_url":"https://api.github.com/users/nykh/gists{/gist_id}","starred_url":"https://api.github.com/users/nykh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nykh/subscriptions","organizations_url":"https://api.github.com/users/nykh/orgs","repos_url":"https://api.github.com/users/nykh/repos","events_url":"https://api.github.com/users/nykh/events{/privacy}","received_events_url":"https://api.github.com/users/nykh/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T04:18:09Z","updated_at":"2015-08-07T04:18:09Z","body":"The first problem stems from an understanding of python package/module principle\r\n\r\nAccording to this question on SO\r\nhttp://stackoverflow.com/questions/16981921/relative-imports-in-python-3\r\na running script inside a package will fail at absolute importing that package, because its __name__ variable is set to \"__main__\". The solution that will work on all platforms is to move the running script *out* of the package. "}}