Closed g0ha1 closed 8 months ago
Please don't directly get wiki app using bench get-app
instead use bench get-app --branch version-14
it will work fine
Please don't directly get wiki app using
bench get-app
instead usebench get-app --branch version-14
it will work fine
Yes, it works if i use frappe 14, but this installation used frappe 15 (look at "bench version" command). If i try to specify the 15th branch, i get this error:
frappe@erp2.test:~/frappe-bench$ bench version
erpnext 15.4.0
frappe 15.3.0
frappe@erp2.test:~/frappe-bench$ bench get-app --branch version-14 wiki
Getting wiki
$ git clone https://github.com/frappe/wiki.git --branch version-14 --depth 1 --origin upstream
Cloning into 'wiki'...
remote: Enumerating objects: 135, done.
remote: Counting objects: 100% (135/135), done.
remote: Compressing objects: 100% (119/119), done.
remote: Total 135 (delta 16), reused 68 (delta 4), pack-reused 0
Receiving objects: 100% (135/135), 1.60 MiB | 8.92 MiB/s, done.
Resolving deltas: 100% (16/16), done.
Ignoring dependencies of wiki. To install dependencies use --resolve-deps
Installing wiki
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/wiki
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
rq 1.15.1 requires redis>=4.0.0, but you have redis 3.5.3 which is incompatible.
frappe 15.3.0 requires redis~=4.5.5, but you have redis 3.5.3 which is incompatible.
$ yarn install
yarn install v1.22.21
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 7.67s.
$ bench build --app wiki
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 114, in <module>
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 20, in main
click.Group(commands=commands)(prog_name="bench")
File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1685, in invoke
super().invoke(ctx)
File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 44, in app_group
ctx.obj = {"sites": get_sites(site), "force": force, "verbose": verbose, "profile": profile}
^^^^^^^^^^^^^^^
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 56, in get_sites
elif default_site := frappe.get_conf().default_site:
^^^^^^^^^^^^^^^^^
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 384, in get_conf
with init_site(site):
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 394, in __enter__
init(self.site)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 257, in init
setup_redis_cache_connection()
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 414, in setup_redis_cache_connection
from frappe.utils.redis_wrapper import RedisWrapper
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py", line 7, in <module>
from redis.commands.search import Search
ModuleNotFoundError: No module named 'redis.commands'
ERROR: bench build --app wiki
subprocess.CalledProcessError: Command 'bench build --app wiki' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/bench", line 8, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.10/dist-packages/bench/cli.py", line 132, in cli
bench_command()
File "/usr/local/lib/python3.10/dist-packages/bench/commands/make.py", line 167, in get_app
get_app(
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 444, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File "/usr/local/lib/python3.10/dist-packages/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 242, in install
install_app(
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 586, in install_app
build_assets(bench_path=bench_path, app=app)
File "/usr/local/lib/python3.10/dist-packages/bench/utils/bench.py", line 351, in build_assets
exec_cmd(command, cwd=bench_path, env={"BENCH_DEVELOPER": "1"})
File "/usr/local/lib/python3.10/dist-packages/bench/utils/__init__.py", line 158, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: bench build --app wiki
I have the same error, any solution?
Hi, I'm able to install this in version 15;
all I've done is run these two commands after I got the above error
bench setup requirements
bench build --app wiki
and then re-installed the app on site and it works perfectly
Hi, I'm able to install this in version 15; all I've done is run these two commands after I got the above error
bench setup requirements
bench build --app wiki
and then re-installed the app on site and it works perfectly
Thanks, this helps
Hello, clean frappe instance, installed only erpnext, got this error while installing wiki: