Hi Simon,

looks like the same error we had recently, to be fixed by:

andre@mbp:~/python/pyx$ svn diff
Index: pyx/text.py
===================================================================
--- pyx/text.py (revision 3627)
+++ pyx/text.py (working copy)
@@ -318,7 +318,7 @@
             while m:
                 if not os.path.isfile(config.get("text", "chroot", "") + 
m.group("filename")):
                     return msg
-                r, m = remove_pattern(texmessage.quoted_file_pattern, r)
+                r, m = remove_pattern(p, r)
         return r
 
     quoted_graphics_pattern = re.compile(r'<"(?P<filename>[^"]+\.eps)">')


I'll make a new PyX release as soon as possible to fix the issue. In the mean 
time please edit the text.py as indicated.

Best,


André

Am 27.06.2015 um 03:15 schrieb Simon Burton <[email protected]>:

> 
> On Thu, 30 Apr 2015 23:48:51 +0200
> André Wobst <[email protected]> wrote:
> 
>> 
>> List of changes
>> ===============
>> 
>> 0.14 (2015/04/30):
>>  - new svgwriter module:
>>    - complete SVG output
>>    - SVG font output disabled by default due to missing support by
>>      most browsers, fallback by rendering fonts as paths
> 
> I'm very excited to read this as I have been looking for a way
> to render beautiful PyX figures in web pages (including scalable
> math, etc.) Is this possible now ?
> 
> I had a go at making an svg figure, but when I include math I get the
> following error (this works fine with the pdf backend):
> 
> Traceback (most recent call last):
>  File "./render.py", line 228, in <module>
>    c.text(0., 0., r"hi there! $1+1=2$")
>  File "/usr/local/lib/python3.2/dist-packages/pyx/canvas.py", line 409, in 
> text
>    return self.insert(self.texrunner.text(x, y, atext, *args, **kwargs))
>  File "/usr/local/lib/python3.2/dist-packages/pyx/text.py", line 1428, in 
> wrapped
>    return f(self, *args, **kwargs)
>  File "/usr/local/lib/python3.2/dist-packages/pyx/text.py", line 1464, in text
>    return self.instance.text(*args, **kwargs)
>  File "/usr/local/lib/python3.2/dist-packages/pyx/text.py", line 1304, in text
>    return self.text_pt(unit.topt(x), unit.topt(y), *args, **kwargs)
>  File "/usr/local/lib/python3.2/dist-packages/pyx/text.py", line 1278, in 
> text_pt
>    left_pt, right_pt, height_pt, depth_pt = self.do_typeset(expr, 
> self.texmessages_run_default + self.texmessages_run + texmessages)
>  File "/usr/local/lib/python3.2/dist-packages/pyx/text.py", line 1204, in 
> do_typeset
>    return self._execute(expr, texmessages, STATE_TYPESET, STATE_TYPESET)
>  File "/usr/local/lib/python3.2/dist-packages/pyx/text.py", line 1125, in 
> _execute
>    raise e
>  File "/usr/local/lib/python3.2/dist-packages/pyx/text.py", line 1114, in 
> _execute
>    raise TexResultError("unhandled TeX response (might be an error)")
> pyx.text.TexResultError: unhandled TeX response (might be an error)
> The expression passed to TeX was:
>  \ProcessPyXBox{hi there! $1+1=2$%
>  }{1}%
>  \PyXInput{6}%
> After parsing the return message from TeX, the following was left:
>  *
>  *
>  (/usr/share/texmf-texlive/tex/latex/amsfonts/umsb.fd)
> 
> 
>  (cut after 5 lines; use errordetail.full for all output)
> 
> 
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors 
> network devices and physical & virtual servers, alerts via email & sms 
> for fault. Monitor 25 devices for free with no restriction. Download now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
> _______________________________________________
> PyX-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyx-user

-- 
by  _ _      _    Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim
   / \ \    / )   [email protected], http://www.wobsta.de/
  / _ \ \/\/ /    PyX - High quality PostScript and PDF figures
 (_/ \_)_/\_/     with Python & TeX: visit http://pyx.sourceforge.net/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to