{"action":"created","issue":{"url":"https://api.github.com/repos/bioidiap/bob.db.msu_mfsd_mod/issues/2","repository_url":"https://api.github.com/repos/bioidiap/bob.db.msu_mfsd_mod","labels_url":"https://api.github.com/repos/bioidiap/bob.db.msu_mfsd_mod/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/bioidiap/bob.db.msu_mfsd_mod/issues/2/comments","events_url":"https://api.github.com/repos/bioidiap/bob.db.msu_mfsd_mod/issues/2/events","html_url":"https://github.com/bioidiap/bob.db.msu_mfsd_mod/issues/2","id":159088415,"number":2,"title":"Our bob.nightlies are failing because of this package","user":{"login":"tiagofrepereira2012","id":1748842,"avatar_url":"https://avatars.githubusercontent.com/u/1748842?v=3","gravatar_id":"","url":"https://api.github.com/users/tiagofrepereira2012","html_url":"https://github.com/tiagofrepereira2012","followers_url":"https://api.github.com/users/tiagofrepereira2012/followers","following_url":"https://api.github.com/users/tiagofrepereira2012/following{/other_user}","gists_url":"https://api.github.com/users/tiagofrepereira2012/gists{/gist_id}","starred_url":"https://api.github.com/users/tiagofrepereira2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiagofrepereira2012/subscriptions","organizations_url":"https://api.github.com/users/tiagofrepereira2012/orgs","repos_url":"https://api.github.com/users/tiagofrepereira2012/repos","events_url":"https://api.github.com/users/tiagofrepereira2012/events{/privacy}","received_events_url":"https://api.github.com/users/tiagofrepereira2012/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bioidiap/bob.db.msu_mfsd_mod/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"skbidiap","id":13349876,"avatar_url":"https://avatars.githubusercontent.com/u/13349876?v=3","gravatar_id":"","url":"https://api.github.com/users/skbidiap","html_url":"https://github.com/skbidiap","followers_url":"https://api.github.com/users/skbidiap/followers","following_url":"https://api.github.com/users/skbidiap/following{/other_user}","gists_url":"https://api.github.com/users/skbidiap/gists{/gist_id}","starred_url":"https://api.github.com/users/skbidiap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skbidiap/subscriptions","organizations_url":"https://api.github.com/users/skbidiap/orgs","repos_url":"https://api.github.com/users/skbidiap/repos","events_url":"https://api.github.com/users/skbidiap/events{/privacy}","received_events_url":"https://api.github.com/users/skbidiap/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-06-08T06:26:03Z","updated_at":"2016-06-08T07:38:02Z","closed_at":null,"body":"Hey, our nightlies builds are not passing because of this package.\r\n\r\nCheck it out.\r\nhttps://gitlab.idiap.ch/biometric/bob.nightlies\r\n\r\nBasically this assertion is not working.\r\n```\r\n      dbfolder = 'bob/db/msu_mfsd_mod/test_images/'  #simulated db repo. containing only the 2 videos used in this test.\r\n      self.assertTrue(os.path.isdir(dbfolder))\r\n```\r\nThis assertion may work when the \"main\" package `bob.db.msu_mfsd_mod`.\r\nHowever, since this package is a sub-module on nightlies this relatively path is not valid.\r\n\r\nI suggest you to use pkg_resources to discover this package (it is more consistent).\r\nFor instance you can do something like this.\r\n\r\n```\r\n      import pkg_resources\r\n      dbfolder = pkg_resources.resource_filename('bob.db.msu_mfsd_mod','test_images')\r\n     self.assertTrue(os.path.isdir(dbfolder))\r\n```"},"comment":{"url":"https://api.github.com/repos/bioidiap/bob.db.msu_mfsd_mod/issues/comments/224512620","html_url":"https://github.com/bioidiap/bob.db.msu_mfsd_mod/issues/2#issuecomment-224512620","issue_url":"https://api.github.com/repos/bioidiap/bob.db.msu_mfsd_mod/issues/2","id":224512620,"user":{"login":"skbidiap","id":13349876,"avatar_url":"https://avatars.githubusercontent.com/u/13349876?v=3","gravatar_id":"","url":"https://api.github.com/users/skbidiap","html_url":"https://github.com/skbidiap","followers_url":"https://api.github.com/users/skbidiap/followers","following_url":"https://api.github.com/users/skbidiap/following{/other_user}","gists_url":"https://api.github.com/users/skbidiap/gists{/gist_id}","starred_url":"https://api.github.com/users/skbidiap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skbidiap/subscriptions","organizations_url":"https://api.github.com/users/skbidiap/orgs","repos_url":"https://api.github.com/users/skbidiap/repos","events_url":"https://api.github.com/users/skbidiap/events{/privacy}","received_events_url":"https://api.github.com/users/skbidiap/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T07:38:01Z","updated_at":"2016-06-08T07:38:01Z","body":"Thanks for the tips. I have just uploaded the corrected code. "}}
{"actor":{"display_login":"skbidiap"}}