I am installing erpnext on Ubuntu 12.04 LTS and getting the _mysql_exceptions.OperationalError: (1050, "Table 'tabdocfield' already exists") error, see full trace below.
I would like to test and evaluate erpnext this weekend and your assistance will be greatly appreciated
Installing ERPNext
--------------------------------------------------------------------------------
MySQL Root user's Password:
.
ERPNext Database Name: next
Created user next
Created database next
Granted privileges to user next and database next
Starting database import...
Imported from database lib/webnotes/../conf/Framework.sql
Installing app...
core | doctype | bulk_email
core | doctype | comment
core | doctype | communication
core | doctype | control_panel
core | doctype | custom_field
core | doctype | custom_script
core | doctype | customize_form
core | doctype | customize_form_field
core | doctype | default_home_page
core | doctype | defaultvalue
Traceback (most recent call last):
File "install_erpnext.py", line 348, in <module>
install()
File "install_erpnext.py", line 17, in install
install_erpnext(install_path)
File "install_erpnext.py", line 180, in install_erpnext
setup_db(install_path, root_password, db_name)
File "install_erpnext.py", line 244, in setup_db
inst.import_from_db(db_name, verbose=1)
File "lib/webnotes/install_lib/install.py", line 71, in import_from_db
self.install_app()
File "lib/webnotes/install_lib/install.py", line 80, in install_app
sync_for("lib", force=True, sync_everything=True)
File "lib/webnotes/model/sync.py", line 21, in sync_for
folder), force, sync_everything)
File "lib/webnotes/model/sync.py", line 44, in walk_and_sync
if import_file(module_name, doctype, name, force):
File "lib/webnotes/modules/import_file.py", line 25, in import_file
ret = import_file_by_path(path, force)
File "lib/webnotes/modules/import_file.py", line 46, in import_file_by_path
import_doclist(doclist)
File "lib/webnotes/modules/import_file.py", line 96, in import_doclist
new_bean.insert()
File "lib/webnotes/model/bean.py", line 285, in insert
return self.save()
File "lib/webnotes/model/bean.py", line 317, in save
self.run_method(‘on_update’)
File “lib/webnotes/model/bean.py”, line 226, in run_method
getattr(self.controller, method)()
File “lib/core/doctype/doctype/doctype.py”, line 73, in on_update
File "lib/webnotes/model/db_schema.py", line 407, in updatedb
tab.sync()
File "lib/webnotes/model/db_schema.py", line 170, in sync
self.create()
File "lib/webnotes/model/db_schema.py", line 91, in create
CHARACTER SET=utf8""" % (
self.name, add_text))
File “lib/webnotes/db.py”, line 111, in sql
raise e
_mysql_exceptions.OperationalError: (1050, “Table ‘tabdocfield’ already exists”)
ro…@ronald ~/erpnext>