Ubuntu + CLI user here.
Having strange issue with command "dropbox status" and LC_ALL variable.
By default, my terminal is in French, and I get no error :
~$ dropbox status ; À jour
~$ echo $LANG fr_FR.UTF-8 ~$ echo $LC_ALL ~$ dropbox version Dropbox daemon version: 71.4.108 Dropbox command-line interface version: 2019.02.14
When overriding LC_ALL=C to get my terminal in English rather than in French (https://unix.stackexchange.com/a/87748/168003), I get errors (and I reproduce this error when repeating same steps in new terminals).
~$ export LC_ALL=C ; ~$ dropbox status ; Traceback (most recent call last): File "/usr/bin/dropbox", line 1594, in <module> ret = main(sys.argv) File "/usr/bin/dropbox", line 1583, in main result = commands[argv[i]](argv[i+1) File "/usr/bin/dropbox", line 743, in newmeth return meth(*n, **kw) File "/usr/bin/dropbox", line 1215, in status lines = dc.get_dropbox_status()['status'] File "/usr/bin/dropbox", line 714, in __spec_command return self.send_command(str(name), kw) File "/usr/bin/dropbox", line 672, in send_command ok = self.__readline() == "ok" File "/usr/bin/dropbox", line 646, in __readline toret = self.f.readline().rstrip("\n") File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 10: ordinal not in range(12
And when I restore, it outputs in French with no error:
~$ export LC_ALL= ; ~$ dropbox status À jour
(I have just run the "bad file tool finder", and renamed all that where invalid, still same error).
my distribution: Ubuntu 18.04.2 LTS
$ uname -a Linux intel9700k 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
$ ldd --version ldd (Ubuntu GLIBC 2.27-3ubuntu1) 2.27 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper.
My Linux partition is using ext4 (according to GParted).
Other informations that could be usefull:
I have the same problem.
For me it build down to dropbox status printing this line:
Syncing 25,582 files • 1 sec
the letter before 1 sec is not ascii.
Same might happen if dropbox has a problem with a file and the filename is non ascii.
If you need more help you can log a ticket with our Support Team here (expected response time 24 hours), or contact us on Twitter or Facebook.
For more info on available support options, see this article.
If you found the answer to your question, please 'like' the post to say thanks to the user!