How to reproduce the error?
Reason for misbehaviour:
some .enc files may start with something like this:
PyX considers '[' being part of the encoding name and
expects another '[' to appear.
Please also try with
Parsing of .enc files is simple, but yet not as trivial
as it may seem to be.
PS: Hoping that PyX will support ConTeXt once as well,
not only (hardcoded) LaTeX;
www.pragma-ade.com/overview.htm. But PyX seems to be