On Wed, Sep 29, 2010 at 6:28 PM, Christian Boos <cb...@neuf.fr> wrote:
> On 9/29/2010 6:13 PM, Itamar O wrote: > >> >> Any idea why I'm getting this? >> c:\...\trac-0.12-stable>python setup.py update_catalog_js -l he >> usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] >> or: setup.py --help [cmd1 cmd2 ...] >> or: setup.py --help-commands >> or: setup.py cmd --help >> >> error: invalid command 'update_catalog_js' >> >> (I have Babel-0.9.5 installed) >> > > But for the same python than the one you're using above? > How does the following work for you? > > > python > >>> import babel > >>> from trac.util.dist import get_l10n_js_cmdclass > >>> get_l10n_js_cmdclass() > {'extract_messages_js': <class babel.messages.frontend.extract_messages at > 0x03148C30>, ... c:\...\trac-0.12-stable>python Python 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import babel >>> from trac.util.dist import get_l10n_js_cmdclass Traceback (most recent call last): File "<stdin>", line 1, in <module> File "trac\util\__init__.py", line 35, in <module> from trac.util.text import to_unicode File "trac\util\text.py", line 28, in <module> from trac.util.translation import _ File "trac\util\translation.py", line 19, in <module> from genshi.builder import tag ImportError: No module named genshi.builder Not really sure why Genshi is needed for the js-messages but not for the python and template messages... but once I installed Genshi it worked alright. Thanks! -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to trac-...@googlegroups.com. To unsubscribe from this group, send email to trac-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.