Works OK with WXAgg, but with latest svn, r5683, OS X 10.5.3, Qt4Agg
backend, dvipnghack: True, text.usetex         : True

running from ipython -pylab:
plot([1,2,3])
savefig('123_2.pdf')

gives..

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (439, 0))

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (239, 0))
[skip]
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/dviread.pyc
in find_tex_file(filename, format)
    745     pipe = os.popen(cmd, 'r')
    746     print 'cmd=',cmd
--> 747     result = pipe.readline().rstrip()
    748     pipe.close()
    749

IOError: [Errno 4] Interrupted system call


Similarly, running trunk/matplotlib/examples/tex_demo.py fails if I
modify line 32 to savefig('tex_demo.pdf')

error is:
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/dviread.py",
line 746, in find_tex_file
    result = pipe.readline().rstrip()
IOError: [Errno 4] Interrupted system call

here line 745 is
     pipe = os.popen(cmd, 'r')

with cmd "kpsewhich 'ptmr8r.vf'"

The file ptmr8r.vf does not exist on the TeX distribution (TeXLive 2007), so
pipe.readline().rstrip() gives '' when run from the ipdb command
prompt in ipython.


However, trunk/matplotlib/examples/tex_demo.py is OK with the wxAgg
backend, although "kpsewhich 'ptmr8r.vf'" is still one of the cmd
used as args for
     pipe = os.popen(cmd, 'r')
    result = pipe.readline().rstrip()

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to