{"action":"closed","issue":{"url":"https://api.github.com/repos/pydoit/doit/issues/86","labels_url":"https://api.github.com/repos/pydoit/doit/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/pydoit/doit/issues/86/comments","events_url":"https://api.github.com/repos/pydoit/doit/issues/86/events","html_url":"https://github.com/pydoit/doit/issues/86","id":99398000,"number":86,"title":"fix initial pickling on windows","user":{"login":"schettino72","id":138474,"avatar_url":"https://avatars.githubusercontent.com/u/138474?v=3","gravatar_id":"","url":"https://api.github.com/users/schettino72","html_url":"https://github.com/schettino72","followers_url":"https://api.github.com/users/schettino72/followers","following_url":"https://api.github.com/users/schettino72/following{/other_user}","gists_url":"https://api.github.com/users/schettino72/gists{/gist_id}","starred_url":"https://api.github.com/users/schettino72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schettino72/subscriptions","organizations_url":"https://api.github.com/users/schettino72/orgs","repos_url":"https://api.github.com/users/schettino72/repos","events_url":"https://api.github.com/users/schettino72/events{/privacy}","received_events_url":"https://api.github.com/users/schettino72/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydoit/doit/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/pydoit/doit/labels/Windows","name":"Windows","color":"222222"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pydoit/doit/milestones/3","html_url":"https://github.com/pydoit/doit/milestones/0.29","labels_url":"https://api.github.com/repos/pydoit/doit/milestones/3/labels","id":1155101,"number":3,"title":"0.29","description":null,"creator":{"login":"schettino72","id":138474,"avatar_url":"https://avatars.githubusercontent.com/u/138474?v=3","gravatar_id":"","url":"https://api.github.com/users/schettino72","html_url":"https://github.com/schettino72","followers_url":"https://api.github.com/users/schettino72/followers","following_url":"https://api.github.com/users/schettino72/following{/other_user}","gists_url":"https://api.github.com/users/schettino72/gists{/gist_id}","starred_url":"https://api.github.com/users/schettino72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schettino72/subscriptions","organizations_url":"https://api.github.com/users/schettino72/orgs","repos_url":"https://api.github.com/users/schettino72/repos","events_url":"https://api.github.com/users/schettino72/events{/privacy}","received_events_url":"https://api.github.com/users/schettino72/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":13,"state":"open","created_at":"2015-06-08T15:13:18Z","updated_at":"2015-08-13T07:12:10Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-08-06T09:40:41Z","updated_at":"2015-08-13T07:12:10Z","closed_at":"2015-08-13T07:12:10Z","body":"from #84 \r\n\r\nThe problem is that for Task I did not define __getstate__ method. Because sometimes I want to really pass the full Task including the attributes that might contain functions, and sometimes I know I can leave these attributes out.\r\n\r\nSo the fix would be to define a Task.__getstate__ that removes unsafe attributes by default, and figure out a way to create a pickle from an object ignoring its __getstate__! I am not sure how to do that. Maybe using cloudpickle will just solve the problem in a easier way.\r\n\r\nI will take some time to experiment on that... meanwhile you can remove this change in UptodateCalculator (and let the test fail). This change will actually break the code if you have a getargs attribute in a DelayedTask (the tests doesnt cover that). So I will merge the improvement on not using wheels and fix this issue later. Of course you are welcome to try to fix it yourself :)\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/25432633-fix-initial-pickling-on-windows?utm_campaign=plugin&utm_content=tracker%2F1885485&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1885485&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}