Pyx sounds just what I need! I have downloaded it but I am having
trouble installing. I used the second option
> python setup.py install
as it was implied that one did not need
> the kpathsea header and library files for this
However it is failing completely:
> [Bert:~/Documents/pythonstuff/PyX-0.4.1] vignaux% python setup.py install
> /sw/lib/python2.3/distutils/dist.py:227: UserWarning: Unknown distribution option: 'platform'
> running install
> running build
> running build_py
> running build_ext
> building 'pyx.pykpathsea._pykpathsea' extension
> gcc -Wno-long-double -no-cpp-precomp -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/sw/include/python2.3 -c pyx/pykpathsea/pykpathsea.c -o build/temp.darwin-6.6-PowerMacintosh-2.3/pyx/pykpathsea/pykpathsea.o
> pyx/pykpathsea/pykpathsea.c:20:31: kpathsea/tex-file.h: No such file or directory
> pyx/pykpathsea/pykpathsea.c:21:31: kpathsea/progname.h: No such file or directory
and a whole lot of similar error messages until:
> pyx/pykpathsea/pykpathsea.c:96: `kpse_program_text_format' undeclared (first use in this function)
> pyx/pykpathsea/pykpathsea.c:97: `kpse_program_binary_format' undeclared (first use in this function)
> pyx/pykpathsea/pykpathsea.c:98: `kpse_miscfonts_format' undeclared (first use in this function)
> error: command 'gcc' failed with exit status 1
It does appear to need kpathsea and library files. I am using XDarwin on
Mac OS X 10.2.x. Python version 2.3. This has latex (in the form of
What is my next step?
Prof G A Vignaux
School of Mathematical and Computing Sciences,
Victoria University, PO Box 600, Work: +64 4 463 5276
Wellington, NZ Home: +64 4 934 7851
Tony.Vignaux AT(mcs.vuw.ac.nz) Mobile: +64 21 89 7851
From: Michael Schindler <michael.schindler@ph...> - 2003-09-19 19:36:16
Dear Mr. Vignaux,
On 19.09.03, vignaux wrote:
> I have downloaded it but I am having
> trouble installing. I used the second option
> > python setup.py install
> as it was implied that one did not need
> >the kpathsea header and library files for this
> It does appear to need kpathsea and library files. I am using XDarwin on
> Mac OS X 10.2.x. Python version 2.3. This has latex (in the form of
Both is true. Unfortunately, at the moment setup.py uses the
c-extension kpathsea as the default. Then you need indeed some header
files and the kpathsea library. In the teTeX distribution,
they can be found in
Whether they are included in TeXShop is unclear to me.
If they the files are present, you should create a file "setup.cfg" in
the directory where setup.py resides, with the following content:
If this does not work, however, there is the fallback-solution that
uses the usual "kpsewhich" command which should be part of your
TeX-distribution. This tells PyX where the necessary TeX-files are.
In this case setup.py should not try to build the kpathsea extension.
Please remove the entry
Then, the command
python setup.py install
should work fine.
Best greetings from Germany,
"A mathematician is a device for turning coffee into theorems"