Quantcast

failed matplotlib build

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

failed matplotlib build

Aleksander Schwarzenberg-Czerny
Dear matplotlib Pundits,
I am trying to install matplotlib-0.83.2 on my FedoraCore3 linux.
It seems I got installed all required packages (including pygtk2 and gtk2)
and the corresponding devel packages. After running
python setup.py build
I got many messages, terminated with the following error message:
++/3.4.4/functional:54,
                 from src/_transforms.cpp:1:
/usr/include/features.h:150:1: warning: this is the location of the
previous definition
src/_transforms.cpp:8:34: Numeric/arrayobject.h: No such file or directory
src/_transforms.cpp: In member function `Py::Object
Bbox::update_numerix(const Py::Tuple&)':
src/_transforms.cpp:436: error: `PyArrayObject' undeclared (first use this
function)
src/_transforms.cpp:436: error: (Each undeclared identifier is reported
only once for each function it appears in.)
...
src/_transforms.cpp:1974: error: `import_array' undeclared (first use this
function)
error: command 'gcc' failed with exit status 1

Do I miss some required package?

Alex Schwarzenberg-Czerny



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: failed matplotlib build

Robert Kern
Aleksander Schwarzenberg-Czerny wrote:

> Dear matplotlib Pundits,
> I am trying to install matplotlib-0.83.2 on my FedoraCore3 linux.
> It seems I got installed all required packages (including pygtk2 and gtk2)
> and the corresponding devel packages. After running
> python setup.py build
> I got many messages, terminated with the following error message:
> ++/3.4.4/functional:54,
>                  from src/_transforms.cpp:1:
> /usr/include/features.h:150:1: warning: this is the location of the
> previous definition
> src/_transforms.cpp:8:34: Numeric/arrayobject.h: No such file or directory

> Do I miss some required package?

Numeric.

http://numeric.scipy.org

--
Robert Kern
[hidden email]

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: failed matplotlib build

Fernando Perez-2
In reply to this post by Aleksander Schwarzenberg-Czerny
Aleksander Schwarzenberg-Czerny wrote:

> src/_transforms.cpp:8:34: Numeric/arrayobject.h: No such file or directory

> Do I miss some required package?

First, check whether you actually have numeric installed:

planck[python]> python -c 'import Numeric;print Numeric.__version__'
23.7

If that works, it means that you have installed the Numeric headers in some
non-standard location.  On my system, they live in:

planck[python]> locate arrayobject.h
/usr/include/python2.3/Numeric/arrayobject.h


I believe by default, distutils adds automatically /path/to/include/python to
the include file search path (via -I), but if you've installed Numeric in some
non-standard location, that automatic search may fail.  I don't see
immediately a way to tell distutils to add specific extra paths, but there may
be one.  The cheap fix is to copy the Numeric/*.h directory over to the
standard python location for headers in your system.

Cheers,

f


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: failed matplotlib build

Aleksander Schwarzenberg-Czerny
Hi!
Indeed, I misunderstood documentation and installed only one package
from two (Numeric and numarray). After installation of Numeric and
devels for tcl and tk installation went smoothly.
Thank you

Alex Schwarzenberg-Czerny

On
Tue, 30 Aug 2005, Fernando Perez wrote:

> Aleksander Schwarzenberg-Czerny wrote:
>
> > src/_transforms.cpp:8:34: Numeric/arrayobject.h: No such file or directory
>
> > Do I miss some required package?
>
> First, check whether you actually have numeric installed:
>
> planck[python]> python -c 'import Numeric;print Numeric.__version__'
> 23.7
>
> If that works, it means that you have installed the Numeric headers in some
> non-standard location.  On my system, they live in:
>
> planck[python]> locate arrayobject.h
> /usr/include/python2.3/Numeric/arrayobject.h
>
>
> I believe by default, distutils adds automatically /path/to/include/python to
> the include file search path (via -I), but if you've installed Numeric in some
> non-standard location, that automatic search may fail.  I don't see
> immediately a way to tell distutils to add specific extra paths, but there may
> be one.  The cheap fix is to copy the Numeric/*.h directory over to the
> standard python location for headers in your system.
>
> Cheers,
>
> f
>



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Loading...