This part of code should call this python code:
def send_to_maileva(items, doctype, docname):
items = json.loads(items)
But when ajax request executes(frappe.call function), I take this error:
Your resource you are looking for is not available
All path have been written correctly (i tried execute it by bench execute <path.to.method> and all correctly executed). Which reason could be there? How I can fix it? I am ready share all necessary information
printout the doctype and docname to make sure it correctly passed as expected from browser.
I have access to doctype. I think the problem is, that
frappe.call can’t see the function., Because if i leave only
print('hello') function will not execute too
It correctly completed by side of client
Any news, ma dear community?
Well, a general request and tip - to post the text of a traceback means code and forum searches are accessible and work, while a screenshot is ignored
The problem connected with uncorrectly import python’s library. Check it, if you get similar error!
Well I can see the wrong package can be loaded, but have not had to debug that case https://stackoverflow.com/questions/30981249/how-can-i-keep-python-from-loading-the-wrong-package
Otherwise to just delete the .pyc files to recompile, should uncover missing failed imports, no?