{"action":"opened","issue":{"url":"https://api.github.com/repos/hyperopt/hyperopt/issues/376","repository_url":"https://api.github.com/repos/hyperopt/hyperopt","labels_url":"https://api.github.com/repos/hyperopt/hyperopt/issues/376/labels{/name}","comments_url":"https://api.github.com/repos/hyperopt/hyperopt/issues/376/comments","events_url":"https://api.github.com/repos/hyperopt/hyperopt/issues/376/events","html_url":"https://github.com/hyperopt/hyperopt/issues/376","id":302522641,"number":376,"title":"Pickle Error with MongoTrials","user":{"login":"jengelman","id":24788497,"avatar_url":"https://avatars2.githubusercontent.com/u/24788497?v=4","gravatar_id":"","url":"https://api.github.com/users/jengelman","html_url":"https://github.com/jengelman","followers_url":"https://api.github.com/users/jengelman/followers","following_url":"https://api.github.com/users/jengelman/following{/other_user}","gists_url":"https://api.github.com/users/jengelman/gists{/gist_id}","starred_url":"https://api.github.com/users/jengelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jengelman/subscriptions","organizations_url":"https://api.github.com/users/jengelman/orgs","repos_url":"https://api.github.com/users/jengelman/repos","events_url":"https://api.github.com/users/jengelman/events{/privacy}","received_events_url":"https://api.github.com/users/jengelman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-06T00:56:44Z","updated_at":"2018-03-06T00:56:44Z","closed_at":null,"author_association":"NONE","body":"Running hyperopt on Windows 7, regular trials works fine, but when I try to serialize into MongoDB, I get the following error:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\jengelman\\Desktop\\svn\\silo\\users\\jengelman\\utilities\\optimizer.py\", line 186, in <module>\r\n    trials = optimize(d0, d1, models, space, extra_params)\r\n  File \"C:\\Users\\jengelman\\Desktop\\svn\\silo\\users\\jengelman\\utilities\\optimizer.py\", line 149, in optimize\r\n    trials=trials\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\hyperopt\\fmin.py\", line 307, in fmin\r\n    return_argmin=return_argmin,\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\hyperopt\\base.py\", line 635, in fmin\r\n    return_argmin=return_argmin)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\hyperopt\\fmin.py\", line 318, in fmin\r\n    verbose=verbose)\r\n  File \"C:\\Anaconda3\\lib\\site-packages\\hyperopt\\fmin.py\", line 77, in __init__\r\n    domain, protocol=self.pickle_protocol)\r\nTypeError: can't pickle SwigPyObject objects\r\n```\r\nTried switching pickle protocols to dill, but ran into the same error.\r\n(I also had to comment out lines 1183 and 1185 to get this far, since windows doesn't recognize SIGHUP or SIGUSR1).\r\n\r\nHas anyone managed to get MongoTrials working on Windows/have a workaround?\r\n"}}
{"actor":{"display_login":"jengelman"}}