django / djangoproject.com

Source code to djangoproject.com
https://www.djangoproject.com/
BSD 3-Clause "New" or "Revised" License
1.86k stars 939 forks source link

tried to fix po problem, tx client pull error #1521

Closed coby2023t closed 2 months ago

coby2023t commented 2 months ago

tried to pull from transifex with command: tx pull -f -l fr --minimum-perc=70 got error message: tx ERROR: not enough values to unpack (expected 2, got 1)

googled and searched in transifex docs, but no help. no documents at all.

tx --version 0.14.4, py 3.10, x86_64

.tx/config

[main] host = https://www.transifex.com lang_map = zh_CN: zh_Hans, zh_TW: zh_Hant

[o:django:p:django-docs:r:website-strings] file_filter = docs/locale//LC_MESSAGES/django.po source_file = docs/locale/en/LC_MESSAGES/django.po source_lang = en ...

~/.transifexrc

[https://app.transifex.com] api_hostname = https://api.transifex.com hostname = https://app.transifex.com token = ...

bmispelon commented 2 months ago

Hi and thanks for the report!

I just tried and the same command (tx pull -f -l fr --minimum-perc=70) works for me with no errors. The only difference I see is that I'm using the 1.6.10 version of the client. Can you try to update yours to see if it helps?

coby2023t commented 2 months ago

thanks, the latest ubuntu bundled tx is 0.14.2, didn't work, so update to 0.14.4, just remove and manual installed the 1.6.10, with the sample .transifexrc and my username and api token info, but tx broken :

API token not found. Please provide it and it will be saved in '~/.transifexrc'. If you don't have an API token, you can generate one in https://app.transifex.com/user/settings/api/

can you share the working .transifexrc with usrname and token marked as **** ? thank you

coby2023t commented 2 months ago

it was the problem of the sample rc file !! what a mess, the transifex cli didn't know that, will fix and pull request it.