473,732 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_C UBIC' was not declared in
this scope
src/ft2font.cpp:444 : error: 'FT_CURVE_TAG_C ONIC' was not declared in
this scope
src/ft2font.cpp:447 : error: 'FT_CURVE_TAG_O N' was not declared in this
scope
src/ft2font.cpp:487 : error: 'FT_CURVE_TAG_O N' was not declared in this
scope
src/ft2font.cpp:500 : error: 'FT_CURVE_TAG_C ONIC' was not declared in
this scope
src/ft2font.cpp:572 : error: 'FT_CURVE_TAG_C UBIC' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::set_te xt(const Py::Tuple&, const Py::Dict&)':
src/ft2font.cpp:983 : error: 'FT_KERNING_DEF AULT' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::get_ps _font_info(cons t Py::Tuple&)':
src/ft2font.cpp:142 8: error: 'PS_FontInfoRec ' was not declared in this
scope
src/ft2font.cpp:142 8: error: expected `;' before 'fontinfo'
src/ft2font.cpp:143 0: error: 'fontinfo' was not declared in this scope
src/ft2font.cpp:143 0: error: 'FT_Get_PS_Font _Info' was not declared in
this scope
src/ft2font.cpp: In function 'void initft2font()':
src/ft2font.cpp:188 4: error: 'FT_KERNING_DEF AULT' was not declared in
this scope
src/ft2font.cpp:188 5: error: 'FT_KERNING_UNF ITTED' was not declared in
this scope
src/ft2font.cpp:188 6: error: 'FT_KERNING_UNS CALED' was not declared in
this scope
src/ft2font.cpp:190 5: error: 'FT_LOAD_NO_AUT OHINT' was not declared in
this scope
src/ft2font.cpp:190 6: error: 'FT_LOAD_TARGET _NORMAL' was not declared
in this scope
src/ft2font.cpp:190 7: error: 'FT_LOAD_TARGET _LIGHT' was not declared
in this scope
src/ft2font.cpp:190 8: error: 'FT_LOAD_TARGET _MONO' was not declared in
this scope
src/ft2font.cpp:190 9: error: 'FT_LOAD_TARGET _LCD' was not declared in
this scope
src/ft2font.cpp:191 0: 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 3528
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_C UBIC' was not declared in
this scope
src/ft2font.cpp:444 : error: 'FT_CURVE_TAG_C ONIC' was not declared in
this scope
src/ft2font.cpp:447 : error: 'FT_CURVE_TAG_O N' was not declared in this
scope
src/ft2font.cpp:487 : error: 'FT_CURVE_TAG_O N' was not declared in this
scope
src/ft2font.cpp:500 : error: 'FT_CURVE_TAG_C ONIC' was not declared in
this scope
src/ft2font.cpp:572 : error: 'FT_CURVE_TAG_C UBIC' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::set_te xt(const Py::Tuple&, const Py::Dict&)':
src/ft2font.cpp:983 : error: 'FT_KERNING_DEF AULT' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::get_ps _font_info(cons t Py::Tuple&)':
src/ft2font.cpp:142 8: error: 'PS_FontInfoRec ' was not declared in this
scope
src/ft2font.cpp:142 8: error: expected `;' before 'fontinfo'
src/ft2font.cpp:143 0: error: 'fontinfo' was not declared in this scope
src/ft2font.cpp:143 0: error: 'FT_Get_PS_Font _Info' was not declared in
this scope
src/ft2font.cpp: In function 'void initft2font()':
src/ft2font.cpp:188 4: error: 'FT_KERNING_DEF AULT' was not declared in
this scope
src/ft2font.cpp:188 5: error: 'FT_KERNING_UNF ITTED' was not declared in
this scope
src/ft2font.cpp:188 6: error: 'FT_KERNING_UNS CALED' was not declared in
this scope
src/ft2font.cpp:190 5: error: 'FT_LOAD_NO_AUT OHINT' was not declared in
this scope
src/ft2font.cpp:190 6: error: 'FT_LOAD_TARGET _NORMAL' was not declared
in this scope
src/ft2font.cpp:190 7: error: 'FT_LOAD_TARGET _LIGHT' was not declared
in this scope
src/ft2font.cpp:190 8: error: 'FT_LOAD_TARGET _MONO' was not declared in
this scope
src/ft2font.cpp:190 9: error: 'FT_LOAD_TARGET _LCD' was not declared in
this scope
src/ft2font.cpp:191 0: 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.trait s: 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.ft2 font' 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_SOURC E" 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_C UBIC' was not declared in
this scope
src/ft2font.cpp:444 : error: 'FT_CURVE_TAG_C ONIC' was not declared in
this scope
src/ft2font.cpp:447 : error: 'FT_CURVE_TAG_O N' was not declared in this
scope
src/ft2font.cpp:487 : error: 'FT_CURVE_TAG_O N' was not declared in this
scope
src/ft2font.cpp:500 : error: 'FT_CURVE_TAG_C ONIC' was not declared in
this scope
src/ft2font.cpp:572 : error: 'FT_CURVE_TAG_C UBIC' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::set_te xt(const Py::Tuple&, const Py::Dict&)':
src/ft2font.cpp:983 : error: 'FT_KERNING_DEF AULT' was not declared in
this scope
src/ft2font.cpp: In member function 'Py::Object
FT2Font::get_ps _font_info(cons t Py::Tuple&)':
src/ft2font.cpp:142 8: error: 'PS_FontInfoRec ' was not declared in this
scope
src/ft2font.cpp:142 8: error: expected `;' before 'fontinfo'
src/ft2font.cpp:143 0: error: 'fontinfo' was not declared in this scope
src/ft2font.cpp:143 0: error: 'FT_Get_PS_Font _Info' was not declared in
this scope
src/ft2font.cpp: In function 'void initft2font()':
src/ft2font.cpp:188 4: error: 'FT_KERNING_DEF AULT' was not declared in
this scope
src/ft2font.cpp:188 5: error: 'FT_KERNING_UNF ITTED' was not declared in
this scope
src/ft2font.cpp:188 6: error: 'FT_KERNING_UNS CALED' was not declared in
this scope
src/ft2font.cpp:190 5: error: 'FT_LOAD_NO_AUT OHINT' was not declared in
this scope
src/ft2font.cpp:190 6: error: 'FT_LOAD_TARGET _NORMAL' was not declared
in this scope
src/ft2font.cpp:190 7: error: 'FT_LOAD_TARGET _LIGHT' was not declared
in this scope
src/ft2font.cpp:190 8: error: 'FT_LOAD_TARGET _MONO' was not declared in
this scope
src/ft2font.cpp:190 9: error: 'FT_LOAD_TARGET _LCD' was not declared in
this scope
src/ft2font.cpp:191 0: 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
1363
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 - under XP it runs just fine. I updated all the indicated packages except the agg package which I didn't really understand. So output with default setting is: on linux2 Type "help", "copyright", "credits" or "license" for more information.
3
4060
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 MatLab-like plots. I have a matplotlib.matlab-capable Python set-up running OK on my office desktop, which I obtained after downloading and installing a few more modules (numarray and numeric, I think). Now I get the following message about...
1
2433
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 how it compiles that's the problem. I am attempting to build it with the Tkinter backend as opposed to the GTK+ backend. Whenever I build, install, and then try to import I receive an error stating that my version of PyGTK needs to be updated....
4
2251
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 got the tarballs for python, numeric, numarray, matplotlib, ipython, wxpython and freetype-- which I think covers the various pre-requisites and post-requisites. One semi-obvious question is where to put the freetype library (the system version in...
1
3165
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 numpy running python setup.py install Finally I came to matplotlib, that for the installation requires the
0
2596
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 so first, i installed python 2.4. that works great! if i type 'python' in the terminal, it loads python 2.4. after that, i loaded and installed the matplotlib package from this
12
3429
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 installing python 2.5.1 and matplotlib 0.90 on my Windows XP machine. Here's an example of what I see:
3
4721
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 on other comps... i used py2exe... i wrote a setup.py whose contents are : from distutils.core import setup import py2exe import matplotlib setup(console=, options={ 'py2exe': { 'packages' : ,
2
3105
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 freetype as required by matplotlib, and the installation all went well. But when I try to plot even the simplest stuff, ex: plot()
0
9447
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9235
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9181
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.