Hello,

Using PyX-0.10 or PyX-0.9, the following code running on Windows XP with MikTeX
2.9 runs OK. 

If I now include the text.set(mode=r"latex") line, the program fails (using
PyX-0.10, or PyX-0.9).

However, using PyX-0.11.1 or PyX-0.11, the program fails whether or not I 
include the
text.set(mode=r'latex') line.

Including the text.set(mode=r'latex') causes the program to fail for all 
versions
of PyX tested -- on my Windows XP, MikTeX 2.9 box.


from pyx import *
# text.set(mode=r"latex")
c = canvas.canvas()
c.text(0,0,r"Test")
c.writePDFfile("test")


For PyX-0.11.1, without the text.set line, the output is:

>c:\Python27\pythonw -u "test1.py"
Traceback (most recent call last):
  File "test1.py", line 5, in 
    c.text(0,0,r"Test")
  File "c:\python27\Lib\site-packages\PyX-0.11.1\pyx\canvas.py", line 268, in 
text
    return self.insert(self.texrunner.text(x, y, atext, *args, **kwargs))
  File "c:\python27\Lib\site-packages\PyX-0.11.1\pyx\text.py", line 1195, in 
text
    self.execute(expr, self.defaulttexmessagesdefaultrun +
self.texmessagesdefaultrun + texmessages)
  File "c:\python27\Lib\site-packages\PyX-0.11.1\pyx\text.py", line 910, in 
execute
    stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
close_fds=True)
  File "c:\Python27\lib\subprocess.py", line 630, in __init__
    raise ValueError("close_fds is not supported on Windows "
ValueError: close_fds is not supported on Windows platforms if you redirect
stdin/stdout/stderr
>Exit code: 1

For PyX-0.11.1, the output with the text.set line is:
>c:\Python27\pythonw -u "test1.py"
Traceback (most recent call last):
  File "test1.py", line 5, in 
    c.text(0,0,r"Test")
  File "c:\python27\Lib\site-packages\PyX-0.11.1\pyx\canvas.py", line 268, in 
text
    return self.insert(self.texrunner.text(x, y, atext, *args, **kwargs))
  File "c:\python27\Lib\site-packages\PyX-0.11.1\pyx\text.py", line 1182, in 
text
    self.execute("\\begin{document}", self.defaulttexmessagesbegindoc +
self.texmessagesbegindoc)
  File "c:\python27\Lib\site-packages\PyX-0.11.1\pyx\text.py", line 910, in 
execute
    stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
close_fds=True)
  File "c:\Python27\lib\subprocess.py", line 630, in __init__
    raise ValueError("close_fds is not supported on Windows "
ValueError: close_fds is not supported on Windows platforms if you redirect
stdin/stdout/stderr
>Exit code: 1


I can use PyX-0.10 without the text.set line...but is there something I can do 
to
fix the problem?

Thanks,

Charles Bowman, Ph.D.
Dept. of Physiology and Biophysical Sciences
University at Buffalo
Buffalo NY 14214
Sherman 126
Tel: 716-829-3350








------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to