|
From: Orgun <am...@gm...> - 2013-01-28 18:21:10
|
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. |
|
From: Paul H. <pmh...@gm...> - 2013-01-28 18:26:39
|
On Mon, Jan 28, 2013 at 10:20 AM, Orgun <am...@gm...> wrote: > 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 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 > 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 > |
|
From: Orgun <am...@gm...> - 2013-01-28 18:40:25
|
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. |
|
From: Michael D. <md...@st...> - 2013-01-28 20:09:28
|
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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|
|
From: Sandro T. <san...@gm...> - 2013-01-28 20:18:52
|
On Mon, Jan 28, 2013 at 9:05 PM, Michael Droettboom <md...@st...> 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 |
|
From: Orgun <am...@gm...> - 2013-01-28 20:51:35
|
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] < ml-...@n5...> wrote: > On Mon, Jan 28, 2013 at 9:05 PM, Michael Droettboom <[hidden email]<http://user/SendEmail.jtp?type=node&node=40347&i=0>> > 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] <http://user/SendEmail.jtp?type=node&node=40347&i=1> > 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<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=40343&code=YW1icm9zY0BnbWFpbC5jb218NDAzNDN8LTExNDczMTA5Njg=> > . > 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: http://matplotlib.1069221.n5.nabble.com/Problems-installing-matplotlib-compiling-error-tp40343p40348.html Sent from the matplotlib - users mailing list archive at Nabble.com. |