On 1/8/08, F Wolff <[EMAIL PROTECTED]> wrote:
> Op Maandag 2008-01-07 skryf helix84:
> > # PootleServer --help
> > /var/lib/python-support/python2.5/jToolkit/data/dates.py:27:
> > DeprecationWarning: The sre module is deprecated, please import re.
> >   import sre
> > Traceback (most recent call last):
> >   File "/usr/sbin/PootleServer", line 23, in <module>
> >     from Pootle import pootle
> >   File "/usr/lib/python2.5/site-packages/Pootle/pootle.py", line 31, in 
> > <module>
> >     from Pootle import indexpage
> >   File "/usr/lib/python2.5/site-packages/Pootle/indexpage.py", line
> > 31, in <module>
> >     from elementtree import ElementTree
> > ImportError: No module named elementtree
> >
> >
> > system is up-to-date Ubuntu Gutsy
> >
> > relevant dpkg -l output:
> > pootle                            1.0.1-2
> > python-jtoolkit                   0.7.8-2
> > translate-toolkit                 1.0.1-1
> > python-kid                        0.9.6-1
> > python-elementtree                1.2.6-11ubuntu1
> > python                            2.5.1-1ubuntu2
>
>
> Hallo and thank you for your report
>
> The import statement doesn't import Python's own elementtree package,
> but the standalone version, and my guess is that the python-elementtree
> that you have installed is the one from Python 2.5.  Elementtree was
> only added with Python 2.5
>
> The import statement should be:
> from xml.etree import ElementTree
>
> Alternatively, you can just install the standalone version of
> elementtree, but I guess it won't be available as a package in your
> standard repository.
>
> This bug has been fixed, but after the release (which I didn't realise).
> It will be fixed in the next release.
>
> Friedel

Thank you, this helped. I changed it in following files:
/usr/lib/python2.5/site-packages/Pootle/pootle.py
/usr/lib/python2.5/site-packages/Pootle/indexpage.py

Maybe we should let know the package maintainer for Ubuntu (actually
Debian) how to fix it. Or release a new minor revision if this isn't
distro-specific.
http://changelogs.ubuntu.com/changelogs/pool/universe/p/pootle/pootle_1.0.1-2/pootle.copyright

~~helix84

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle

Reply via email to