{"action":"created","issue":{"url":"https://api.github.com/repos/evilhero/mylar/issues/1880","repository_url":"https://api.github.com/repos/evilhero/mylar","labels_url":"https://api.github.com/repos/evilhero/mylar/issues/1880/labels{/name}","comments_url":"https://api.github.com/repos/evilhero/mylar/issues/1880/comments","events_url":"https://api.github.com/repos/evilhero/mylar/issues/1880/events","html_url":"https://github.com/evilhero/mylar/issues/1880","id":302266515,"number":1880,"title":"C.O.W.L. not being loaded ","user":{"login":"PCurd","id":703781,"avatar_url":"https://avatars2.githubusercontent.com/u/703781?v=4","gravatar_id":"","url":"https://api.github.com/users/PCurd","html_url":"https://github.com/PCurd","followers_url":"https://api.github.com/users/PCurd/followers","following_url":"https://api.github.com/users/PCurd/following{/other_user}","gists_url":"https://api.github.com/users/PCurd/gists{/gist_id}","starred_url":"https://api.github.com/users/PCurd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PCurd/subscriptions","organizations_url":"https://api.github.com/users/PCurd/orgs","repos_url":"https://api.github.com/users/PCurd/repos","events_url":"https://api.github.com/users/PCurd/events{/privacy}","received_events_url":"https://api.github.com/users/PCurd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-05T11:34:57Z","updated_at":"2018-03-06T10:16:37Z","closed_at":null,"author_association":"NONE","body":"I noticed after a restart that C.O.W.L. was putting errors in the logs when being refreshed and inside the interface it was showing as (Comic information is still being loaded). I added this comic months and months ago so tried to Refresh Comic, but nothing changed. I then deleted the comic and re added from the ComicVine ID (it's hard to search for with a name like that - https://comicvine.gamespot.com/c-o-w-l/4050-74313/) and it added but is now looking even worse - the list of issues isn't even loading. The logs are below. I noted the InsecureRequestWarning but I can't fix the damn error and I've had it for ages, I've tried pip.exe install requests[security] --upgrade but that didn't fix it. \r\n\r\nThis is what appears in the logs:\r\n\r\n\r\n\r\n05-Mar-2018 11:28:18 - INFO :: CP Server Thread-3 : Attempting to add directly by ComicVineID: 74313. I sure hope you know what you are doing.\r\n05-Mar-2018 11:28:18 - WARNING :: CP Server Thread-3 : Comic ID: 74313 has not finished loading. Nulling some values so things display properly until they can populate.\r\nD:\\Mylar\\mylar\\lib\\requests\\packages\\urllib3\\connectionpool.py:768: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html\r\n  InsecureRequestWarning)\r\n05-Mar-2018 11:28:21 - INFO :: Thread-14 : Now adding/updating: C.O.W.L.\r\n05-Mar-2018 11:28:21 - INFO :: Thread-14 : Sucessfully retrieved details for C.O.W.L.\r\n05-Mar-2018 11:28:21 - INFO :: Thread-14 : Previous version detected as None - seeing if update required\r\n05-Mar-2018 11:28:21 - INFO :: Thread-14 : Directory (M:\\Comics\\C.O.W.L. (2014)) already exists! Continuing...\r\n05-Mar-2018 11:28:23 - INFO :: Thread-14 : Attempting to retrieve the comic image for series\r\nD:\\Mylar\\mylar\\lib\\requests\\packages\\urllib3\\connectionpool.py:768: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html\r\n  InsecureRequestWarning)\r\n05-Mar-2018 11:28:24 - ERROR :: Thread-14 : Uncaught exception: Traceback (most recent call last):\r\n  File \"D:\\Mylar\\mylar\\mylar\\logger.py\", line 177, in new_run\r\n    old_run(*args, **kwargs)\r\n  File \"c:\\python27\\lib\\threading.py\", line 754, in run\r\n    self.__target(*self.__args, **self.__kwargs)\r\n  File \"D:\\Mylar\\mylar\\mylar\\importer.py\", line 265, in addComictoDB\r\n    covercheck = helpers.getImage(comicid, comic['ComicImage'])\r\n  File \"D:\\Mylar\\mylar\\mylar\\helpers.py\", line 3419, in getImage\r\n    buf = StringIO(r.content)\r\nNameError: global name 'StringIO' is not defined\r\n\r\nTraceback (most recent call last):\r\n  File \"D:\\Mylar\\mylar\\mylar\\logger.py\", line 177, in new_run\r\n    old_run(*args, **kwargs)\r\n  File \"c:\\python27\\lib\\threading.py\", line 754, in run\r\n    self.__target(*self.__args, **self.__kwargs)\r\n  File \"D:\\Mylar\\mylar\\mylar\\importer.py\", line 265, in addComictoDB\r\n    covercheck = helpers.getImage(comicid, comic['ComicImage'])\r\n  File \"D:\\Mylar\\mylar\\mylar\\helpers.py\", line 3419, in getImage\r\n    buf = StringIO(r.content)\r\nNameError: global name 'StringIO' is not defined\r\n05-Mar-2018 11:28:25 - WARNING :: CP Server Thread-3 : Comic ID: 74313 has not finished loading. Nulling some values so things display properly until they can populate.\r\n05-Mar-2018 11:28:54 - INFO :: CP Server Thread-2 : Attempting to add directly by ComicVineID: 74313. I sure hope you know what you are doing.\r\n05-Mar-2018 11:28:54 - ERROR :: Thread-15 : Uncaught exception: Traceback (most recent call last):\r\n  File \"D:\\Mylar\\mylar\\mylar\\logger.py\", line 177, in new_run\r\n    old_run(*args, **kwargs)\r\n  File \"c:\\python27\\lib\\threading.py\", line 754, in run\r\n    self.__target(*self.__args, **self.__kwargs)\r\n  File \"D:\\Mylar\\mylar\\mylar\\importer.py\", line 84, in addComictoDB\r\n    checkdirectory = filechecker.validateAndCreateDirectory(comlocation, True)\r\n  File \"D:\\Mylar\\mylar\\mylar\\filechecker.py\", line 1338, in validateAndCreateDirectory\r\n    if os.path.exists(dir):\r\n  File \"c:\\python27\\lib\\genericpath.py\", line 26, in exists\r\n    os.stat(path)\r\nTypeError: coercing to Unicode: need string or buffer, NoneType found\r\n\r\nTraceback (most recent call last):\r\n  File \"D:\\Mylar\\mylar\\mylar\\logger.py\", line 177, in new_run\r\n    old_run(*args, **kwargs)\r\n  File \"c:\\python27\\lib\\threading.py\", line 754, in run\r\n    self.__target(*self.__args, **self.__kwargs)\r\n  File \"D:\\Mylar\\mylar\\mylar\\importer.py\", line 84, in addComictoDB\r\n    checkdirectory = filechecker.validateAndCreateDirectory(comlocation, True)\r\n  File \"D:\\Mylar\\mylar\\mylar\\filechecker.py\", line 1338, in validateAndCreateDirectory\r\n    if os.path.exists(dir):\r\n  File \"c:\\python27\\lib\\genericpath.py\", line 26, in exists\r\n    os.stat(path)\r\nTypeError: coercing to Unicode: need string or buffer, NoneType found"},"comment":{"url":"https://api.github.com/repos/evilhero/mylar/issues/comments/370732877","html_url":"https://github.com/evilhero/mylar/issues/1880#issuecomment-370732877","issue_url":"https://api.github.com/repos/evilhero/mylar/issues/1880","id":370732877,"user":{"login":"PCurd","id":703781,"avatar_url":"https://avatars2.githubusercontent.com/u/703781?v=4","gravatar_id":"","url":"https://api.github.com/users/PCurd","html_url":"https://github.com/PCurd","followers_url":"https://api.github.com/users/PCurd/followers","following_url":"https://api.github.com/users/PCurd/following{/other_user}","gists_url":"https://api.github.com/users/PCurd/gists{/gist_id}","starred_url":"https://api.github.com/users/PCurd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PCurd/subscriptions","organizations_url":"https://api.github.com/users/PCurd/orgs","repos_url":"https://api.github.com/users/PCurd/repos","events_url":"https://api.github.com/users/PCurd/events{/privacy}","received_events_url":"https://api.github.com/users/PCurd/received_events","type":"User","site_admin":false},"created_at":"2018-03-06T10:16:37Z","updated_at":"2018-03-06T10:16:37Z","author_association":"NONE","body":"After updating (and setting cv_verify to True) I'm getting a different error now. I tried deleting C.O.W.L. again and then restarting, but after searching for the CV number I still get the error:\r\n\r\n06-Mar-2018 10:09:21 - INFO :: CP Server Thread-2 : Attempting to add directly by ComicVineID: 74313. I sure hope you know what you are doing.\r\n06-Mar-2018 10:09:21 - WARNING :: CP Server Thread-2 : Comic ID: 74313 has not finished loading. Nulling some values so things display properly until they can populate.\r\n06-Mar-2018 10:09:24 - INFO :: Thread-12 : Now adding/updating: C.O.W.L.\r\n06-Mar-2018 10:09:24 - INFO :: Thread-12 : Sucessfully retrieved details for C.O.W.L.\r\n06-Mar-2018 10:09:24 - INFO :: Thread-12 : Previous version detected as None - seeing if update required\r\n06-Mar-2018 10:09:24 - INFO :: Thread-12 : Directory (M:\\Comics\\C.O.W.L. (2014)) already exists! Continuing...\r\n06-Mar-2018 10:09:26 - INFO :: Thread-12 : Attempting to retrieve the comic image for series\r\n06-Mar-2018 10:09:28 - ERROR :: Thread-12 : Uncaught exception: Traceback (most recent call last):\r\n  File \"D:\\Mylar\\mylar\\mylar\\logger.py\", line 177, in new_run\r\n    old_run(*args, **kwargs)\r\n  File \"c:\\python27\\lib\\threading.py\", line 754, in run\r\n    self.__target(*self.__args, **self.__kwargs)\r\n  File \"D:\\Mylar\\mylar\\mylar\\importer.py\", line 264, in addComictoDB\r\n    covercheck = helpers.getImage(comicid, comic['ComicImage'])\r\n  File \"D:\\Mylar\\mylar\\mylar\\helpers.py\", line 3420, in getImage\r\n    f = gzip.GzipFile(fileobj=buf)\r\nNameError: global name 'gzip' is not defined\r\n\r\nTraceback (most recent call last):\r\n  File \"D:\\Mylar\\mylar\\mylar\\logger.py\", line 177, in new_run\r\n    old_run(*args, **kwargs)\r\n  File \"c:\\python27\\lib\\threading.py\", line 754, in run\r\n    self.__target(*self.__args, **self.__kwargs)\r\n  File \"D:\\Mylar\\mylar\\mylar\\importer.py\", line 264, in addComictoDB\r\n    covercheck = helpers.getImage(comicid, comic['ComicImage'])\r\n  File \"D:\\Mylar\\mylar\\mylar\\helpers.py\", line 3420, in getImage\r\n    f = gzip.GzipFile(fileobj=buf)\r\nNameError: global name 'gzip' is not defined\r\n\r\nAfter trying to add it again without a restart, I get this (different) error:\r\n\r\n06-Mar-2018 10:10:05 - INFO :: CP Server Thread-10 : Attempting to add directly by ComicVineID: 74313. I sure hope you know what you are doing.\r\n06-Mar-2018 10:10:05 - ERROR :: Thread-13 : Uncaught exception: Traceback (most recent call last):\r\n  File \"D:\\Mylar\\mylar\\mylar\\logger.py\", line 177, in new_run\r\n    old_run(*args, **kwargs)\r\n  File \"c:\\python27\\lib\\threading.py\", line 754, in run\r\n    self.__target(*self.__args, **self.__kwargs)\r\n  File \"D:\\Mylar\\mylar\\mylar\\importer.py\", line 83, in addComictoDB\r\n    checkdirectory = filechecker.validateAndCreateDirectory(comlocation, True)\r\n  File \"D:\\Mylar\\mylar\\mylar\\filechecker.py\", line 1338, in validateAndCreateDirectory\r\n    if os.path.exists(dir):\r\n  File \"c:\\python27\\lib\\genericpath.py\", line 26, in exists\r\n    os.stat(path)\r\nTypeError: coercing to Unicode: need string or buffer, NoneType found\r\n\r\nTraceback (most recent call last):\r\n  File \"D:\\Mylar\\mylar\\mylar\\logger.py\", line 177, in new_run\r\n    old_run(*args, **kwargs)\r\n  File \"c:\\python27\\lib\\threading.py\", line 754, in run\r\n    self.__target(*self.__args, **self.__kwargs)\r\n  File \"D:\\Mylar\\mylar\\mylar\\importer.py\", line 83, in addComictoDB\r\n    checkdirectory = filechecker.validateAndCreateDirectory(comlocation, True)\r\n  File \"D:\\Mylar\\mylar\\mylar\\filechecker.py\", line 1338, in validateAndCreateDirectory\r\n    if os.path.exists(dir):\r\n  File \"c:\\python27\\lib\\genericpath.py\", line 26, in exists\r\n    os.stat(path)\r\nTypeError: coercing to Unicode: need string or buffer, NoneType found"}}
{"actor":{"display_login":"PCurd"}}