473,394 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

matplotlib install error

I'm trying to install matplotlib and currently getting the below
error. I searched the group and google and couldn't find anything
similar... Any ideas?

Thanks in advance!

src/ft2font.cpp: In member function 'Py::Object
Glyph::get_path(FT_FaceRec_* const&)':
src/ft2font.cpp:441: error: 'FT_CURVE_TAG_CUBIC' was not declared in
this scope
src/ft2font.cpp:444: error: 'FT_CURVE_TAG_CONIC' was not declared in
this scope
src/ft2font.cpp:447: error: 'FT_CURVE_TAG_ON' was not declared in this
scope
src/ft2font.cpp:487: error: 'FT_CURVE_TAG_ON' was not declared in this
scope
src/ft2font.cpp:500: error: 'FT_CURVE_TAG_CONIC' was not declared in
this scope
src/ft2font.cpp:572: error: 'FT_CURVE_TAG_CUBIC' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::set_text(const Py::Tuple&, const Py::Dict&)':
src/ft2font.cpp:983: error: 'FT_KERNING_DEFAULT' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::get_ps_font_info(const Py::Tuple&)':
src/ft2font.cpp:1428: error: 'PS_FontInfoRec' was not declared in this
scope
src/ft2font.cpp:1428: error: expected `;' before 'fontinfo'
src/ft2font.cpp:1430: error: 'fontinfo' was not declared in this scope
src/ft2font.cpp:1430: error: 'FT_Get_PS_Font_Info' was not declared in
this scope
src/ft2font.cpp: In function 'void initft2font()':
src/ft2font.cpp:1884: error: 'FT_KERNING_DEFAULT' was not declared in
this scope
src/ft2font.cpp:1885: error: 'FT_KERNING_UNFITTED' was not declared in
this scope
src/ft2font.cpp:1886: error: 'FT_KERNING_UNSCALED' was not declared in
this scope
src/ft2font.cpp:1905: error: 'FT_LOAD_NO_AUTOHINT' was not declared in
this scope
src/ft2font.cpp:1906: error: 'FT_LOAD_TARGET_NORMAL' was not declared
in this scope
src/ft2font.cpp:1907: error: 'FT_LOAD_TARGET_LIGHT' was not declared
in this scope
src/ft2font.cpp:1908: error: 'FT_LOAD_TARGET_MONO' was not declared in
this scope
src/ft2font.cpp:1909: error: 'FT_LOAD_TARGET_LCD' was not declared in
this scope
src/ft2font.cpp:1910: error: 'FT_LOAD_TARGET_LCD_V' was not declared
in this scope
error: command 'gcc' failed with exit status 1
Feb 7 '08 #1
2 3509
John schrieb:
I'm trying to install matplotlib and currently getting the below
error. I searched the group and google and couldn't find anything
similar... Any ideas?

Thanks in advance!

src/ft2font.cpp: In member function 'Py::Object
Glyph::get_path(FT_FaceRec_* const&)':
src/ft2font.cpp:441: error: 'FT_CURVE_TAG_CUBIC' was not declared in
this scope
src/ft2font.cpp:444: error: 'FT_CURVE_TAG_CONIC' was not declared in
this scope
src/ft2font.cpp:447: error: 'FT_CURVE_TAG_ON' was not declared in this
scope
src/ft2font.cpp:487: error: 'FT_CURVE_TAG_ON' was not declared in this
scope
src/ft2font.cpp:500: error: 'FT_CURVE_TAG_CONIC' was not declared in
this scope
src/ft2font.cpp:572: error: 'FT_CURVE_TAG_CUBIC' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::set_text(const Py::Tuple&, const Py::Dict&)':
src/ft2font.cpp:983: error: 'FT_KERNING_DEFAULT' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::get_ps_font_info(const Py::Tuple&)':
src/ft2font.cpp:1428: error: 'PS_FontInfoRec' was not declared in this
scope
src/ft2font.cpp:1428: error: expected `;' before 'fontinfo'
src/ft2font.cpp:1430: error: 'fontinfo' was not declared in this scope
src/ft2font.cpp:1430: error: 'FT_Get_PS_Font_Info' was not declared in
this scope
src/ft2font.cpp: In function 'void initft2font()':
src/ft2font.cpp:1884: error: 'FT_KERNING_DEFAULT' was not declared in
this scope
src/ft2font.cpp:1885: error: 'FT_KERNING_UNFITTED' was not declared in
this scope
src/ft2font.cpp:1886: error: 'FT_KERNING_UNSCALED' was not declared in
this scope
src/ft2font.cpp:1905: error: 'FT_LOAD_NO_AUTOHINT' was not declared in
this scope
src/ft2font.cpp:1906: error: 'FT_LOAD_TARGET_NORMAL' was not declared
in this scope
src/ft2font.cpp:1907: error: 'FT_LOAD_TARGET_LIGHT' was not declared
in this scope
src/ft2font.cpp:1908: error: 'FT_LOAD_TARGET_MONO' was not declared in
this scope
src/ft2font.cpp:1909: error: 'FT_LOAD_TARGET_LCD' was not declared in
this scope
src/ft2font.cpp:1910: error: 'FT_LOAD_TARGET_LCD_V' was not declared
in this scope
error: command 'gcc' failed with exit status 1
Is thate really all of the error? It hints on a missing include, which
will be mentioned earlier.

Diez
Feb 7 '08 #2
Is thate really all of the error? It hints on a missing include, which
will be mentioned earlier.

Diez
platform: linux2

REQUIRED DEPENDENCIES
numpy: 1.0.3.1
freetype2: found, but unknown version (no pkg-config)

OPTIONAL BACKEND DEPENDENCIES
libpng: found, but unknown version (no pkg-config)
Tkinter: Tkinter: 50704, Tk: 8.3, Tcl: 8.3
wxPython: no
* wxPython not found
Gtk+: no
* Building for Gtk+ requires pygtk; you must
be able
* to "import gtk" in your build/install
environment
Qt: no
Qt4: no
Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
dateutil: matplotlib will provide
pytz: matplotlib will provide

OPTIONAL USETEX DEPENDENCIES
dvipng: no
ghostscript: 6.52
latex: 3.14159
pdftops: 1.00

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
configobj: matplotlib will provide
enthought.traits: matplotlib will provide

[Edit setup.cfg to suppress the above messages]
================================================== ==========================
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc -build/lib.linux-
i686-2.5/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf -build/lib.linux-
i686-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib.ft2font' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-
prototypes -fPIC -I/usr/local/include -I/usr/include -I. -I/usr/local/
include/freetype2 -I/usr/include/freetype2 -I./freetype2 -I/data1/
szscm1/usr/local/include/python2.5 -c src/ft2font.cpp -o build/
temp.linux-i686-2.5/src/ft2font.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
In file included from /data1/szscm1/usr/local/include/python2.5/
Python.h:8,
from ./CXX/WrapPython.h:47,
from ./CXX/Extensions.hxx:48,
from src/ft2font.h:18,
from src/ft2font.cpp:2:
/data1/szscm1/usr/local/include/python2.5/pyconfig.h:932:1: warning:
"_POSIX_C_SOURCE" redefined
In file included from /data1/qzcpfl/gcc-build/lib/gcc/i686-pc-linux-
gnu/4.2.1/../../../../include/c++/4.2.1/i686-pc-linux-gnu/bits/
os_defines.h:44,
from /data1/qzcpfl/gcc-build/lib/gcc/i686-pc-linux-
gnu/4.2.1/../../../../include/c++/4.2.1/i686-pc-linux-gnu/bits/c+
+config.h:41,
from /data1/qzcpfl/gcc-build/lib/gcc/i686-pc-linux-
gnu/4.2.1/../../../../include/c++/4.2.1/iosfwd:44,
from /data1/qzcpfl/gcc-build/lib/gcc/i686-pc-linux-
gnu/4.2.1/../../../../include/c++/4.2.1/ios:43,
from /data1/qzcpfl/gcc-build/lib/gcc/i686-pc-linux-
gnu/4.2.1/../../../../include/c++/4.2.1/istream:44,
from /data1/qzcpfl/gcc-build/lib/gcc/i686-pc-linux-
gnu/4.2.1/../../../../include/c++/4.2.1/sstream:44,
from src/ft2font.cpp:1:
/usr/include/features.h:131:1: warning: this is the location of the
previous definition
src/ft2font.cpp: In member function 'Py::Object
Glyph::get_path(FT_FaceRec_* const&)':
src/ft2font.cpp:441: error: 'FT_CURVE_TAG_CUBIC' was not declared in
this scope
src/ft2font.cpp:444: error: 'FT_CURVE_TAG_CONIC' was not declared in
this scope
src/ft2font.cpp:447: error: 'FT_CURVE_TAG_ON' was not declared in this
scope
src/ft2font.cpp:487: error: 'FT_CURVE_TAG_ON' was not declared in this
scope
src/ft2font.cpp:500: error: 'FT_CURVE_TAG_CONIC' was not declared in
this scope
src/ft2font.cpp:572: error: 'FT_CURVE_TAG_CUBIC' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::set_text(const Py::Tuple&, const Py::Dict&)':
src/ft2font.cpp:983: error: 'FT_KERNING_DEFAULT' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::get_ps_font_info(const Py::Tuple&)':
src/ft2font.cpp:1428: error: 'PS_FontInfoRec' was not declared in this
scope
src/ft2font.cpp:1428: error: expected `;' before 'fontinfo'
src/ft2font.cpp:1430: error: 'fontinfo' was not declared in this scope
src/ft2font.cpp:1430: error: 'FT_Get_PS_Font_Info' was not declared in
this scope
src/ft2font.cpp: In function 'void initft2font()':
src/ft2font.cpp:1884: error: 'FT_KERNING_DEFAULT' was not declared in
this scope
src/ft2font.cpp:1885: error: 'FT_KERNING_UNFITTED' was not declared in
this scope
src/ft2font.cpp:1886: error: 'FT_KERNING_UNSCALED' was not declared in
this scope
src/ft2font.cpp:1905: error: 'FT_LOAD_NO_AUTOHINT' was not declared in
this scope
src/ft2font.cpp:1906: error: 'FT_LOAD_TARGET_NORMAL' was not declared
in this scope
src/ft2font.cpp:1907: error: 'FT_LOAD_TARGET_LIGHT' was not declared
in this scope
src/ft2font.cpp:1908: error: 'FT_LOAD_TARGET_MONO' was not declared in
this scope
src/ft2font.cpp:1909: error: 'FT_LOAD_TARGET_LCD' was not declared in
this scope
src/ft2font.cpp:1910: error: 'FT_LOAD_TARGET_LCD_V' was not declared
in this scope
error: command 'gcc' failed with exit status 1
Feb 8 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mathias | last post by:
Dear NG, I need to draw a few images in the same window and found matplotlib to be a very nice tool for my needs (thanks for the hint!). But I have trouble installing matplotlib on RedHat9 -...
3
by: Dr. Colombes | last post by:
On my home laptop computer, I'm trying to install the appropriate modules so that Python version 2.3.3 and IDLE version 1.0.2 (with an "import matplotlib.matlab" statement) can produce nice...
1
by: Kenneth Miller | last post by:
Hello All, I need a python module to do real time graphs so I chose Matplotlib. I am trying to compile matplotlib at the moment and I have some problems, well not really. It compiles fine, it's...
4
by: Matt Feinstein | last post by:
Hi all-- I'm planning to try to do a completely local install of matplotlib (in Fedora Core 1)-- the system administrator isn't going to stop me-- but he isn't going to cooperate either. I've...
1
by: cesco | last post by:
Hi, I wanted to install python, numpy and matplotlib on Linux Ubuntu. I installed python with the following commands ../configure --enable-unicode=ucs4 make make install and then I installed...
0
by: spross | last post by:
hi all i have to use matplotlib on mac os x. on the official site of matplotlib, i found a link to precompiled python packages for mac os x: http://pythonmac.org/packages/py24-fat/index.html ...
12
by: orangeDinosaur | last post by:
Hi, I am exploring the possibility of using python as a replacement of MATLAB when I leave school. So, I've been playing with matplotlib and have run into some weird behavior after recently...
3
by: vajratkarviraj | last post by:
i hav python2.5, matplotlib0.90.1, and py2exe for python 2.5 all on windows xp... i hav a python program(letsc.py) which uses the matplotlib package... and i want 2 make an exe of it for distribution...
2
by: Magdoll | last post by:
Has anyone run into the same problem I have? I used to run matplotlib with Python2.5 and everything worked fine. Now I use Python2.6, and everything falls apart. I installed numpy, libpng, and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.