Python multiprocessing PicklingError: Can't pickle

前端 未结 8 601
故里飘歌
故里飘歌 2020-11-22 03:48

I am sorry that I can\'t reproduce the error with a simpler example, and my code is too complicated to post. If I run the program in IPython shell instead of the regular Pyt

8条回答
  •  旧巷少年郎
    2020-11-22 04:04

    Can't pickle : attribute lookup __builtin__.function failed
    

    This error will also come if you have any inbuilt function inside the model object that was passed to the async job.

    So make sure to check the model objects that are passed doesn't have inbuilt functions. (In our case we were using FieldTracker() function of django-model-utils inside the model to track a certain field). Here is the link to relevant GitHub issue.

提交回复
热议问题