I updated Frappe v15, but now Wiki doesn’t show any frontend edit features.
Everything shows up, but when I click “Edit Sidebar” nothing happens.
I updated Frappe v15, but now Wiki doesn’t show any frontend edit features.
Everything shows up, but when I click “Edit Sidebar” nothing happens.
master branch of wiki is compatible with frappe v15
bench get-app https://github.com/frappe/wiki --branch master
Thank you, that’s the branch I’m using but still doesn’t work for some reason.
Also, I see that there is now wiki 2.0.1
But even if I update it, it still shows as 2.0.0, wonder why.
Try this commands for update
bench get-app https://github.com/frappe/wiki --branch v2.0.1
bench --site [sitename] install-app wiki --force
bench migrate
Thank you for the help, but those commands seem to be switching my Redis version from 4.5.5 to 3.5.3.
Below is the terminal error, where it says I have Redis 3.5.3, when I actually had 4.5.5 before running the command.
bench get-app GitHub - frappe/wiki: Free and Open Source Wiki built on top of Frappe --branch v2.0.1
Getting wiki
$ git clone GitHub - frappe/wiki: Free and Open Source Wiki built on top of Frappe --branch v2.0.1 --depth 1 --origin upstream
Cloning into ‘wiki’…
remote: Enumerating objects: 135, done.
remote: Counting objects: 100% (135/135), done.
remote: Compressing objects: 100% (117/117), done.
remote: Total 135 (delta 18), reused 55 (delta 6), pack-reused 0 (from 0)
Receiving objects: 100% (135/135), 1.60 MiB | 7.35 MiB/s, done.
Resolving deltas: 100% (18/18), done.
Note: switching to ‘3b894f5fe8d1f6e0dd630dea96d1787c8c576b1a’.
You are in ‘detached HEAD’ state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
Ignoring dependencies of GitHub - frappe/wiki: Free and Open Source Wiki built on top of Frappe. To install dependencies use --resolve-deps
Installing wiki
$ /home/erpnext/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/erpnext/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.
frappe 15.50.1 requires cairocffi==1.5.1, but you have cairocffi 1.6.1 which is incompatible.
frappe 15.50.1 requires redis~=4.5.5, but you have redis 3.5.3 which is incompatible.
rq 1.15.1 requires redis>=4.0.0, but you have redis 3.5.3 which is incompatible.
$ yarn install --check-files
yarn install v1.22.19
[1/4] Resolving packages…
[2/4] Fetching packages…
[3/4] Linking dependencies…
[4/4] Building fresh packages…
Done in 0.73s.
$ bench build --app wiki
Traceback (most recent call last):
File “/usr/lib/python3.10/runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “/usr/lib/python3.10/runpy.py”, line 86, in _run_code
exec(code, run_globals)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
main()
File “/home/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/home/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
File “/home/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
File “/home/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1685, in invoke
super().invoke(ctx)
File “/home/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 783, in invoke
return __callback(*args, **kwargs)
File “/home/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/decorators.py”, line 33, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/erpnext/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/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 56, in get_sites
elif default_site := frappe.get_conf().default_site:
File “/home/erpnext/frappe-bench/apps/frappe/frappe/init.py”, line 403, in get_conf
with init_site(site):
File “/home/erpnext/frappe-bench/apps/frappe/frappe/init.py”, line 413, in enter
init(self.site)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/init.py”, line 250, in init
setup_redis_cache_connection()
File “/home/erpnext/frappe-bench/apps/frappe/frappe/init.py”, line 433, in setup_redis_cache_connection
from frappe.utils.redis_wrapper import setup_cache
File “/home/erpnext/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py”, line 7, in
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 “/home/erpnext/.local/bin/bench”, line 8, in
sys.exit(cli())
File “/home/erpnext/.local/lib/python3.10/site-packages/bench/cli.py”, line 132, in cli
bench_command()
File “/home/erpnext/.local/lib/python3.10/site-packages/bench/commands/make.py”, line 181, in get_app
get_app(
File “/home/erpnext/.local/lib/python3.10/site-packages/bench/app.py”, line 778, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File “/home/erpnext/.local/lib/python3.10/site-packages/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
File “/home/erpnext/.local/lib/python3.10/site-packages/bench/app.py”, line 253, in install
install_app(
File “/home/erpnext/.local/lib/python3.10/site-packages/bench/app.py”, line 928, in install_app
build_assets(bench_path=bench_path, app=app, using_cached=using_cached)
File “/home/erpnext/.local/lib/python3.10/site-packages/bench/utils/bench.py”, line 381, in build_assets
exec_cmd(command, cwd=bench_path, env=env)
File “/home/erpnext/.local/lib/python3.10/site-packages/bench/utils/init.py”, line 181, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: bench build --app wiki
you can run this command for dependencies
bench setup requirements
or you can try to install correct version of dependency
pip install cairocffi==1.5.1
pip install redis==4.5.5
then try wiki installation commands
Thank you but still didn’t work. There must be currently some incompatibility between wiki and frappe last versions of v15.
I’ll not update right now as I have a nice balanced instance with pretty much all main apps working stable. Including Education, LMS, Healthcare, Wiki, etc.