[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [zanata-users] Questions around setting up zanata using the python clients



On 05/31/2011 09:00 PM, Sean Flanigan wrote:
On 05/27/2011 11:09 PM, Bryan Kearney wrote:
This will have a couple of things.. sorry about combining the issues:

1) Can you please update the unoffical rpms with an F14? Thanks!

Sorry, can you reword that please?

Oh, do you mean these?

http://jamesni.fedorapeople.org/zanata-python-client/


yes, those please.. until the review is done :)



James?


2) I tried doing a make install from the code. Opened bug
https://bugzilla.redhat.com/show_bug.cgi?id=708363

3) I have set up a new project. The project file is attached. My
directory structure is flat.. it has the following in one directory:

as.po
de.po
fr.po
hi.po
ja.po
kn.po
ml.po
or.po
pt.po
ta.po
zanata.xml
zh_TW.po
bn.po
es.po
gu.po
it.po
keys.pot
ko.po
mr.po
pa.po
ru.po
te.po
zh_CN.po


I would like to push my po files and my pot up to the server. I am running

zanata po push --srcdir .

and getting the following. Any ideas?

Loading zanata project config from:
/home/bkearney/code/candlepin/proxy/po/zanata.xml
Loading zanata/flies user config from: /home/bkearney/.config/zanata.ini
zanata/flies server: https://translate.engineering.redhat.com
zanata python client version: 1.2.3-24-g931b, zanata/flies server API
version: 1.3
Project: candlepin
Version: 0.3
Username: bkearney
Source language: en-US
Copy previous translations:True
PO directory (originals):.
Importing source documents only
Traceback (most recent call last):
    File "/usr/bin/zanata", line 5, in<module>
      pkg_resources.run_script('zanata-python-client==1.2.3-24-g931b',
'zanata')
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 467,
in run_script
      self.require(requires)[0].run_script(script_name, ns)
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1200,
in run_script
      execfile(script_filename, namespace, namespace)
    File
"/usr/lib/python2.7/site-packages/zanata_python_client-1.2.3_24_g931b-py2.7.egg/EGG-INFO/scripts/zanata",
line 24, in<module>
      zanata.run()
    File
"/usr/lib/python2.7/site-packages/zanata_python_client-1.2.3_24_g931b-py2.7.egg/zanataclient/zanata.py",
line 953, in run
      program_name=os.path.split(sys.argv[0])[1],
    File
"/usr/lib/python2.7/site-packages/zanata_python_client-1.2.3_24_g931b-py2.7.egg/zanataclient/command.py",
line 310, in handle_program
      command(command_options, args)
    File
"/usr/lib/python2.7/site-packages/zanata_python_client-1.2.3_24_g931b-py2.7.egg/zanataclient/zanata.py",
line 737, in po_push
      push(command_options, args, "software")
    File
"/usr/lib/python2.7/site-packages/zanata_python_client-1.2.3_24_g931b-py2.7.egg/zanataclient/zanata.py",
line 905, in push
      filelist = publicanutil.get_file_list(tmlfolder, ".pot")
    File
"/usr/lib/python2.7/site-packages/zanata_python_client-1.2.3_24_g931b-py2.7.egg/zanataclient/publicanutil.py",
line 148, in get_file_list
      final_file_list+=self.get_file_list(full_path, type)
    File
"/usr/lib/python2.7/site-packages/zanata_python_client-1.2.3_24_g931b-py2.7.egg/zanataclient/publicanutil.py",
line 145, in get_file_list
      if full_path.endswith(file_type):
TypeError: expected a character buffer object

-- bk


Could you look at this TypeError please, James?


Thanks!

-- bk



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]