Hello Andrea,

On 11.04.07, Andrea Valle wrote:
> In order to simplify I copied the PyX-0.9 folder in site-packages and  
> erased previous installs. No more compile attempts.
> 
> Here I am
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- 
> packages/PyX-0.9/
> 
> 
> In order to avoid other problems I'm trying PyX out of the box. So I  
> moved hello.py here:
> 
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- 
> packages/PyX-0.9/hello.py

Good. In the clean environment that you have now, please re-run the
test file I sent you, but make sure that you let it search for the
same psfonts-file as in hello.py: Here, you used "psfonts.cmz", while
the file as I sent it searches for "psfonts.map".

> My hello.py contains
> from pyx import *
> 
> text.set(fontmaps="psfonts.cmz")
> 
> c = canvas.canvas()
> c.text(0, 0, "Hello, world!")
> c.stroke(path.line(0, 0, 2, 0))
> c.writeEPSfile("hello")
> c.writePDFfile("hello")
> 
> 
> My version as form pkg-info
> 
> Metadata-Version: 1.0
> Name: PyX
> Version: 0.9
> 
> 
> here my traceback
> 
> Traceback (most recent call last):
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/PyX-0.9/hello.py", line 6, in <module>
>     c.text(0, 0, "Hello, world!")
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/PyX-0.9/pyx/canvas.py", line 308, 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-0.9/pyx/text.py", line 1197, in text
>     self.execute(expr, self.defaulttexmessagesdefaultrun +  
> self.texmessagesdefaultrun + texmessages)
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/PyX-0.9/pyx/text.py", line 897, in execute
>     self.fontmap = dvifile.readfontmap(self.fontmaps.split())
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/PyX-0.9/pyx/dvifile.py", line 386, in  
> readfontmap
>     raise RuntimeError("cannot find font mapping file '%s'" % filename)
> RuntimeError: cannot find font mapping file 'psfonts.cmz'
> 

Michael

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to