I'm trying to install erpnext with this script: https://raw.github.com/webnotes/erpnext/master/install_erpnext.py
on an Ubuntu Server 12.04
I have this error: _mysql_exceptions.OperationalError: (1050, "Table 'tabdocfield' already exists")
I'm a developper but my python knowledge is too light to understand the source code.
Any idea ?
Thanks
Here is the full "log":
--------------------------------------------------------------------------------
Pre-requisites Installed
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Installing ERPNext
--------------------------------------------------------------------------------
ERPNext Database Name: next
conf.py exists
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 321, in <module>
install(install_path=install_path)
File "install_erpnext.py", line 38, in install
install_erpnext(install_path)
File "install_erpnext.py", line 181, in install_erpnext
wnf.install(db_name, root_password=root_password)
File "lib/wnf.py", line 34, in new_fn
return fn(*args, **new_kwargs)
File "lib/wnf.py", line 224, in install
inst.install(db_name, source_sql=source_sql, verbose=verbose, force=force, admin_password=admin_password)
File "lib/webnotes/install_lib/install.py", line 88, in install
self.install_app(verbose=verbose)
File "lib/webnotes/install_lib/install.py", line 104, in install_app
sync_for("lib", force=True, sync_everything=True, verbose=verbose)
File "lib/webnotes/model/sync.py", line 20, in sync_for
return walk_and_sync(get_path(folder), force, sync_everything, verbose=verbose)
File "lib/webnotes/model/sync.py", line 45, in walk_and_sync
if import_file(module_name, doctype, name, force=force) and verbose:
File "lib/webnotes/modules/import_file.py", line 30, in import_file
ret = import_file_by_path(path, force)
File "lib/webnotes/modules/import_file.py", line 51, in import_file_by_path
import_doclist(doclist)
File "lib/webnotes/modules/import_file.py", line 101, in import_doclist
new_bean.insert()
File "lib/webnotes/model/bean.py", line 260, in insert
return self.save()
File "lib/webnotes/model/bean.py", line 304, in save
self.run_method('on_update')
File "lib/webnotes/model/bean.py", line 239, in run_method
getattr(self.controller, method)(*args, **kwargs)
File "lib/core/doctype/doctype/doctype.py", line 72, in on_update
updatedb(self.doc.name)
File "lib/webnotes/model/db_schema.py", line 402, 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 108, in sql
self._cursor.execute(query)
File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
self.errorhandler(self, exc, value)
File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1050, "Table 'tabdocfield' already exists")
–
Note:
If you are posting an issue,
- 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.
- Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
- 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.
For more options, visit https://groups.google.com/groups/opt_out.