Menu

#3 Cannot plot if TeX Live is manually installed

closed-invalid
nobody
None
5
2014-08-14
2010-11-28
Anonymous
No

I'm not able to plot with pyxplot package provided by Ubuntu Maverick (version 0.8.1):

pyxplot> plot sin(x)
Internal Error: dvi file does not exist!

I cannot plot also with Debian Sid package (version 0.8.3), error message is the same.
Building from source I get a different error message:

pyxplot> plot sin(x)
Internal Error: Could not find TFM file

Discussion

  • Zoltán Vörös

    Zoltán Vörös - 2010-11-28

    I believe, both of these error messages are related to the fact that LaTeX is not installed on your system, or if it is, it is not at the standard place. Ubuntu doesn't ship with LaTeX, you have to add that by hand.

     
  • Anonymous

    Anonymous - 2010-11-28

    I have TeX Live 2010 installed fromt ctan.

     

    Last edit: Anonymous 2015-12-25
  • Anonymous

    Anonymous - 2010-11-28

    How can I make pyxplot know what is LaTeX path? I succeeded in building pyxplot, configuration was successful, but it seems pyxplot is not able to find LaTeX.

     
  • Anonymous

    Anonymous - 2010-12-18
    • summary: Cannot plot in Ubuntu --> Cannot plot if TeX Live is manually installed
     
  • Dominic Ford

    Dominic Ford - 2011-01-10

    PyXPlot detects the path to LaTeX using the library libkpathsea, which is a part of TeX. As a fallback option, since this library is quite hard to come by under MacOS, PyXPlot uses shell command kpsewhich, which should be shipped as a part of any LaTeX install.

    PyXPlot requires access to various internal LaTeX datafiles which are frequently not shipped with minimal texlive installations. For example, TFM files provide data on the dimensions of characters and are needed to get alignment right. The error messages you are seeing are indicating that some of these datafiles are not present in your LaTeX install and that you need a more complete installation. Under the latest LTS Ubuntu, 10.04, the following packages are required IN ADDITION to the core texlive package:

    texlive-latex-extra, texlive-latex-recommended, texlive-fonts-recommended, texlive-fonts-extra

     
  • Anonymous

    Anonymous - 2011-01-10

    Thank you for your response!

    I have both the library libkpathsea and kpsewhich (they passed configure checks when I built pyxplot from source).

    I don't use Ubuntu packages for TeX Live but I've downloaded it from http://www.tug.org/texlive/ and use a FULL installation scheme, all packages of TeX Live are installed.

     
  • Dominic Ford

    Dominic Ford - 2011-01-11

    In svn 998, I've made the error message about missing TFM files a little more informative, so that it should tell you the name of the file that it can't find. Would you mind trying again with the new svn version? The problem won't be fixed, but we'll know which font is causing the issue. If the file is foo.tfm, then in summary, the problem is that 'kpsewhich foo.tfm' isn't finding a path to that particular tfm file.

     
  • Anonymous

    Anonymous - 2011-01-11

    That's the new error message:

    pyxplot> plot sin(x)
    Internal Error: Could not find TFM file 'cmbx10.tfm'. You may be able to fix this with a more complete installation of tex.

    but the file is present:

    $ locate cmbx10.tfm
    /usr/local/texlive/2010/texmf-dist/fonts/tfm/public/cm/cmbx10.tfm
    /usr/local/texlive/2010/texmf-dist/fonts/tfm/public/cmcyr/kcmbx10.tfm
    /usr/local/texlive/2010/texmf-dist/fonts/tfm/public/cmcyr/wcmbx10.tfm
    /usr/local/texlive/2010/texmf-dist/fonts/tfm/public/cmcyr/xcmbx10.tfm
    /usr/local/texlive/2010/texmf-dist/fonts/tfm/public/cmcyr/ycmbx10.tfm

     
  • Dominic Ford

    Dominic Ford - 2011-01-13

    This is almost certainly a bug with TeX rather than PyXPlot. A useful test you can do is to type 'kpsewhich cmbx10.tfm" at a shell prompt. If that does not output the path to this tfm file, then that is in itself a bug in TeX. If that does output the path, then there is a temporary hack which will make PyXPlot work.

    In the configure script, replace line 309 (which tests for the header file kpathsea/kpathsea.h) with "if false". This means that the test for libkpathsea will always fail, and PyXPlot will fall back on using the shell kpsewhich command instead (which you've just shown to work).

    If that temporary hack solves your problem, it still leaves the question of why libkpathsea isn't returning useful data to PyXPlot. Given that the kpsewhich command is simply a wrapper for libkpathsea, the only possibility that I can think of is that you might have an old copy of the library floating around from a previous install of TeX, whilst your kpsewhich binary relates to the new install. As regards PyXPlot, it seems hard to see what more we can do if TeX's own resource-finding mechanism tells us the file isn't present.

     
  • Anonymous

    Anonymous - 2011-01-13

    You are right, I have libkpathsea package provided from Ubuntu. Its version is 2009-7 (see http://packages.ubuntu.com/maverick/libkpathsea5\), while my TeX Live distribution is 2010. kpsewhich returns the right path:

    $ kpsewhich cmbx10.tfm
    /usr/local/texlive/2010/texmf-dist/fonts/tfm/public/cm/cmbx10.tfm

    and your hack fixes the problem, so I'm going to close this bug as invalid. Thank you!

     
  • Nobody/Anonymous

    QYXr3V <a href="http://dqjgmrmqtufk.com/">dqjgmrmqtufk</a>, [url=http://qvypuwfydmsx.com/]qvypuwfydmsx[/url], [link=http://fafqepleulqw.com/]fafqepleulqw[/link], http://oltgaaiupgma.com/

     
  • Nobody/Anonymous

    Wow! This can be one particular of the most useful blogs We have ever arrive across on this subject. Basically Wonderful. I am also a specialist in this topic so I can understand your effort.
    [url=http://paulsmithshirts.weebly.com/]Paul Smith Shirts[/url]
    <a href="http://paulsmithshirts.weebly.com/" title="Paul Smith Shirts">Paul Smith Shirts</a>

     
  • Nobody/Anonymous

    Definitely, what a splendid website and educative posts, I definitely will bookmark your blog.All the Best!
    where get inexpensive Gucci Outlet http://messengergucci.tumblr.com/

     
  • Nobody/Anonymous

    I would like to express appreciation to the writer for bailing me out of such a condition. After checking through the the net and getting recommendations which are not pleasant, I figured my entire life was gone. Living without the presence of solutions to the problems you have solved by way of your good short article is a critical case, and those which might have negatively damaged my entire career if I hadn't noticed your web site. Your competence and kindness in dealing with all the details was important. I'm not sure what I would've done if I hadn't discovered such a stuff like this. I can at this time look forward to my future. Thanks a lot very much for this professional and results-oriented help. I won't think twice to refer your web page to anyone who wants and needs recommendations on this subject.
    gw2 gold http://www.guildwars2star.com

     
  • Nobody/Anonymous

    I found the products to be a great deal. The Lida lida daidaihua makes me less hungry and the fat burn is helping me discard my flab. The instructions that came with it told me that getting my eating in hand was necessary for a winning approach. I really took that to heart and have owned a lot more discipline when I am eating and the hoodia makes all that easier. I am doing sit ups and taking the products every day and so far, My flab is disappearing. I dont own a working scale but most likely that things are improving podedsja.
    2 days diet http://www.2daydietbase.com/japan-lingzhi-2-day-diet-p-8.html

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.