From: Andre W. <wo...@us...> - 2004-01-06 21:28:25
|
Hi Gary, On 06.01.04, Gary Pajer wrote: > I can run most of the files in the examples directory. But connect.py > fails: > --------------------------- > C:\Python23\Lib\site-packages\pyx\examples>python connect.py > Traceback (most recent call last): > File "connect.py", line 7, in ? > A = c.text(0,0, r"\bf A", text.halign.center, text.vshift.char(0.5)) > AttributeError: class vshift has no attribute 'char' > ------------------------- You're running the CVS, aren't you? The vshift.char has gone in CVS, but not everything is up and running yet. I've just corrected this problem ... it's checked in, but you may need to wait up to 24 hours until sourceforges anonymous CVS mirror got the modifications. > I can run *none* of the files in examples/graphs. They all fail trying to > deal with TeX fonts, for example > -------------------------- > C:\Python23\Lib\site-packages\pyx\examples\graphs>python lissajous.py > > Error: module writet1 (file > C:/tex/texmf/fonts/type1/bluesky/cm/cmsy10.pfb): > unexpected end of file > ==> Fatal error occurred, the output PDF file is not finished! > -------------------------- Well, some of the graph examples didn't work eigher, but I've corrected them now as well. But some of the examples were ok already before my last checkins. And the message you observed is very confusing: it seems to come directly from within the writet1 extention module, which is build out of parts of the pdftex code (hence this wrong message about PDF output). Well, I don't yet see any reason, why these particular examples do not run while the other do. The graph module does nothing special in the usage of the text-module compared to those simple text examples in the root example directory. Could you copy the hello.py into the graph subdirectory and try to run it there? It might be, that some configuration problem prevents the examples to run at some locations ... lets first check that ... André -- by _ _ _ Dr. André Wobst / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript figures with Python & TeX (_/ \_)_/\_/ visit http://pyx.sourceforge.net/ |