I’ve tried this and I get error because of frappe_io folder. I also removed that with
rm -r frappe_io
But then I get “ImportError: No module named ‘frappe_io.commands’” error. I use easy install on ubuntu 16 with develop switch. I will try to set master branch with production switch. My full error log is below.
turker@turker-fd2:~/frappe-bench$ bench get-app frappe GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --branch master
INFO:bench.app:getting app frappe
INFO:bench.utils:git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --branch master --depth 1 --origin upstream
Cloning into ‘frappe’…
remote: Enumerating objects: 2482, done.
remote: Counting objects: 100% (2482/2482), done.
remote: Compressing objects: 100% (2271/2271), done.
remote: Total 2482 (delta 347), reused 1136 (delta 148), pack-reused 0
Receiving objects: 100% (2482/2482), 18.15 MiB | 515.00 KiB/s, done.
Resolving deltas: 100% (347/347), done.
Checking connectivity… done.
(‘installing’, u’frappe’)
INFO:bench.app:installing frappe
INFO:bench.utils:./env/bin/pip install -q -e ./apps/frappe --no-cache-dir
INFO:bench.app:getting app frappe_io
INFO:bench.utils:git clone GitHub - frappe/frappe_io: Website for Frappe --branch master --depth 1 --origin upstream
Cloning into ‘frappe_io’…
remote: Enumerating objects: 628, done.
remote: Counting objects: 100% (628/628), done.
remote: Compressing objects: 100% (591/591), done.
remote: Total 628 (delta 16), reused 360 (delta 10), pack-reused 0
Receiving objects: 100% (628/628), 18.13 MiB | 981.00 KiB/s, done.
Resolving deltas: 100% (16/16), done.
Checking connectivity… done.
(‘installing’, u’frappe_io’)
INFO:bench.app:installing frappe_io
INFO:bench.utils:./env/bin/pip install -q -e ./apps/frappe_io --no-cache-dir
Traceback (most recent call last):
File “/home/turker/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 64, in get_app_commands
app_command_module = importlib.import_module(app + ‘.commands’)
File “/home/turker/frappe-bench/env/lib/python3.5/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 986, in _gcd_import
File “”, line 969, in _find_and_load
File “”, line 956, in _find_and_load_unlocked
ImportError: No module named ‘frappe_io.commands’
Traceback (most recent call last):
File “/home/turker/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 64, in get_app_commands
app_command_module = importlib.import_module(app + ‘.commands’)
File “/home/turker/frappe-bench/env/lib/python3.5/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 986, in _gcd_import
File “”, line 969, in _find_and_load
File “”, line 944, in _find_and_load_unlocked
File “”, line 222, in _call_with_frames_removed
File “”, line 986, in _gcd_import
File “”, line 969, in _find_and_load
File “”, line 956, in _find_and_load_unlocked
ImportError: No module named ‘erpnext’
Traceback (most recent call last):
File “/home/turker/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 64, in get_app_commands
app_command_module = importlib.import_module(app + ‘.commands’)
File “/home/turker/frappe-bench/env/lib/python3.5/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 986, in _gcd_import
File “”, line 969, in _find_and_load
File “”, line 956, in _find_and_load_unlocked
ImportError: No module named ‘foundation.commands’
Traceback (most recent call last):
File “/usr/lib/python3.5/runpy.py”, line 184, in _run_module_as_main
“main”, mod_spec)
File “/usr/lib/python3.5/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/turker/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
main()
File “/home/turker/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/turker/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home/turker/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/turker/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/turker/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/turker/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/turker/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/turker/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 17, in build
frappe.init(‘’)
File “/home/turker/frappe-bench/apps/frappe/frappe/init.py”, line 158, in init
setup_module_map()
File “/home/turker/frappe-bench/apps/frappe/frappe/init.py”, line 872, in setup_module_map
for module in get_module_list(app):
File “/home/turker/frappe-bench/apps/frappe/frappe/init.py”, line 746, in get_module_list
return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))
File “/home/turker/frappe-bench/apps/frappe/frappe/init.py”, line 704, in get_module
return importlib.import_module(modulename)
File “/home/turker/frappe-bench/env/lib/python3.5/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 986, in _gcd_import
File “”, line 969, in _find_and_load
File “”, line 956, in _find_and_load_unlocked
ImportError: No module named ‘erpnext’