PicklingError("Can't pickle <class bulk_email.models.DoesNotExist>: attribute lookup bulk_email

413 views
Skip to first unread message

Nilesh Londhe

unread,
Feb 13, 2015, 1:15:10 PM2/13/15
to edx-...@googlegroups.com

My mandrill smtp is working fine. I am on 0217f50f1219585ad9f7f65a54cc545c2723f98eI have enabled

  ENABLE_INSTRUCTOR_EMAIL: True
  REQUIRE_COURSE_EMAIL_AUTH: False

and sent email to myself from the instructor dashboard but failed to send. Here is the error I got.

root@precise64:/edx/app/edxapp/edx-platform# tail -f /edx/var/log/lms/edx.log 

  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 366, in get
    % self.model._meta.object_name)
DoesNotExist: CourseEmailTemplate matching query does not exist.
Feb 13 18:01:54 precise64 [service_variant=lms][celery.worker.job][env:sandbox] ERROR [precise64  21425] [log.py:246] - Task bulk_email.tasks.send_course_email[bb9fac53-b81b-46dd-bc41-440d2a4e6318] raised exception: <MaybeEncodingError: Error sending result: '"<ExceptionInfo: ObjectDoesNotExist('CourseEmailTemplate matching query does not exist.',)>"'. Reason: ''PicklingError("Can\'t pickle <class \'bulk_email.models.DoesNotExist\'>: attribute lookup bulk_email.models.DoesNotExist failed",)''.>
Traceback (most recent call last):
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/billiard/pool.py", line 297, in worker
    put((READY, (job, i, result)))
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/billiard/queues.py", line 363, in put
    return send(obj)
MaybeEncodingError: Error sending result: '"<ExceptionInfo: ObjectDoesNotExist('CourseEmailTemplate matching query does not exist.',)>"'. Reason: ''PicklingError("Can\'t pickle <class \'bulk_email.models.DoesNotExist\'>: attribute lookup bulk_email.models.DoesNotExist failed",)''.

Chris Dodge

unread,
Feb 16, 2015, 11:18:42 AM2/16/15
to edx-...@googlegroups.com
Hello Nilesh,

Thank you for your interest in Open edX.

That exception looks very similar to a bug report from the Fall which was fixed post Aspen (it'll be in the Birch Release). See this for the discussion thread: https://groups.google.com/forum/#!searchin/edx-code/CourseEmailTemplate/edx-code/VhzUeNAUs_8/LTFTHluwSnMJ

Depending on what version you are running (is it a plain Aspen installation?) you might want to try patching your system with the fix that is posted in that above thread.

Best wishes,

Chris Dodge

Nilesh Londhe

unread,
Feb 16, 2015, 11:41:07 AM2/16/15
to edx-...@googlegroups.com
Thanks Chris. I am on recent master 0217f50f1219585ad9f7f65a54cc545c2723f98e

David Baumgold

unread,
Feb 17, 2015, 11:45:34 AM2/17/15
to edx-...@googlegroups.com
Nilesh, if you're still seeing that error on that commit, then I suggest that you file a bug report in our JIRA: https://openedx.atlassian.net/ You should use "Community Reported Issues (CRI)" as the project, and "Bug" as the issue type. Please include as much detail as possible so help us determine the cause of the issue. See also: https://openedx.atlassian.net/wiki/display/SUST/How+to+File+a+Quality+Bug+Report

DB

Nilesh Londhe

unread,
Feb 21, 2015, 1:21:06 PM2/21/15
to edx-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages