[Openstack-i18n] [Openstack-docs] Switch to itstool for docs translation?

Andreas Jaeger aj at suse.com
Wed Aug 20 10:37:00 UTC 2014


On 06/03/2014 07:06 PM, Shaun McCance wrote:
> On Fri, 2014-05-09 at 18:04 +0200, Andreas Jaeger wrote:
>> On 05/09/2014 05:57 PM, Andreas Jaeger wrote:
>>> On 05/09/2014 05:47 PM, Shaun McCance wrote:
>>>> [...]
>>>
>>>>> I think we need to ensure with the infra team that itstools are
>>>>> installed on our machines.
>>>>
>>>> That's the big question I haven't been able to answer yet. Preferably at
>>>> least version 2.0.1.
>>>
>>> Just talked briefly with the infra team and checked our setup:
>>>
>>> What is in Ubuntu Precise? I assume the package is not installed but if
>>> it's available, we can add rules to the gate machines to have it
>>> installed...
>>
>> Shaun,
>>
>> this is in precise: http://packages.ubuntu.com/precise/itstool
>>
>> This is a python package, isn't it? Get 2.0.1 on pypi.python.org and we 
>> can install it from there...
> 
> itstool 2.0.2 is now on pypi as a source package. It's one executable
> pure python script, plus some data files. I'm almost positive the pip
> install will work everywhere, but if somebody could test on non-Linux
> systems, that would be great.

Shaun, it is not working in a virtual environment. To reproduce:
* Install python virtualenv package
* Run "virtualenv its"
* Run "source its/bin/activate" to use the virtualenv
* Run now in the virtualenv "pip install itstool"

It fails with:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: could not create '/usr/share/itstool': Permission denied

----------------------------------------
Cleaning up...
Command /tmp/its/bin/python -c "import
setuptools;__file__='/tmp/itstools/build/itstool/setup.py';exec(compile(open(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" install --record
/tmp/pip-M39Dm9-record/install-record.txt
--single-version-externally-managed --install-headers
/tmp/itstools/include/site/python2.7 failed with error code 1 in
/tmp/its/build/itstool
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I suggest to not use '/usr/share/itstool/its' in setup.py. Changing this
to 'itstool/its' fixed it for me.

But then it failed with a missing dependency on libxml2. It would be
great if the tool could live without the dependency and use lxml
instead, otherwise it needs to be setup using site-packages
(--system-site-packages)

We cannot move forward unless itstool can be executed in a virtual
environment (using site packages is possible but not desired).

Shaun, could you take care of uploading a fixed package, please?

Andreas
-- 
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126



More information about the Openstack-i18n mailing list