Hi Enda,

On 07.09.06, Enda Ridge wrote:
> I am trying to begin using Pyx 0.9 but encounter the error below when I run 
> the hello.py example. 
>  
> I'd be very grateful if you could help me get pyx to find the psfonts.map 
> file which is located on my local drive at:
> D:\localtexmf\dvips\config\psfonts.map
>  
> Thanks,
> E
>  
> ERROR:
>   File "c:\Python24\Lib\site-packages\pyx\canvas.py", line 308, in text
>     return self.insert(self.texrunner.text(x, y, atext, *args, **kwargs))
>   File "c:\Python24\Lib\site-packages\pyx\text.py", line 1197, in text
>     self.execute(expr, self.defaulttexmessagesdefaultrun + 
> self.texmessagesdefaultrun + texmessages)
>   File "c:\Python24\Lib\site-packages\pyx\text.py", line 897, in execute
>     self.fontmap = dvifile.readfontmap(self.fontmaps.split())
>   File "c:\Python24\Lib\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'

PyX is right in searching for this file. But PyX simply counts on the
infrastructure of your TeX installation, and this seems to not work
properly on your box. When you use PyX in the default configuration
(without compiling the libpkathsea extension module) PyX uses the
kpsewhich executable to find out the location of the files it needs
from your TeX installation. For that your TeX installation should come
with a kpsewhich executable. You need to be able to say "kpsewhich
psfonts.map" on your command line and get the position of the
corresponding file on your system. Can you try whether this already
failes?

Best,


André

-- 
by  _ _      _    Dr. André Wobst
   / \ \    / )   [EMAIL PROTECTED], http://www.wobsta.de/
  / _ \ \/\/ /    PyX - High quality PostScript and PDF figures
 (_/ \_)_/\_/     with Python & TeX: visit http://pyx.sourceforge.net/

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to