Hi,

I am trying to setup the lates PyX 0.10 version on my mac (10.5.8)  (first
time user). I installed PyX and then ran the 'Hello world' program and got
and error stating that it can find the font mapping file 'psfonts.map'


Traceback (most recent call last):
  File "/Users/viralb/Documents/rectangle", line 4, in <module>
    c.text(0, 0, "Hello, world!")
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pyx/canvas.py",
line 309, in text
    return self.insert(self.texrunner.text(x, y, atext, *args, **kwargs))
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pyx/text.py",
line 1199, in text
    self.execute(expr, self.defaulttexmessagesdefaultrun +
self.texmessagesdefaultrun + texmessages)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pyx/text.py",
line 899, in execute
    self.fontmap = dvifile.readfontmap(self.fontmaps.split())
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pyx/dvifile.py",
line 386, in readfontmap
    raise RuntimeError("cannot find font mapping file '%s'" % filename)
RuntimeError: cannot find font mapping file 'psfonts.map'


I tried the different solutions by putting adding text.set
(fontmaps='psfonts.map') to the code but to no avail. As per this link about
a similar problem from an earlier user
http://www.mail-archive.com/[email protected]/msg00578.html
I ran the code with the following output...







 gf": ----
"                      pk": ----
"             bitmap font": ----
"                     tfm": ----
"                     afm": ----
"                    base": ----
"                     bib": ----
"                     bst": ----
"                     cnf": ----
"                    ls-R": ----
"                     fmt": ----
"                     map": ----
"                     mem": ----
"                      mf": ----
"                  mfpool": ----
"                     mft": ----
"                      mp": ----
"                  mppool": ----
"        MetaPost support": ----
"                     ocp": ----
"                     ofm": ----
"                     opl": ----
"                     otp": ----
"                     ovf": ----
"                     ovp": ----
"         graphics/figure": ----
"                     tex": ----
"TeX system documentation": ----
"                 texpool": ----
"      TeX system sources": ----
"       PostScript header": ----
"             Troff fonts": ----
"             type1 fonts": ----
"                      vf": ----
"            dvips config": ----
"                     ist": ----
"          truetype fonts": ----
"            type42 fonts": ----
"                   web2c": ----
"        other text files": ----
"      other binary files": ----
"              misc fonts": ----
"                     web": ----
"                    cweb": ----


This is where my problem deviates from the question in this mail archive as
the psfonts.map is not detected at all....It would be great if you could
help me locate the problem and solve it.

Thanks,

Viral
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to