ActiveState Community

Debuging .udl files with luddite lex

Posted by prezez on 2009-09-10 07:15
OS: All / Any

I am trying to debug an .udl file. "luddite just_compile" works ok, showing no errors. I also tried "luddite lex", but in vain.
On both windows/linux and with python 2.5/2.6 I am getting different errors. When run with python 2.6.2 the message reads:

$ python2.6 $luddite lexhtml X  udl/X-mainlex.udl 
[...]/lib/sdk/pylib/ludditelib/cmdln.py:274: SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert (isinstance(argv, (list, tuple)),
[...]/lib/sdk/pylib/ludditelib/cmdln.py:320: SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert (isinstance(argv, (list, tuple)),
luddite: error: AssertionError: you must use Python 2.5.x

but then, with python2.5:

$  python2.5 luddite lexhtml X udl/X-mainlex.udl 
luddite: error: ImportError: [...]/lib/mozilla/python/komodo/SilverCity/_SilverCity.so: undefined symbol: PyUnicodeUCS2_DecodeUTF8

and on windows:

luddite: error: ImportError: Module use of python26.dll conflicts with this version of Python.

Any ideas what I'm doing wrong here?

egor.makarov | Tue, 2009-11-17 13:12

I fixed that by replacing #!/usr/bin/env python with #![here-your-path-to-komodo]/lib/python/bin/python in luddite script, but I think there must be better solution.