Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Created user site1.local
- Created database site1.local
- Granted privileges to user site1.local and database site1.local
- Starting database import...
- sh: mysql: command not found
- Imported from database /Users/admin/Code/lab/frappe-bench/apps/frappe/frappe/data/Framework.sql
- Traceback (most recent call last):
- File "/Users/admin/Code/lab/frappe-bench/env/bin/frappe", line 9, in <module>
- load_entry_point('frappe==4.4.1', 'console_scripts', 'frappe')()
- File "/Users/admin/Code/lab/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
- return run(fn, parsed_args)
- File "/Users/admin/Code/lab/frappe-bench/apps/frappe/frappe/cli.py", line 81, in run
- out = globals().get(fn)(*args.get(fn), **args)
- File "/Users/admin/Code/lab/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
- return fn(*args, **new_kwargs)
- File "/Users/admin/Code/lab/frappe-bench/apps/frappe/frappe/cli.py", line 327, in install
- _install(db_name, root_login, root_password, source_sql, admin_password, force, site_config, reinstall, quiet, install_apps)
- File "/Users/admin/Code/lab/frappe-bench/apps/frappe/frappe/cli.py", line 310, in _install
- install_app("frappe", verbose=verbose, set_as_patched=not source_sql)
- File "/Users/admin/Code/lab/frappe-bench/apps/frappe/frappe/installer.py", line 87, in install_app
- frappe.clear_cache()
- File "/Users/admin/Code/lab/frappe-bench/apps/frappe/frappe/__init__.py", line 287, in clear_cache
- frappe.sessions.clear_cache()
- File "/Users/admin/Code/lab/frappe-bench/apps/frappe/frappe/sessions.py", line 48, in clear_cache
- for sess in frappe.db.sql("""select user, sid from tabSessions""", as_dict=1):
- File "/Users/admin/Code/lab/frappe-bench/apps/frappe/frappe/database.py", line 121, in sql
- self._cursor.execute(query)
- File "/Users/admin/Code/lab/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
- self.errorhandler(self, exc, value)
- File "/Users/admin/Code/lab/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
- raise errorclass, errorvalue
- _mysql_exceptions.ProgrammingError: (1146, "Table 'site1.local.tabsessions' doesn't exist")
- Error: None
- Traceback (most recent call last):
- File "/usr/local/bin/bench", line 9, in <module>
- load_entry_point('bench==0.1', 'console_scripts', 'bench')()
- File "/Users/admin/Code/lab/bench-repo/bench/cli.py", line 29, in cli
- return bench()
- File "/Library/Python/2.7/site-packages/click/core.py", line 610, in __call__
- return self.main(*args, **kwargs)
- File "/Library/Python/2.7/site-packages/click/core.py", line 590, in main
- rv = self.invoke(ctx)
- File "/Library/Python/2.7/site-packages/click/core.py", line 936, in invoke
- return _process_result(sub_ctx.command.invoke(sub_ctx))
- File "/Library/Python/2.7/site-packages/click/core.py", line 782, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/Library/Python/2.7/site-packages/click/core.py", line 416, in invoke
- return callback(*args, **kwargs)
- File "/Users/admin/Code/lab/bench-repo/bench/cli.py", line 89, in new_site
- _new_site(site)
- File "/Users/admin/Code/lab/bench-repo/bench/utils.py", line 76, in new_site
- exec_cmd("{frappe} --install {site} {site}".format(frappe=get_frappe(bench=bench), site=site), cwd=os.path.join(bench, 'sites'))
- File "/Users/admin/Code/lab/bench-repo/bench/utils.py", line 59, in exec_cmd
- subprocess.check_call(cmd, cwd=cwd, shell=True)
- File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 542, in check_call
- raise CalledProcessError(retcode, cmd)
- subprocess.CalledProcessError: Command '/Users/admin/Code/lab/frappe-bench/env/bin/frappe --install site1.local site1.local' returned non-zero exit status 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement