Error saving records

Hello, I’m pretty new, started following this guide Not Found and everything worked fine until I tried to save a record. I got the next message. 

2014-08-15 00:08:36,701 Request Error 
 site: library
 form: {‘action’: u’Save’,
 ‘cmd’: u’frappe.widgets.form.save.savedocs’,
 ‘doc’: u’{“docstatus”:0,“doctype”:“Library Member”,“name”:“New Library Member 1",“__islocal”:1,“__unsaved”:1,“owner”:"ex...@example.com”,“first_name”:“Gerardo”,“last_name”:“Rendon”,“email”:“asdf”}'}

Traceback (innermost last):
  File “/home/vagrant/frappe-bench/apps/frappe/frappe/app.py”, line 49, in application
    response = frappe.handler.handle()
  File “/home/vagrant/frappe-bench/apps/frappe/frappe/handler.py”, line 66, in handle
    execute_cmd(cmd)
  File “/home/vagrant/frappe-bench/apps/frappe/frappe/handler.py”, line 89, in execute_cmd
    ret = frappe.call(method, **frappe.form_dict)
  File “/home/vagrant/frappe-bench/apps/frappe/frappe/init.py”, line 526, in call
    return fn(*args, **newargs)
  File “/home/vagrant/frappe-bench/apps/frappe/frappe/widgets/form/save.py”, line 12, in savedocs
    doc = frappe.get_doc(json.loads(frappe.form_dict.doc))
  File “/home/vagrant/frappe-bench/apps/frappe/frappe/init.py”, line 347, in get_doc
    return frappe.model.document.get_doc(arg1, arg2)
  File “/home/vagrant/frappe-bench/apps/frappe/frappe/model/document.py”, line 24, in get_doc
    controller = get_controller(doctype)
  File “/home/vagrant/frappe-bench/apps/frappe/frappe/model/document.py”, line 43, in get_controller
    raise ImportError, doctype
 ImportError: Library Member

Any idea?



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/785b2cc4-6b97-4138-9fb5-0ed8ef5037bd%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
You can't have whitespace in your doctype name:



On 15-Aug-2014, at 5:44 am, Gerardo Rendon <ge...@gmail.com> wrote:

Hello, I'm pretty new, started following this guide https://frappe.io/developers/guide and everything worked fine until I tried to save a record. I got the next message. 
2014-08-15 00:08:36,701 Request Error 
 site: library
 form: {'action': u'Save',
 'cmd': u'frappe.widgets.form.save.savedocs',
 'doc': u'{"docstatus":0,"doctype":"Library Member","name":"New Library Member 1","__islocal":1,"__unsaved":1,"owner":"ex...@example.com","first_name":"Gerardo","last_name":"Rendon","email":"asdf"}'}

Traceback (innermost last):
  File "/home/vagrant/frappe-bench/apps/frappe/frappe/app.py", line 49, in application
    response = frappe.handler.handle()
  File "/home/vagrant/frappe-bench/apps/frappe/frappe/handler.py", line 66, in handle
    execute_cmd(cmd)
  File "/home/vagrant/frappe-bench/apps/frappe/frappe/handler.py", line 89, in execute_cmd
    ret = frappe.call(method, **frappe.form_dict)
  File "/home/vagrant/frappe-bench/apps/frappe/frappe/__init__.py", line 526, in call
    return fn(*args, **newargs)
  File "/home/vagrant/frappe-bench/apps/frappe/frappe/widgets/form/save.py", line 12, in savedocs
    doc = frappe.get_doc(json.loads(frappe.form_dict.doc))
  File "/home/vagrant/frappe-bench/apps/frappe/frappe/__init__.py", line 347, in get_doc
    return frappe.model.document.get_doc(arg1, arg2)
  File "/home/vagrant/frappe-bench/apps/frappe/frappe/model/document.py", line 24, in get_doc
    controller = get_controller(doctype)
  File "/home/vagrant/frappe-bench/apps/frappe/frappe/model/document.py", line 43, in get_controller
    raise ImportError, doctype
 ImportError: Library Member

Any idea?



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/785b2cc4-6b97-4138-9fb5-0ed8ef5037bd%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/35C3EEA5-F468-4ABA-A6EF-3F2D1210462B%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.