Opened 14 years ago

Closed 13 years ago

#22505 closed defect (fixed)

py26-pyx cannot find the File '10pt.lfs'

Reported by: mftsai.mftsai@… Owned by: stechert@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: py26-pyx

Description

After installing py26-pyx package on MacOSX 10.6.2, I found that, when I try the Hello World example, it encounters a problem of IOError. Here is the error message:

IOError: File '10pt.lfs' is not available or not readable. No LaTeX font size files (*.lfs) available. Check your installation.

Does anyone know how to fix it?? Thanks in advance.

Change History (3)

comment:1 Changed 14 years ago by blb@…

Owner: changed from macports-tickets@… to stechert@…
Port: py26-pyx added

I would guess that would be installed with texlive, maybe py26-pyx needs to be informed as to where the fonts are located?

comment:2 Changed 14 years ago by macports@…

This bug is caused by the installer copying the pyc files as well as the py files from the staging area, and then in postinstall doing a regex replace in the siteconfig.py to change the LFS path without triggering a recompile. Then when you ask python to import siteconfig it loads the byte-compiled pyc, which contains a compiled representation of the wrong path (in build/destrood/blah/blah/blah).

As a quick fix, just rm -f /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyx/siteconfig.pyc ; I don't know macports so I can't say what you need to do to the postinstall phase to make it right; I guess delete the pyc file and trigger a recompilation.

comment:3 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.