From: SourceForge.net <no...@so...> - 2003-10-06 15:46:22
|
Bugs item #817717, was opened at 2003-10-04 16:17 Message generated for change (Comment added) made by wobsta You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=442886&aid=817717&group_id=45430 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: TeX error with PyX-0.4.1 Initial Comment: I run Python 2.1.3, TeX (Web2C 7.3.7) 3.14159 and kpathsea version 3.3.7 under Debian GNU/Linux 3.0. If i run any of the examples which output some text I get the following error message:sieck@acertm:~$ python /usr/lib/python2.1/site-packages/PyX/examples/hello.py Traceback (most recent call last): File "/usr/lib/python2.1/site-packages/PyX/examples/hello.py", line 4, in ? c.text(0, 0, "Hello, world!") File "/home/sieck/packages/PyX-0.4.1/pyx/canvas.py", line 767, in text File "/home/sieck/packages/PyX-0.4.1/pyx/text.py", line 2283, in text File "/home/sieck/packages/PyX-0.4.1/pyx/text.py", line 2271, in _text File "/home/sieck/packages/PyX-0.4.1/pyx/text.py", line 1950, in execute File "/home/sieck/packages/PyX-0.4.1/pyx/text.py", line 2070, in execute pyx.text.TexResultError: TeX didn't respond as expected within the timeout period (5 seconds). The expression passed to TeX was: \scrollmode \raiseerror% \def\PyX{P\kern-.3em\lower.5ex\hbox{Y}\kern-.18em X}% \gdef\PyXHAlign{0}% \newbox\PyXBox% \newbox\PyXBoxHAligned% \newdimen\PyXDimenHAlignLT% \newdimen\PyXDimenHAlignRT% \newbox\PyXBoxVAlign% \newdimen\PyXDimenVAlign% \newbox\PyXBoxVBox% \newdimen\PyXDimenVBox% \long\def\ProcessPyXBox#1#2{% \setbox\PyXBox=\hbox{{#1}}% \PyXDimenHAlignLT=\PyXHAlign\wd\PyXBox% \PyXDimenHAlignRT=\wd\PyXBox% \advance\PyXDimenHAlignRT by -\PyXDimenHAlignLT% \gdef\PyXHAlign{0}% \immediate\write16{PyXBox:page=#2,lt=\the\PyXDimenHAlignLT,rt=\the\PyXDimenHAlig nRT,ht=\the\ht\PyXBox,dp=\the\dp\PyXBox:}% \setbox\PyXBoxHAligned=\hbox{\kern-\PyXDimenHAlignLT\box\PyXBox}% \ht\PyXBoxHAligned0pt% {\count0=80\count1=121\count2=88\count3=#2\shipout\box\PyXBoxHAligned}}% \def\PyXInput#1{\immediate\write16{PyXInputMarker:executeid=#1:}}% \PyXInput{1}% After parsing the return message from TeX, the following was left: This is TeX, Version 3.14159 (Web2C 7.3.7) ! I can't find file `@473.0'. <*> @473.0 Please type another input file name: ! I can't find file `\scrollmode'. (cut after 5 lines, increase errordebug for more output) # end of output Any ideas? Alexander Sieck alexander dot sieck at web dot de # start of output ---------------------------------------------------------------------- >Comment By: André Wobst (wobsta) Date: 2003-10-06 17:46 Message: Logged In: YES user_id=405853 I could not yet reproduce your problem. It would be really nice if you could do some tests in order to better trace down the problem. First of all, I'm wondering that you've installed the examples systemwide (this would not be the case when you run "python setup.py install" in the pyx directory --- which is the suggested way to install pyx). The PyX directory in /usr/lib/pythonx.x/site-packages should not contain uppercase characters. You can already see some strange behavior that pyx in taken not from /usr/lib/pythonx.x/site-packages/pyx but from somewhere in your home directory. I expect this to be due to your way of installing pyx. Could you first of all try to fix this and the tell me, if the problem remains ... By the way, I should note that pyx indeed tries to create a temporary file handed over to TeX. This file has a temporary name and is removed after TeX should have read it. The file is created in the local directory (all these things are build in order to come over some TeX limitations). However, since the creation of the file should have been done at that point your problem occures (otherwise you should have got some exception earlier), you might be able to see that file (you might need to turn off the atexit call to cleen the temporary files in text.py). On the other hand, TeX said in the example above, that it could not read that very file. Still, very strange ... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=442886&aid=817717&group_id=45430 |