Hide Forgot
Description of problem: $ zanata po pull Loading zanata project config from: /home/rjones/d/hivex/zanata.xml Warning, the url https://fedora.zanata.org/, contains / at end,please check your URL in zanata.xml Loading zanata user config from: /home/rjones/.config/zanata.ini zanata server: https://fedora.zanata.org Loading zanata project config from: /home/rjones/d/hivex/zanata.xml Loading zanata user config from: /home/rjones/.config/zanata.ini zanata server: https://fedora.zanata.org zanata python client version: UKNOWN, zanata server API version: 3.4.0 Project: hivex Version: master Username: rwmj Source language: en-US Traceback (most recent call last): File "/usr/bin/zanata", line 25, in <module> zanata.run() File "/usr/lib/python2.7/site-packages/zanataclient/zanata.py", line 973, in run program_name=os.path.split(sys.argv[0])[1], File "/usr/lib/python2.7/site-packages/zanataclient/command.py", line 339, in handle_program command(command_options, args) File "/usr/lib/python2.7/site-packages/zanataclient/zanata.py", line 719, in po_pull pull(command_options, args, "gettext") File "/usr/lib/python2.7/site-packages/zanataclient/zanata.py", line 475, in run_func command.run() File "/usr/lib/python2.7/site-packages/zanataclient/pullcmd.py", line 84, in run command_type = project_type NameError: global name 'project_type' is not defined Version-Release number of selected component (if applicable): zanata-python-client-1.3.18-1.fc22.noarch How reproducible: 100% Steps to Reproduce: 1. Use zanata po pull command on my 'hivex' project.
This simple-minded fix works for me, although I have no idea if it is correct or not: if self.project_type: - command_type = project_type + command_type = self.project_type dir_option = True
Any ideas Anish?
Richard, the python client stopped being the main client for Zanata a while ago. We still do minor fixes here and there (thanks to Anish), but all new features go to the Java-based client. You can find more information here: http://zanata.org/help/cli/cli-install/
Anish, can you please have a look?
Hi Richard W.M. Jones, Thanks you for bug report and I am looking into it Thanks, Anish P.
Hi Richard, Thank you for your fix, project_type was local member in previous versions but now its a class variable https://github.com/zanata/zanata-python-client/commit/fec1f0d490fdee9d23d8daf1364472f03f0b1ad9
zanata-python-client-1.3.19-1.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.19-1.el7
zanata-python-client-1.3.19-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.19-1.fc20
zanata-python-client-1.3.19-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.19-1.fc21
The reason I'm not using the Java client is: # yum install zanata-client ... Total download size: 162 M Installed size: 201 M
Package zanata-python-client-1.3.19-1.el7: * should fix your issue, * was pushed to the Fedora EPEL 7 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing zanata-python-client-1.3.19-1.el7' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-0906/zanata-python-client-1.3.19-1.el7 then log in and leave karma (feedback).
zanata-python-client-1.3.20-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.20-1.fc22
zanata-python-client-1.3.20-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.20-1.fc21
zanata-python-client-1.3.20-1.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.20-1.el7
zanata-python-client-1.3.20-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.20-1.el6
zanata-python-client-1.3.20-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.20-1.fc20
zanata-python-client-1.3.21-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.21-1.fc20
zanata-python-client-1.3.21-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.21-1.fc21
zanata-python-client-1.3.21-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.21-1.fc22
zanata-python-client-1.3.21-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.21-1.el6
zanata-python-client-1.3.21-1.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/zanata-python-client-1.3.21-1.el7
zanata-python-client-1.3.21-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
zanata-python-client-1.3.21-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
zanata-python-client-1.3.21-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
zanata-python-client-1.3.21-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
zanata-python-client-1.3.21-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.