Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matplotlib-1.3.1 does not install #16002

Closed
darijgr opened this issue Mar 23, 2014 · 28 comments
Closed

matplotlib-1.3.1 does not install #16002

darijgr opened this issue Mar 23, 2014 · 28 comments

Comments

@darijgr
Copy link
Contributor

darijgr commented Mar 23, 2014

This breaks the upgrade to 6.2.beta5.

Logfile: https://www.dropbox.com/s/wmfrp13mnm148i1/matplotlib-1.3.1.log

System is Ubuntu 12.04.4 LTS in a virtualbox on a 64bit machine. Would upgrading help?

CC: @jasongrout @vbraun @kiwifb @jhpalmieri

Component: packages: standard

Keywords: install, package, matplotlib

Author: John Palmieri

Branch: bbffb65

Reviewer: François Bissey

Issue created by migration from https://trac.sagemath.org/ticket/16002

@darijgr darijgr added this to the sage-6.2 milestone Mar 23, 2014
@kiwifb
Copy link
Member

kiwifb commented Mar 23, 2014

comment:1

Hum...

building 'matplotlib.ft2font' extension
creating build/temp.linux-i686-2.7
creating build/temp.linux-i686-2.7/src
creating build/temp.linux-i686-2.7/CXX
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_ft2font_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/home/darij/gitsage/sage-5.13.beta1/local/lib/python2.7/site-packages/numpy/core/include -I/home/darij/gitsage/sage-5.13.beta1/local/include -I. -I/home/darij/gitsage/sage-5.13.beta1/local/include/freetype2 -I/home/darij/gitsage/sage-5.13.beta1/local/include/python2.7 -c src/ft2font.cpp -o build/temp.linux-i686-2.7/src/ft2font.o
In file included from src/ft2font.h:16:0,
                 from src/ft2font.cpp:3:
/home/darij/gitsage/sage-5.13.beta1/local/include/ft2build.h
:56:38: fatal error: freetype/config/ftheader.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

When you say upgrading, you mean from sage 5.13? Then yes definitely. Or was this upgraded in place numerous times?
It looks to me like there is cruft in your install:

/home/darij/gitsage/sage-5.13.beta1/local/include/ft2build.h

is not in this location in my sage install but in the freetype2 sub-folder. If you one in the this sub folder consider removing the one in local/include and try again.

@darijgr
Copy link
Contributor Author

darijgr commented Mar 23, 2014

comment:2

OK, I'm going to reinstall. I'm upgrading sage from 6.2beta4, but you're right in that this has been gathering cruft for ages and I should probably rebuild it from scratch.

@kiwifb
Copy link
Member

kiwifb commented Mar 23, 2014

comment:3

Certainly, but there may be something to fix in the upgrade process. The file I pointed out shouldn't be there and we may be able to do something about it. So I would very much like you to check there is another version in local/include/freetype2 and then remove the one in local/include and try again.

@darijgr
Copy link
Contributor Author

darijgr commented Mar 23, 2014

comment:4

Not sure what you mean...

darij@travis-virtualbox:~/gitsage/sage-5.13.beta1/local/include/freetype2$ ls
config      ftautoh.h   ftbzip2.h     ftcid.h     ftglyph.h  ftincrem.h  ftmac.h     ftotval.h   ftsizes.h   ftsystem.h  ftwinfnt.h  tttables.h
freetype.h  ftbbox.h    ftcache.h     fterrdef.h  ftgxval.h  ftlcdfil.h  ftmm.h      ftoutln.h   ftsnames.h  fttrigon.h  ftxf86.h    tttags.h
ft2build.h  ftbdf.h     ftcffdrv.h    fterrors.h  ftgzip.h   ftlist.h    ftmodapi.h  ftpfr.h     ftstroke.h  ftttdrv.h   t1tables.h  ttunpat.h
ftadvanc.h  ftbitmap.h  ftchapters.h  ftgasp.h    ftimage.h  ftlzw.h     ftmoderr.h  ftrender.h  ftsynth.h   fttypes.h   ttnameid.h

EDIT: Got it! Yes, it seems to build now.

@kiwifb
Copy link
Member

kiwifb commented Mar 23, 2014

comment:5

You have both "local/include/ft2build.h" and "local/include/freetype2/ft2build.h". The first one shouldn't be there and is probably old cruft. I want you to remove it and retry to install matplotlib 1.3.1.

@kiwifb
Copy link
Member

kiwifb commented Mar 23, 2014

comment:6

Didn't see your update. OK this now becomes a ticket to remove that files when you upgrade freetype.

@darijgr
Copy link
Contributor Author

darijgr commented Mar 23, 2014

comment:7

Thanks, Francois, for acting on this (strictly speaking non-)issue!

@jhpalmieri
Copy link
Member

Author: John Palmieri

@jhpalmieri
Copy link
Member

Commit: ab0970a

@jhpalmieri
Copy link
Member

Branch: u/jhpalmieri/ft2build

@jhpalmieri
Copy link
Member

comment:8

How about this as a fix: after freetype has been successfully installed, remove the old file ft2build.h?


New commits:

ab0970aRemove old version of ft2build.h

@jhpalmieri
Copy link
Member

New commits:

73a128aRemove old version of ft2build.h

@jhpalmieri
Copy link
Member

Changed commit from ab0970a to 73a128a

@jhpalmieri
Copy link
Member

Changed branch from u/jhpalmieri/ft2build to u/jhpalmieri/freetype

@kiwifb
Copy link
Member

kiwifb commented Mar 24, 2014

comment:10

I would do it before the install but in that case it is just a matter of taste. Can you bump the spkg because we want the thing to rebuild to remove the file before anyone gets hurt again.

@jhpalmieri
Copy link
Member

Changed branch from u/jhpalmieri/freetype to u/jhpalmieri/ft

@jhpalmieri
Copy link
Member

comment:11

Okay, I bumped the version number -- good point. By the way, I'm deleting the file after the install because if the installation fails, I don't want to break the old version.


New commits:

bbffb65Remove old version of ft2build.h

@jhpalmieri
Copy link
Member

Changed commit from 73a128a to bbffb65

@kiwifb
Copy link
Member

kiwifb commented Mar 24, 2014

comment:12

good point. positive that.

@vbraun
Copy link
Member

vbraun commented Mar 31, 2014

comment:13

reviewer names, kids ;)

@vbraun
Copy link
Member

vbraun commented Mar 31, 2014

Reviewer: François Bissey

@vbraun
Copy link
Member

vbraun commented Mar 31, 2014

Changed branch from u/jhpalmieri/ft to bbffb65

@kiwifb
Copy link
Member

kiwifb commented Mar 31, 2014

comment:15

Replying to @vbraun:

reviewer names, kids ;)

yeah I am bad at those :)

@kiwifb
Copy link
Member

kiwifb commented Mar 31, 2014

Changed commit from bbffb65 to none

@kcrisman
Copy link
Member

kcrisman commented Apr 2, 2014

comment:16

Ah, kiwifb - is this likely the problem I am having at on my ancient Mac? Though you are right that I'm not upgrading... and the message was

              freetype: no  [The C/C++ header for freetype2 (ft2build.h)
                        could not be found.  You may need to install the
                        development package.]

I can open a ticket for this otherwise, but eventually I'll try this version just on some very strange off-chance...

@kiwifb
Copy link
Member

kiwifb commented Apr 2, 2014

comment:17

I am fairly certain it isn't. It is very difficult to know what happened without going through the configuration step by step. I think it found an incorrect version of freetype but I am at a lose as to how it happens for you and not anyone else. You know the small revealing detail.

@ppurka
Copy link
Member

ppurka commented Apr 2, 2014

comment:18

Replying to @kcrisman:

Ah, kiwifb - is this likely the problem I am having at on my ancient Mac? Though you are right that I'm not upgrading... and the message was

              freetype: no  [The C/C++ header for freetype2 (ft2build.h)
                        could not be found.  You may need to install the
                        development package.]

I can open a ticket for this otherwise, but eventually I'll try this version just on some very strange off-chance...

freetype changed it's header files recently breaking many downstream packages. For example, the patch to gimp is here and shows clearly what changed.

@kcrisman
Copy link
Member

kcrisman commented Apr 2, 2014

comment:19

Thanks, ppurka. So are you saying that this is what happened? See #16047, where I think I have a lot more evidence you are right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants