Open ldelphinpoulat opened 2 years ago
@ldelphinpoulat, can you please share the verbose output from dvc exp show -v
? It has tracebacks and more logging information.
Here is th log dvc_exp_show.log
@skshetry a workaround is to rename the file 'Fran'$'\347''ais.txt' to 'Francais.txt'. But the initial name is handled correctly from a git point of view.
The issue is that exp show
output is always utf-8
, but git filenames are encoding agnostic (and use the system encoding). We should be handling git filenames with os.fsdecode()
in the pygit scmrepo backend before passing them back to the caller (dvc)
Bug Report
ISO 8858-1 filenames break functionnalities such as dvc exp show
Description
A file with an ISO-8859-1 character in my case 'ç' was committed to the git repository. The git directory was pushed on a distant server and then retrieved via a pull. Then
dvc exp show
does not work properly. The filename causes a problem toscmrepo/git/backend/pygit2.py
at line 57 (scmrepo==0.0.25, pygit2==1.9.2).Reproduce
Expected
After typing 'q' for the first
dvc exp show
, which is allready broken, we get the following error message for the seconddvc exp show
:Environment information
The bug was generated within a conda environment, where dvc 2.12.1 was installed with pip.
Output of
dvc doctor
:Additional Information (if any):