Error when b2 writes non-ASCII to stdout
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
The warning is emitted by the b2sdk.sync.report logger when a sync line cannot be written to stdout. Start in that module's output path and find where stdout is written and which encoding it uses under a redirected, non-UTF-8 locale. Reproduce by running a sync with LANG=C and stdout redirected to a file, using a filename containing non-ASCII characters. Done means that output is written without the warning, or the encoding is handled explicitly. Check the existing sync reporting tests first, since this issue has gone unanswered for years and may have changed upstream.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
The command
b2 sync --noProgress --keepDays 14 /home/data/v2 b2://backup/ > /path/to/logfile
produced this error on stderr.
WARNING:b2sdk.sync.report:could not output the following line with encoding None on stdout due
to 'ascii' codec can't encode character u'\xfa' in position 40: ordinal not in range(128):
upload files/Playlist-for-Derecho-a-la-música-9-15-19.csv
I think this is not my fault as a user of the b2 command.
If b2 uses ASCII on stdout then it should take care to not send any non-ASCII characters to stdout to avoid this python error.
Better than that is to use UTF-8 for stdout, at least when it is not connected to a term.
- Linguagem predominante
- Python
- Estrelas
- 214
- Forks
- 68
- Merge médio
- 51min
- PRs com merge (30d)
- 6
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Backblaze/b2-sdk-python
-
Download and copy sync actions print remote file names without escape_control_charsTalvez já em andamento @dreyfus92 assumiu há 15 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Backblaze/b2-sdk-python#631 ·
Mantenedores costumam responder em até 1 dia
-
SqliteAccountInfo profile name validation uses "re.match", so only the first character is checkedTalvez já em andamento @nazarli-shabnam assumiu há 9 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Backblaze/b2-sdk-python#629 ·
Mantenedores costumam responder em até 1 dia
-
Adopt the AI-native SDLC and repository policiesTalvez já em andamento @goanpeca assumiu há 18 dias. Abertaenhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
Backblaze/b2-sdk-python#634 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 50/100
Backblaze/b2-sdk-python#630 ·
Mantenedores costumam responder em até 1 dia
-
ci: cli-compat fails — 4 sse/sync integration tests broken in B2_Command_Line_Tool (all environments)Talvez livre de novo @ffumero2003 assumiu há 37 dias e não há nenhum pull request aberto. Abertabug testing
Backblaze/b2-sdk-python#627 · 2 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de Backblaze/b2-sdk-python
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
btclib-org/btclib-node#2505 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
open-webui/open-webui#34462 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
gorakhargosh/watchdog#1462 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
openwisp/openwisp-monitoring#889 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
IETF-Hackathon/pqc-certificates#351 ·
Mantenedores costumam responder em até 2 dias