V5.0 Application Installer problems

Hi. I install frappe and erpnext version 5.0. Everything is ok but Application Installer doesn’t show any installed app and complains with the following error when clicked:

2014-11-30 12:42:00,561 Request Error 
 site: site5.local
 form: {'cmd': u'frappe.desk.page.messages.applications.get_app_list'}

Traceback (innermost last):
  File "/Users/saguas/erpnext4/erpnext/erpnext_mac/frappe_v5/frappe-bench/apps/frappe/frappe/app.py", line 49, in application
    response = frappe.handler.handle()
  File "/Users/saguas/erpnext4/erpnext/erpnext_mac/frappe_v5/frappe-bench/apps/frappe/frappe/handler.py", line 66, in handle
    execute_cmd(cmd)
  File "/Users/saguas/erpnext4/erpnext/erpnext_mac/frappe_v5/frappe-bench/apps/frappe/frappe/handler.py", line 77, in execute_cmd
    method = get_attr(cmd)
  File "/Users/saguas/erpnext4/erpnext/erpnext_mac/frappe_v5/frappe-bench/apps/frappe/frappe/handler.py", line 98, in get_attr
    method = frappe.get_attr(cmd)
  File "/Users/saguas/erpnext4/erpnext/erpnext_mac/frappe_v5/frappe-bench/apps/frappe/frappe/__init__.py", line 669, in get_attr
    return getattr(get_module(modulename), methodname)
  File "/Users/saguas/erpnext4/erpnext/erpnext_mac/frappe_v5/frappe-bench/apps/frappe/frappe/__init__.py", line 482, in get_module
    return importlib.import_module(modulename)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
 ImportError: No module named applications

Is this an error or i made something wrong?
Thanks.

Can you run bench update --build and try again? Adding that step to the migrate script.

Hi. I did bench update --build and the problem remain.

I don’t know if this is relevant but i did a fresh install not a migration and because i already have all the necessary dependencies installed i skip this step: sudo bash setup_frappe.sh.

My procedure was:

in a new folder i:

  1. git clone GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps bench-repo
  2. sudo pip install -e bench-repo
  3. bench init frappe-bench && cd frappe-bench
  4. bench get-app erpnext GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)
  5. bench new-site site5.local → to not mess with v4 installation

With your procedure, I dont think that the repositories are pointing to the v5 branch. Even for a new bench, run bench migrate-to-v5 before creating a new site.

Hi. I think i’am in version 5.

The desktop seem like version 5 because has item variants…

when i do bench update this is the output:

From https://github.com/frappe/erpnext
 * branch            v5.0       -> FETCH_HEAD
Already up-to-date.
From https://github.com/frappe/frappe
 * branch            v5.0       -> FETCH_HEAD

bench migrate-to-v5 does’t work because i have to be in version 4 to do that and i want keep both versions.

But i think i don’t have the new bench because i have version 0.1.

How can i update only the new bench?

Thanks.

I think, bench update --bench will update the bench app.

Hi.
I did bench update --bench but i get the same problem.

I will make a fresh installation of v4 and then update!

Thanks.

If you want to keep both versions, then setup another bench for v5
Remove /etc/frappe_bench_dir if it exists and setup the another bench with bench init benchv5

Hi.
I did bench init benchv5 but i get the same initial error (… No module named applications).
I’am on mac and there is no /etc/frappe_bench_dir.

The bench init benchv5 created a folder named benchv5 with the same content as standard folder frappe-bench.

Thanks.