How to Install V5 Version

Hi,

I’m trying to install Frappe 5.0 on Digital Ocean Server.
After I pull out Bench, it is by default installing frappe master and erpnext master, not V5.
I also noticed that there is no fork on the bench for V5. Only forks are Master and V 0.9 wip. But V 0.9 wip calls frappe master and erpnext master.

Am I missing something here ? not seem to get idea on how to pull it.

I tried modifying setup_bench inside the setup_frappe.sh , but seems to be breaking

http://pastebin.com/bBwD0CUM

Thanks
Amruth

Yes, bench is the same for v4 and v5.

As v5 is merged to develop, running the easy install script without --setup-production should setup version 5 for development.

To move to v5 on an existing v4 bench, run the following,

bench update --upgrade
* Setup bench * `./env/bin/pip uninstall shopping_cart` * `rm -rf apps/shopping_cart * remove shopping_cart from `sites/apps.txt` * `cd apps/frappe/ && git checkout v5 && cd -` * `cd apps/erpnext/ && git checkout v5 && cd -` * `bench update`

@pdvyas I followed the process, but doesn’t seem I’m in V5. Pls confirm. also
instead of this

cd apps/frappe/ && git checkout v5 && cd -

It has to be this

cd apps/frappe/ && git checkout v5.0 && cd - ( notice v5.0 )

Anyway please see the logs.

http://pastebin.com/XAQX79bR

http://imgur.com/QVi3JpR

will try on a test bench and revert.

@pdvyas Any updates on this ?

made an issue, will work on it tomorrow. Sorry for the delay

@pdvyas Any update on the V5 Installation ? I’m eagerly waiting :smile:

Hi,

Sorry, this thread went out of radar. Please rebuild your droplet again and do the following

wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
sudo bash setup_frappe.sh --setup-production
bench switch-to-v5

I get this error on update


Running latest for website.in

Executing erpnext.patches.v4_2.party_model in website.in (website-frappe)
Traceback (most recent call last):
File “/home/frappe/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.6.0’, ‘console_scripts’, ‘frappe’)()
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 39, in main
ret = run(fn, args)
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 83, in run
out = globals().get(fn)(**args)
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 67, in new_fn
return fn(*args, **new_kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/cli.py”, line 435, in latest
frappe.modules.patch_handler.run_all()
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
if not run_single(patchmodule = patch):
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 50, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 66, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v4_2/party_model.py”, line 9, in execute
receivable_payable_accounts = create_receivable_payable_account()
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v4_2/party_model.py”, line 39, in create_receivable_payable_account
“parent_account”: get_parent_account(company, “Customer”)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v4_2/party_model.py”, line 30, in _create_account
if args[“account_type”]==“Receivable” else “default_payable_account”), account.name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/database.py”, line 425, in set_value
{2}""".format(dt, field, conditions), values)
File “/home/frappe/frappe-bench/apps/frappe/frappe/database.py”, line 110, in sql
self._cursor.execute(query, values)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1054, “Unknown column ‘default_receivable_account’ in ‘field list’”)
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/bench-repo/bench/cli.py”, line 37, in cli
return bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/frappe/bench-repo/bench/cli.py”, line 168, in update
patch_sites()
File “/home/frappe/bench-repo/bench/utils.py”, line 91, in patch_sites
exec_cmd("{frappe} --latest all".format(frappe=get_frappe(bench=bench)), cwd=os.path.join(bench, ‘sites’))
File “/home/frappe/bench-repo/bench/utils.py”, line 61, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘/home/frappe/frappe-bench/env/bin/frappe --latest all’ returned non-zero exit status 1

@nabinhait Can you look into this?

fresh frappe-bench, erpnext and installed (no shopping cart installed).
new site created site.local
Error while migrate-to-v5

revant@server:~/frappe-bench$ bench migrate-to-v5 This will migrate all sites in the bench to version 5. This is irreversible. Do you want to continue? [y/N]: y Branch v5.0 set up to track remote branch v5.0 from upstream. Switched to a new branch 'v5.0' Removing frappe/core/doctype/bulk_email/ Removing frappe/core/doctype/custom_field/ Removing frappe/core/doctype/custom_script/ Removing frappe/core/doctype/customize_form/ Removing frappe/core/doctype/customize_form_field/ Removing frappe/core/doctype/email_alert/ Removing frappe/core/doctype/email_alert_recipient/ Removing frappe/core/doctype/event/ Removing frappe/core/doctype/event_role/ Removing frappe/core/doctype/event_user/ Removing frappe/core/doctype/letter_head/ Removing frappe/core/doctype/outgoing_email_settings/ Removing frappe/core/doctype/print_format/ Removing frappe/core/doctype/print_settings/ Removing frappe/core/doctype/property_setter/ Removing frappe/core/doctype/standard_reply/ Removing frappe/core/doctype/todo/ Removing frappe/core/doctype/workflow/ Removing frappe/core/doctype/workflow_action/ Removing frappe/core/doctype/workflow_document_state/ Removing frappe/core/doctype/workflow_state/ Removing frappe/core/doctype/workflow_transition/ Removing frappe/utils/email_lib/ Removing frappe/widgets/ Branch v5.0 set up to track remote branch v5.0 from upstream. Switched to a new branch 'v5.0' Removing erpnext/accounts/doctype/chart_of_accounts/ Removing erpnext/home/ Removing erpnext/setup/doctype/country/ Removing erpnext/setup/doctype/currency/ Removing erpnext/setup/doctype/jobs_email_settings/ Removing erpnext/setup/doctype/sales_email_settings/ Removing erpnext/support/doctype/support_email_settings/ Removing erpnext/utilities/doctype/note/ Removing erpnext/utilities/doctype/note_user/

Running remove_from_installed_apps for site.local

Uninstalling shopping-cart:
Successfully uninstalled shopping-cart
Already up-to-date.
From https://github.com/frappe/frappe

  • branch v5.0 -> FETCH_HEAD
    Already up-to-date.
    From https://github.com/frappe/erpnext
  • branch v5.0 -> FETCH_HEAD
    Already up-to-date.
    database backup taken - ./site.local/private/backups/20141128_92502544_database.sql.gz - on 2014-11-28 10:44:34.908939

Running latest for site.local

Executing erpnext.patches.v4_2.party_model in site.local (site.local)
Traceback (most recent call last):
File “/home/revant/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.6.1’, ‘console_scripts’, ‘frappe’)()
File “/home/revant/frappe-bench/apps/frappe/frappe/cli.py”, line 39, in main
ret = run(fn, args)
File “/home/revant/frappe-bench/apps/frappe/frappe/cli.py”, line 83, in run
out = globals().get(fn)(**args)
File “/home/revant/frappe-bench/apps/frappe/frappe/cli.py”, line 67, in new_fn
return fn(*args, **new_kwargs)
File “/home/revant/frappe-bench/apps/frappe/frappe/cli.py”, line 435, in latest
frappe.modules.patch_handler.run_all()
File “/home/revant/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
if not run_single(patchmodule = patch):
File “/home/revant/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 50, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/home/revant/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 66, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/home/revant/frappe-bench/apps/erpnext/erpnext/patches/v4_2/party_model.py”, line 9, in execute
receivable_payable_accounts = create_receivable_payable_account()
File “/home/revant/frappe-bench/apps/erpnext/erpnext/patches/v4_2/party_model.py”, line 39, in create_receivable_payable_account
“parent_account”: get_parent_account(company, “Customer”)
File “/home/revant/frappe-bench/apps/erpnext/erpnext/patches/v4_2/party_model.py”, line 30, in _create_account
if args[“account_type”]==“Receivable” else “default_payable_account”), account.name)
File “/home/revant/frappe-bench/apps/frappe/frappe/database.py”, line 426, in set_value
{2}""".format(dt, field, conditions), values)
File “/home/revant/frappe-bench/apps/frappe/frappe/database.py”, line 111, in sql
self._cursor.execute(query, values)
File “/home/revant/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/home/revant/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1054, “Unknown column ‘default_receivable_account’ in ‘field list’”)
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/revant/bench-repo/bench/cli.py”, line 38, in cli
return bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/revant/bench-repo/bench/cli.py”, line 169, in update
patch_sites()
File “/home/revant/bench-repo/bench/utils.py”, line 91, in patch_sites
exec_cmd("{frappe} --latest all".format(frappe=get_frappe(bench=bench)), cwd=os.path.join(bench, ‘sites’))
File “/home/revant/bench-repo/bench/utils.py”, line 61, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘/home/revant/frappe-bench/env/bin/frappe --latest all’ returned non-zero exit status 1
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/revant/bench-repo/bench/cli.py”, line 38, in cli
return bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/revant/bench-repo/bench/cli.py”, line 207, in _migrate_to_v5
migrate_to_v5(bench=bench)
File “/home/revant/bench-repo/bench/migrate_to_v5.py”, line 16, in migrate_to_v5
exec_cmd("{bench} update".format(bench=sys.argv[0]))
File “/home/revant/bench-repo/bench/utils.py”, line 61, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘/usr/local/bin/bench update’ returned non-zero exit status 1

@pdvyas

Two things. I think

is not correct. it should be

Secondly I think I’m in V5, please confirm. Because I see a change in the email accounts type in the setup and blue color UI which looks much better , but shopping cart is still there. See the attached

http://imgur.com/7luB2eg

http://imgur.com/vSOTZha

If this is V5, then it looks much better, but I’m not able to fin the integrated inbox ?

Integrated Inbox is WIP

Hi,

is the v5 is ready to use ?

Thanks

1 Like

Hello,
I am with @bobzz_zone, How ready is V5 to use?
I could not find any documentation for V5.

Thanks

v5 is still in active development and is not stable.

-Anand.

you mentioned v5 will have a fresh designed UI. is this already visible with current state of v5 development?

If you have the chance, I would really appreciate seeing the command lines to better understand the complete process. Very interesting reading as-is though!

Yes this is already in the v5 branch:

Demo here:

http://staging5.erpnext.com/

1 Like

Do you mean improvement to frappe commands? Do you have suggestions?