Opened 19 years ago
Closed 17 years ago
#4430 closed defect (fixed)
BUG: py-pyx-0.8 can't find latex fonts properly (Fails on Hello World)
Reported by: | tom@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | markd@… | |
Port: |
Description
Hello world appears to be having problems after the upgrade to 0.8. PyX can't find the appropriate latex font files. The "hello world" source is just:
from pyx import * c = canvas.canvas() c.text(0, 0, "Hello, world!") c.stroke(path.line(0, 0, 2, 0)) c.writeEPSfile("hello") c.writePDFfile("hello")
My output is:
$ python Python 2.4.1 (#1, Jul 5 2005, 12:17:35) [GCC 4.0.0 (Apple Computer, Inc. build 5026)] on darwin Type "help", "copyright", "credits" or "license" for more information.
from pyx import *
c = canvas.canvas() c.text(0, 0, "Hello, world!")
Traceback (most recent call last):
File "<stdin>", line 1, in ? File "/opt/local/lib/python2.4/site-packages/pyx/canvas.py", line 304, in text
return self.insert(self.texrunner.text(x, y, atext, *args, kwargs))
File "/opt/local/lib/python2.4/site-packages/pyx/text.py", line 1194, in text
self.execute(expr, self.defaulttexmessagesdefaultrun + self.texmessagesdefaultrun + texmessages)
File "/opt/local/lib/python2.4/site-packages/pyx/text.py", line 958, in execute
raise IOError("%sNo LaTeX font size files (*.lfs) available. Check your installation." % lfserror)
IOError: File '10pt.lfs' is not available or not readable. No LaTeX font size files (*.lfs) available. Check your installation.
c.stroke(path.line(0, 0, 2, 0)) c.writeEPSfile("hello")
Change History (6)
comment:1 Changed 19 years ago by mww@…
Owner: | changed from darwinports-bugs@… to mww@… |
---|
comment:2 Changed 18 years ago by markd@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
py-pyx is at 0.9 now. Since it has been awhile I'l close this. If the problem is still there you should open a new ticket on the new version.
comment:3 Changed 18 years ago by markd@…
Cc: | markd@… added |
---|
comment:4 Changed 17 years ago by twarge@…
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I find that PyX 0.9 has the same problems finding latex font files. In my experience, this package has never worked. Here's the minimal example to produce the error.
from pyx import * c = canvas.canvas() c.text(0, 0, "Hello, world!") c.writePDFfile("hello")
I deeply appreciate your consideration of this issue.
comment:5 Changed 17 years ago by twarge@…
Okay, sorry, I have it working now after recent updates. Don't know what changed. Please close bug and disregard previous note.
comment:6 Changed 17 years ago by markd@…
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Will do. Thanks.
please assign to maintainer