Can`t get update - Failed building wheel for openpyxl

hi help me to solve this thankyou

Installed Apps
ERPNext: v10.1.72 (master)
Frappe Framework: v10.1.64 (master)

root@litar-bersepadu:/home/frappe/frappe-bench# bench update
INFO:bench.utils:updating bench
INFO:bench.utils:git pull
Already up-to-date.
remote: Enumerating objects: 34, done.
remote: Counting objects: 100% (34/34), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 36 (delta 23), reused 29 (delta 23), pack-reused 2
Unpacking objects: 100% (36/36), done.
c0e7ceb…87cfe05 hotfix -> upstream/hotfix
3669203…0e1107b staging-fixes -> upstream/staging-fixes
INFO:bench.utils:./env/bin/pip install Pillow
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages (4.2.1)
Requirement already satisfied: olefile in ./env/lib/python2.7/site-packages (from Pillow) (0.44) frappe
INFO:bench.utils:git pull upstream master

  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.utils:find . -name “*.pyc” -delete erpnext
    INFO:bench.utils:git pull upstream master
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.utils:find . -name “*.pyc” -delete
    Updating Python libraries…
    INFO:bench.utils:./env/bin/pip install --upgrade pip
    Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages (18.1)
    INFO:bench.utils:./env/bin/pip install -q -r /home/frappe/.bench/requirements.txt
    INFO:bench.utils:./env/bin/pip install -q -r ./apps/frappe/requirements.txt
    Failed building wheel for openpyxl
    Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/home/frappe/frappe-bench/env/lib/python2.7/site-packages/urllib3-1.21.1.dist-info/DESCRIPTION.rst’
    Consider using the --user option or check the permissions.

Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/”, line 40, in cli
File “/usr/local/lib/python2.7/dist-packages/click/”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/”, line 60, in update
_update(pull, patch, build, bench, auto, restart_supervisor, restart_systemd, requirements, no_backup, force=force, reset=reset)
File “/home/frappe/.bench/bench/commands/”, line 76, in _update
File “/home/frappe/.bench/bench/”, line 435, in update_requirements
install_requirements(pip, req_file)
File “/home/frappe/.bench/bench/”, line 499, in install_requirements
exec_cmd("{pip} install -q -r {req_file}".format(pip=pip, req_file=req_file))
File “/home/frappe/.bench/bench/”, line 159, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install -q -r ./apps/frappe/requirements.txt

It’s error because you used user root to update. Should be user frappe.

1 Like

i did used frappe but got same problem…

This in your output states the problem -

And a search on that turns up this advice Failed building wheel for openpyxl

Yes to run as root is ill advised, best practice to avoid permission problems and other snags is to install as a non-root user with sudo privileges and run from that user account

thanks @clarkej i figure out by hard reset the app

1 Like