|
From: SourceForge.net <no...@so...> - 2005-06-12 02:17:52
|
Support Requests item #1218983, was opened at 2005-06-11 19:17 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=442887&aid=1218983&group_id=45430 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Submitted By: John Owens (john_owens) Assigned to: Nobody/Anonymous (nobody) Summary: compile error with graphs/minimal example? Initial Comment: I'm trying to compile a PyX program (first time). I have one based on graphs/minimal: #!/usr/bin/env python from pyx import * g = graph.graphxy(width=8) g.plot(graph.data.file("historical-fp-performance.dat", x=1, y=2)) g.writeEPSfile("historical-fp-performance") after running "python setup.py install" (I did enable the kpathsea build as well). This is on python 2.3.5 on OS X 10.4.1. I have tried this with both PyX 0.7.1 as well as the CVS version (trace below is for the CVS version). Error trace follows, then an error trace from "make" in the manual directory. Help? Traceback (most recent call last): File "./historical-fp-performance.py", line 6, in ? g.writeEPSfile("historical-fp-performance") File "/System/Library/Frameworks/Python.framework/Versions/ 2.3/lib/python2.3/site-packages/pyx/canvas.py", line 364, in writeEPSfile document.document([document.page(self, **kwargs)]).writeEPSfile(filename) File "/System/Library/Frameworks/Python.framework/Versions/ 2.3/lib/python2.3/site-packages/pyx/document.py", line 131, in writeEPSfile pswriter.epswriter(self, filename, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/ 2.3/lib/python2.3/site-packages/pyx/pswriter.py", line 237, in __init__ bbox = canvas.bbox() File "/System/Library/Frameworks/Python.framework/Versions/ 2.3/lib/python2.3/site-packages/pyx/graph/graph.py", line 445, in bbox self.finish() File "/System/Library/Frameworks/Python.framework/Versions/ 2.3/lib/python2.3/site-packages/pyx/graph/graph.py", line 342, in finish self.domethods[0]() File "/System/Library/Frameworks/Python.framework/Versions/ 2.3/lib/python2.3/site-packages/pyx/graph/graph.py", line 275, in dolayout self.axes[key].create(self.texrunner) File "/System/Library/Frameworks/Python.framework/Versions/ 2.3/lib/python2.3/site-packages/pyx/graph/axis/axis.py", line 518, in create self.canvas = self.axis.create(self.data, self.positioner, graphtexrunner, self.errorname) File "/System/Library/Frameworks/Python.framework/Versions/ 2.3/lib/python2.3/site-packages/pyx/graph/axis/axis.py", line 205, in create self.painter.paint(canvas, variants[0], self, positioner) File "/System/Library/Frameworks/Python.framework/Versions/ 2.3/lib/python2.3/site-packages/pyx/graph/axis/painter.py", line 189, in paint t.temp_labelbox = canvas.texrunner.text_pt(t.temp_x_pt, t.temp_y_pt, t.label, labelattrs) File "/System/Library/Frameworks/Python.framework/Versions/ 2.3/lib/python2.3/site-packages/pyx/text.py", line 1171, in text_pt return self.text(x * unit.t_pt, y * unit.t_pt, expr, *args, **kwargs) File "/System/Library/Frameworks/Python.framework/Versions/ 2.3/lib/python2.3/site-packages/pyx/text.py", line 1153, in text self.execute(expr, self.defaulttexmessagesdefaultrun + self.texmessagesdefaultrun + texmessages) File "/System/Library/Frameworks/Python.framework/Versions/ 2.3/lib/python2.3/site-packages/pyx/text.py", line 851, in execute self.fontmap = dvifile.readfontmap(self.fontmaps.split()) File "/System/Library/Frameworks/Python.framework/Versions/ 2.3/lib/python2.3/site-packages/pyx/dvifile.py", line 534, in readfontmap fm = fontmapping(line) File "/System/Library/Frameworks/Python.framework/Versions/ 2.3/lib/python2.3/site-packages/pyx/dvifile.py", line 474, in __init__ if token.startswith("<"): AttributeError: 'NoneType' object has no attribute 'startswith' john-owens-powerbook-g4-15:~/Documents/src/pyx/manual jowens $ make python -c "import sys;sys.path[:0]=[\..\];import pyx.version;print pyx.version.version+'%'" > pyxversion.tex python -c "import sys;sys.path[:0]=[\..\];import pyx.version;print pyx.version.date+'%'" > pyxdate.tex export PYTHONPATH=/Users/jowens/Documents/src/pyx/ manual/.. ; python arrows.py Traceback (most recent call last): File "arrows.py", line 7, in ? text.preamble(r"\renewcommand{\familydefault}{\ttdefault}") File "/Users/jowens/Documents/src/pyx/pyx/text.py", line 1118, in preamble self.execute(expr, texmessages) File "/Users/jowens/Documents/src/pyx/pyx/text.py", line 851, in execute self.fontmap = dvifile.readfontmap(self.fontmaps.split()) File "/Users/jowens/Documents/src/pyx/pyx/dvifile.py", line 534, in readfontmap fm = fontmapping(line) File "/Users/jowens/Documents/src/pyx/pyx/dvifile.py", line 474, in __init__ if token.startswith("<"): AttributeError: 'NoneType' object has no attribute 'startswith' make: *** [arrows.eps] Error 1 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=442887&aid=1218983&group_id=45430 |