OK. Then, as this can occur for many packages names, a simple solution would be that lyx compile tmp_filename.tex instead of filename.tex, because the error message of the compiler is not very explicit.
LyX should give a warning if kpsewhich filename.tex has a result.
This is also a very god idea lyx team have the intention to implement the compilation of a file which uses this package? That is, if a file using pst-pdf (in the preamble) is compiled using Vsualize->pdflatex then then the compilation would be done with latex (+ bibtex, makeindex if needed), dvips(...), ps2pdf(...) and pdflatex. I recall, as I already told in
> you can do it by yourself, create a new format pdf4, for which you run the skript ps4pdf > http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-pdf/scripts/
I know, but this is not the same thing. <http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-pdf/scripts/> this list that the vtex compiler cannot be used within lyx, using the converters (any compilation error crashes lyx).
> Why not? There is no difference in running pdflatex or vlatex. Create also a format pdfV.
I don't know, but it's like that: if you define a converter using vlatex, then, any error in the document crashes lyx (I post this in the list some years ago). I solved that problem differently.
PhC