Problems installing matplotlib - compiling error

Hi guy,

as I'm new to matplotlib I tried to install it following the instructions on
http://matplotlib.org/faq/installing_faq.html#source-install-from-git
<http://matplotlib.org/faq/installing_faq.html#source-install-from-git> .
After downloading and changing the directory properly I get the following
error:

building 'matplotlib.ft2font' extension
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -D_FORTIFY_SOURCE=2 -g
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security
-fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
-DPYCXX_PYTHON_2TO3=1 -I/usr/local/include -I/usr/include
-I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/freetype2
-I/usr/local/include -I/usr/include -I. -I/usr/include/python3.2mu -c
src/ft2font.cpp -o build/temp.linux-x86_64-3.2/src/ft2font.o
In file included from ./CXX/Extensions.hxx:37:0,
                 from src/ft2font.h:6,
                 from src/ft2font.cpp:3:
./CXX/WrapPython.h:58:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

I'm using Linux Mint Nadia 14.2 Kernel 3.5.0.17, Python 3.2.3 (Oct 19 2012)
and gcc 4.7.2. Numpy, Simpy & Scipy are up to date.

What did I do wrong?
I have to use python3 because every other task was written specifficly with
python3.

cheers,
Christian

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Problems-installing-matplotlib-compiling-error-tp40343.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Hi guy,

as I'm new to matplotlib I tried to install it following the instructions
on
http://matplotlib.org/faq/installing_faq.html#source-install-from-git
<http://matplotlib.org/faq/installing_faq.html#source-install-from-git&gt; .
After downloading and changing the directory properly I get the following
error:

building 'matplotlib.ft2font' extension
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -D_FORTIFY_SOURCE=2 -g
-fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security
-fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
-DPYCXX_PYTHON_2TO3=1 -I/usr/local/include -I/usr/include
-I/usr/lib/python3/dist-packages/numpy/core/include
-I/usr/include/freetype2
-I/usr/local/include -I/usr/include -I. -I/usr/include/python3.2mu -c
src/ft2font.cpp -o build/temp.linux-x86_64-3.2/src/ft2font.o
In file included from ./CXX/Extensions.hxx:37:0,
                 from src/ft2font.h:6,
                 from src/ft2font.cpp:3:
./CXX/WrapPython.h:58:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

This error leads me to think that you need the Python3 development headers.
$ sudo apt-get install python3-dev # from memory, so yeah

Let us know if that works.
-p

···

On Mon, Jan 28, 2013 at 10:20 AM, Orgun <ambrosc@...287...> wrote:

I'm using Linux Mint Nadia 14.2 Kernel 3.5.0.17, Python 3.2.3 (Oct 19 2012)
and gcc 4.7.2. Numpy, Simpy & Scipy are up to date.

What did I do wrong?
I have to use python3 because every other task was written specifficly with
python3.

cheers,
Christian

Thanks, that helped a lot! I don't know why the dev-package hasn't been
installed. That has been the first think I thought I did when re-installing
after my latest hardware change in December.

Thanks a lot. That saved my day.

Christian

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Problems-installing-matplotlib-compiling-error-tp40343p40345.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

As a shortcut, you can also install all of the build dependencies for a package (without installing the package itself) using:

    sudo apt-get build_dep python-matplotlib

Mike

···

On 01/28/2013 01:40 PM, Orgun wrote:

Thanks, that helped a lot! I don't know why the dev-package hasn't been
installed. That has been the first think I thought I did when re-installing
after my latest hardware change in December.

Thanks a lot. That saved my day.

Christian

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Problems-installing-matplotlib-compiling-error-tp40343p40345.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

small typo fix: the option name is 'build-dep'.

Cheers,

···

On Mon, Jan 28, 2013 at 9:05 PM, Michael Droettboom <mdroe@...86...> wrote:

    sudo apt-get build_dep python-matplotlib

--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

Hi,

yeah, during my system re-install I used the built-dep option
but maybe I was to busy to notice that I forgot the p3-dev’s. Now everything is running fine and the last two hours were enlighting.

Christian

···


A little learning never caused anyone’s head to explode.

No trees were killed in sending this message. However, a large number of electrons were seriously inconvenienced…

On Mon, Jan 28, 2013 at 9:20 PM, Sandro Tosi [via matplotlib] <[hidden email]> wrote:

On Mon, Jan 28, 2013 at 9:05 PM, Michael Droettboom <[hidden email]> wrote:

sudo apt-get build_dep python-matplotlib

small typo fix: the option name is ‘build-dep’.

Cheers,

Sandro Tosi (aka morph, morpheus, matrixhasu)

My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,

MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current

with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft

MVPs and experts. ON SALE this month only – learn more at:

http://p.sf.net/sfu/learnnow-d2d


Matplotlib-users mailing list

[hidden email]

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


If you reply to this email, your message will be added to the discussion below:

http://matplotlib.1069221.n5.nabble.com/Problems-installing-matplotlib-compiling-error-tp40343p40347.html

To unsubscribe from Problems installing matplotlib - compiling error, click here.

  [NAML](http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml)

View this message in context: Re: Problems installing matplotlib - compiling error

Sent from the matplotlib - users mailing list archive at Nabble.com.