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?
I fixed that by replacing
#!/usr/bin/env pythonwith#![here-your-path-to-komodo]/lib/python/bin/pythonin luddite script, but I think there must be better solution.