From: Fernando P. <Fer...@co...> - 2004-04-20 00:57:54
|
Hi all, I just installed PyX 0.6.2 on a clean system, but to a non-standard directory, using: python setup.py install --home=~/usr/local The installation went fine, and the lfs files (listed as data_files in setup.py) were correctly put in ~/usr/local/share/pyx. However, in usage, PyX won't find any of them, and I get error messages like: =========================================================================== In [4]: rho.coef_tree.draw_skeleton('foo') --------------------------------------------------------------------------- IOError Traceback (most recent call last) ? /home/fperez/research/code/mwadap/Function.py in __draw_skeleton_2d(self, fname, label, palette, fill) 489 r"$N_{nod}=%s, \epsilon=%1.1e, N_{blocks}=%s$" % 490 (self.nnod,self.cutoff,self.nkeys()), --> 491 [pyx.text.halign.center]) 492 493 # Generate eps file /home/fperez/usr/local/lib/python/pyx/canvas.py in text(self, x, y, atext, *args, **kwargs) 254 returns the inserted textbox""" 255 --> 256 return self.insert(self.texrunner.text(x, y, atext, *args, **kwargs)) 257 258 /home/fperez/usr/local/lib/python/pyx/text.py in text(self, x, y, expr, textattrs, texmessages) 1113 for i in range(lentextattrs): 1114 expr = textattrs[lentextattrs-1-i].apply(expr) -> 1115 self.execute(expr, self.defaulttexmessagesdefaultrun + self.texmessagesdefaultrun + texmessages) 1116 if self.texipc: 1117 if first: /home/fperez/usr/local/lib/python/pyx/text.py in execute(self, expr, texmessages) 861 raise IOError("file '%s' is not available or not readable. Available LaTeX font size files (*.lfs): %s" % (lfsname, lfsnames)) 862 else: --> 863 raise IOError("file '%s' is not available or not readable. No LaTeX font size files (*.lfs) available. Check your installation." % lfsname) 864 self.execute(lfsdef, []) 865 self.execute("\\normalsize%\n", []) IOError: file '10pt.lfs' is not available or not readable. No LaTeX font size files (*.lfs) available. Check your installation. =========================================================================== I've been able to solve the problem by hand, by copying the contents of ~/usr/local/share/pyx to ~/usr/local/lib/python/pyx/lfs. But this seems like an ugly solution to me. I don't know off-hand how to fix it, but somehow you guys will need to make the routine which searches for these files know where to look, even when the user installed to a different prefix. Regards, Fernando. ps. I'm loving pyx as it matures, keep up the good work! |