Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory: './assets/frappe/js/lib/snap.svg-min.js #37

Open
johnwslongland opened this issue Aug 20, 2024 · 1 comment

Comments

@johnwslongland
Copy link

When opening a new soil texture doc, this error occurs.
It seems to relate to the ternary plot

I also link in the previous issue where ternary was involved...
frappe/erpnext#11212

Error...

App Versions

{
    "agriapp": "0.0.1",
    "agriculture": "0.0.1",
    "erpnext": "14.71.0",
    "frappe": "14.79.0"
}

Route

Form/Soil Texture/new-soil-texture-agekllruko

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 97, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 48, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 86, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1619, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/client.py", line 351, in get_js
    with open(contentpath) as srcfile:
FileNotFoundError: [Errno 2] No such file or directory: './assets/frappe/js/lib/snap.svg-min.js'

Request Data

{
    "type": "GET",
    "args": {
        "items": "[\"assets/frappe/js/lib/snap.svg-min.js\"]"
    },
    "freeze": true,
    "headers": {},
    "error_handlers": {},
    "url": "/api/method/frappe.client.get_js"
}

Response Data

{
    "exception": "FileNotFoundError: [Errno 2] No such file or directory: './assets/frappe/js/lib/snap.svg-min.js'"
}
@johnwslongland
Copy link
Author

I have solved the problem by geting the snap.svg-min.js file from
https://gist.github.com/aresnick/0d213ff669b1faa9d6a6

and copying it to the required folder
bench migrate
bench restart

Please can the repository be updated with this file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant