Email Error Table 'tabContact' doesn't exist

Hey,

When i try to send a document attached as email , it gives the following traceback . My outgoing email account is configured correctly.

Traceback (innermost last):
  File "/home/akarsh/frappe-bench/apps/frappe/frappe/app.py", line 67, in application
    response = frappe.handler.handle()
  File "/home/akarsh/frappe-bench/apps/frappe/frappe/handler.py", line 75, in handle
    execute_cmd(cmd)
  File "/home/akarsh/frappe-bench/apps/frappe/frappe/handler.py", line 109, in execute_cmd
    ret = frappe.call(method, **frappe.form_dict)
  File "/home/akarsh/frappe-bench/apps/frappe/frappe/__init__.py", line 777, in call
    return fn(*args, **newargs)
  File "/home/akarsh/frappe-bench/apps/frappe/frappe/email/__init__.py", line 36, in get_contact_list
    ,' OR '.join(cond)
  File "/home/akarsh/frappe-bench/apps/frappe/frappe/database.py", line 146, in sql
    self._cursor.execute(query)
  File "/home/akarsh/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
    self.errorhandler(self, exc, value)
  File "/home/akarsh/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
 ProgrammingError: (1146, "Table 'ff641f808f.tabContact' doesn't exist")

Does this mean erpnext app needs to be installed ?

Thanks,
Akarsh

Yeah, seems like an issue. This must be cleanly separated maybe by hooks.

Any immediate solution possible ?

Will creation of the same table ( from erpnext )solve the problem ?

I think it still points to missing tabContact table . I haven’t installed erpnext as other apps don’t require it

It will not throw an exception

In the long run we want to move Contact to frappe

It throws exception in mine . I badly need the email attachment feature . Could you suggest any work around ?