[Error] - No such file or directory: u'./assets/frappe/css/daterangepicker.css'

Hello guys!

After bench update I faced with error, please help me to fix it.

  • erpnext 7.1.27
  • frappe 7.1.27
  • bench 4.1.0
  • Dev environment

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 36, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 895, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/client.py”, line 281, in get_js
with open(contentpath, “r”) as srcfile:
IOError: [Errno 2] No such file or directory: u’./assets/frappe/css/daterangepicker.css’


daterangepicker.css - this file is absent

I try bench build - not helps

frappe@erpnext:~/frappe-bench$ bench build
Wrote ./assets/js/print_format_v3.min.js - 18k
Wrote ./assets/js/frappe-web.min.js - 132k
Wrote ./assets/js/form.min.js - 139k
Wrote ./assets/js/report.min.js - 162k
Wrote ./assets/js/erpnext.min.js - 85k
Wrote ./assets/css/list.min.css - 9k
Wrote ./assets/js/item-dashboard.min.js - 6k
Wrote ./assets/js/d3.min.js - 343k
Wrote ./assets/css/report.min.css - 8k
Wrote ./assets/css/frappe-web.css - 64k
Wrote ./assets/js/list.min.js - 117k
Wrote ./assets/js/dialog.min.js - 63k
Wrote ./assets/js/desk.min.js - 251k
Wrote ./assets/css/form.min.css - 4k
Wrote ./assets/js/editor.min.js - 27k
Wrote ./assets/css/erpnext.css - 3k
Wrote ./assets/js/libs.min.js - 685k
Wrote ./assets/js/erpnext-web.min.js - 2k
Wrote ./assets/css/desk.min.css - 257k
Wrote ./assets/css/module.min.css - 2k

I also tried:

frappe@erpnext:~/frappe-bench$ cd ~/frappe-bench/apps/frappe
frappe@erpnext:~/frappe-bench/apps/frappe$ git stash
No local changes to save
frappe@erpnext:~/frappe-bench/apps/frappe$ git pull upstream
Already up-to-date.

1 Like

have you tried bench update again?

Yes! Not helps me

1 Like

have you checked if you have daterangepicker.css in that path?

I can confirm same error. I updated by dev environment just now and get same error. I was looking up a sales order when I got the error. Doing a find on the whole file system shows no entries for daterangepicker.css.

Do find this though:

erpnext@small-instance-1:~/erpnext-dev$ find . | grep datepicker
1 Like

i had the same error yesterday when i did bench update :frowning:

1 Like

I have same problem too, mine is 7.1.29 for both frappe and EPNext. However, it is strange that i have a VM image to test frappe and ERPNext, it is working, i mean no error comes out. However, i upgraded my production server, to same configuration with same set data. It comes out this error, my error locations are sale invoice(have this error, then cannot display any old sales invoice, just a 50% white transparency screen), note(have this error, then no any tags displayed on left side, i.e. i cannot use tag to filter notes).

I upgrade the app by this way, is it ok?

My VM is a development mode ERPNext, while my server is production mode.

1 Like

Opened the bug request for this issue per Error After Bench Update: No such file or directory: u’./assets/frappe/css/daterangepicker.css’ · Issue #7325 · frappe/erpnext · GitHub