I’ll uninstall and remove all custom apps on my dev machine and try run bench update again
So then you have identified and confirmed the problem source is indeed a filename?
So is this the problem character
u’ñ’
u’\xf1’
u’ñ’.encode(‘utf8’)
‘\xc3\xb1’
u’ñ’.encode(‘utf8’).encode(‘utf8’)
Traceback (most recent call last):
File “”, line 1, in
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc3 in position 0: ordinal not in range(128)
No, I try uninstalling custom apps but not works at all…
I think the problem is the erpnext app, just there has this types of languages…
Uninstalled all custom apps and the issue continues… I think this is not a file name
“I think this is not a file name”
You have checked and can you confirm that? Your stack trace suggests otherwise
File “/usr/lib/python2.7/compileall.py”, line 41, in compile_dir
names.sort()
I’ve checked all of custom apps, folder by folder
There’s no way to see what’s the entire name with the compile?
“there’s no way to see what’s the entire name with the compile?”
Maybe try ‘ls -R apps/your_custom_app’ to view the filenames?
No, see the file name with problem hehehe
So if understood very well, the character problem is ñ
right? Has some file with this char, right?
That’s what I would look for
Maybe on erpnext too?
Good find - let us know what you learn
Do you know how can I find files name out of range of ascii encode by command line?
Like all files with ’ ñ ’ on name
I’ll uninstall erpnext on my dev machine and see if still giving error
That’s a good question - this much I know
frappe@erpnext:~/frappe-bench$ find . -name ‘*.py’ | grep ‘n’
Has to be ñ, not n.
But I cannot pass ñ on terminal too
Tried:
find . -name ‘*.py’ | grep “~n”
hahahahhahahahaha
Yes that is for us to learn.
I am out of time to research that.
Perhaps someone can chime in here…