Ok Michael.
I'm running test.py from
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/PyX-0.9/test.py
As I haven't installed pyx
both with original file and with
filename = "psfonts.cmz" #"psfonts.map"
I have from terminal (nothing):
polifilo:/ andreavalle$ python /Library/Frameworks/Python.framework/
Versions/2.5/lib/python2.5/site-packages/PyX-0.9/test.py
" 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": ----
polifilo:/ andreavalle$
On 11 Apr 2007, at 20:46, Michael SCHINDLER wrote:
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
--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> [EMAIL PROTECTED]
--------------------------------------------------
I did this interview where I just mentioned that I read Foucault. Who
doesn't in university, right? I was in this strip club giving this
guy a lap dance and all he wanted to do was to discuss Foucault with
me. Well, I can stand naked and do my little dance, or I can discuss
Foucault, but not at the same time; too much information.
(Annabel Chong)
-------------------------------------------------------------------------
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