[matplotlib-devel] getting error: command 'gcc' failed with exit status 1 while installing matplotlib in CentOS

2013-05-06 Thread rad

I am using the virtualenvwrapper and am installing this in a new virtualenv.
I also tried installing it locally but failed with the same error:

/home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:1594:
warning: ‘int _import_array()’ defined but not used

error: command 'gcc' failed with exit status 1


Command /home/webalert/.virtualenvs/mandala/bin/python -c "import
setuptools;__file__='/home/webalert/.virtualenvs/mandala/build/matplotlib/setup.py';exec(compile(open(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" install --record
/tmp/pip-aybCcz-record/install-record.txt
--single-version-externally-managed --install-headers
/home/webalert/.virtualenvs/mandala/include/site/python2.6 failed with error
code 1 in /home/webalert/.virtualenvs/mandala/build/matplotlib
Storing complete log in /home/webalert/.pip/pip.log

And from the pip.log :

   status = self.run(options, args)
  File
"/usr/lib/python2.6/site-packages/pip-1.3.1-py2.6.egg/pip/commands/install.py",
line 271, in run
requirement_set.install(install_options, global_options,
root=options.root_path)
  File "/usr/lib/python2.6/site-packages/pip-1.3.1-py2.6.egg/pip/req.py",
line 1185, in install
requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/pip-1.3.1-py2.6.egg/pip/req.py",
line 592, in install
cwd=self.source_dir, filter_stdout=self._filter_install,
show_stdout=False)
  File "/usr/lib/python2.6/site-packages/pip-1.3.1-py2.6.egg/pip/util.py",
line 662, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/python -c "import
setuptools;__file__='/tmp/pip-build-webalert/matplotlib/setup.py';exec(compile(open(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" install --record
/tmp/pip-AnrXxv-record/install-record.txt
--single-version-externally-managed failed with error code 1 in
/tmp/pip-build-webalert/matplotlib


I tried to install "Development Tools", and gcc: yum install gcc-c++
compat-gcc-32 compat-gcc-32-c++

This did not resolve the issue. Is the problem an incompatible version of
numpy? Any help would be appreciated.




--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/getting-error-command-gcc-failed-with-exit-status-1-while-installing-matplotlib-in-CentOS-tp41007.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.

--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] getting error: command 'gcc' failed with exit status 1 while installing matplotlib in CentOS

2013-05-06 Thread rad
Also when installing it locally NOT using pip, it worked

sudo yum install python-matplotlib


I do want to install it into my virtualenv however.



--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/getting-error-command-gcc-failed-with-exit-status-1-while-installing-matplotlib-in-CentOS-tp41007p41008.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.

--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] getting error: command 'gcc' failed with exit status 1 while installing matplotlib in CentOS

2013-05-06 Thread Michael Droettboom
On 05/06/2013 01:20 PM, rad wrote:
> I am using the virtualenvwrapper and am installing this in a new virtualenv.
> I also tried installing it locally but failed with the same error:
>
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:1594:
> warning: ‘int _import_array()’ defined but not used
>
> error: command 'gcc' failed with exit status 1

It's very odd that gcc is quitting with an error but only emitting a 
warning.  Can you include the gcc command that was run (it should be a 
long line immediately above what you've excerpted here).

>
> 
> Command /home/webalert/.virtualenvs/mandala/bin/python -c "import
> setuptools;__file__='/home/webalert/.virtualenvs/mandala/build/matplotlib/setup.py';exec(compile(open(__file__).read().replace('\r\n',
> '\n'), __file__, 'exec'))" install --record
> /tmp/pip-aybCcz-record/install-record.txt
> --single-version-externally-managed --install-headers
> /home/webalert/.virtualenvs/mandala/include/site/python2.6 failed with error
> code 1 in /home/webalert/.virtualenvs/mandala/build/matplotlib
> Storing complete log in /home/webalert/.pip/pip.log
>
> And from the pip.log :
>
> status = self.run(options, args)
>File
> "/usr/lib/python2.6/site-packages/pip-1.3.1-py2.6.egg/pip/commands/install.py",
> line 271, in run
>  requirement_set.install(install_options, global_options,
> root=options.root_path)
>File "/usr/lib/python2.6/site-packages/pip-1.3.1-py2.6.egg/pip/req.py",
> line 1185, in install
>  requirement.install(install_options, global_options, *args, **kwargs)
>File "/usr/lib/python2.6/site-packages/pip-1.3.1-py2.6.egg/pip/req.py",
> line 592, in install
>  cwd=self.source_dir, filter_stdout=self._filter_install,
> show_stdout=False)
>File "/usr/lib/python2.6/site-packages/pip-1.3.1-py2.6.egg/pip/util.py",
> line 662, in call_subprocess
>  % (command_desc, proc.returncode, cwd))
> InstallationError: Command /usr/bin/python -c "import
> setuptools;__file__='/tmp/pip-build-webalert/matplotlib/setup.py';exec(compile(open(__file__).read().replace('\r\n',
> '\n'), __file__, 'exec'))" install --record
> /tmp/pip-AnrXxv-record/install-record.txt
> --single-version-externally-managed failed with error code 1 in
> /tmp/pip-build-webalert/matplotlib

I have no idea what this means, but it looks pretty internal to pip and 
setuptools.  Does pip work to install other packages?

>
>
> I tried to install "Development Tools", and gcc: yum install gcc-c++
> compat-gcc-32 compat-gcc-32-c++
>
> This did not resolve the issue. Is the problem an incompatible version of
> numpy? Any help would be appreciated.

What version of Numpy do you have installed?

Mike

>
>
>
>
> --
> View this message in context: 
> http://matplotlib.1069221.n5.nabble.com/getting-error-command-gcc-failed-with-exit-status-1-while-installing-matplotlib-in-CentOS-tp41007.html
> Sent from the matplotlib - devel mailing list archive at Nabble.com.
>
> --
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1
> ___
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] getting error: command 'gcc' failed with exit status 1 while installing matplotlib in CentOS

2013-05-06 Thread rad
I was able to install everything with pip except for sqlite and matplotlib.

Downloading/unpacking matplotlib
  Downloading matplotlib-1.2.1.tar.gz (38


Python 2.6.6 (r266:84292, Feb 22 2013, 00:00:18) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.__version__
'1.7.1'
>>> 

This here is the complete error message:






































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































Re: [matplotlib-devel] getting error: command 'gcc' failed with exit status 1 while installing matplotlib in CentOS

2013-05-06 Thread Michael Droettboom
It looks like you don't have the freetype development headers installed.

Try --

   yum install freetype-devel

Or as a shortcut to get all of the build dependencies installed:

   yum-builddep python-matplotlib

Mike

On 05/06/2013 05:01 PM, rad wrote:
> I was able to install everything with pip except for sqlite and matplotlib.
>
> Downloading/unpacking matplotlib
>Downloading matplotlib-1.2.1.tar.gz (38
>
>
> Python 2.6.6 (r266:84292, Feb 22 2013, 00:00:18)
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
 import numpy
 numpy.__version__
> '1.7.1'
> This here is the complete error message:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>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