matplotlib 1.1.1 does not support Python 3.x. You will need to build from git master for the time being. We should also have a 1.2rc out in the next weeks which will support Python 3.

On 09/04/2012 07:09 PM, Roy Crihfield wrote:
Attempting to install matplotlib with easy_install for python 3.2.3 on Linux 
(3.5.3-1-ARCH) fails like so.

I have the freetype2 and numpy packages as you can see, and I have tried 
building from source with the same results.



Processing matplotlib-1.1.1.tar.gz
Writing /tmp/easy_install-quuxcl/matplotlib-1.1.1/setup.cfg
Running matplotlib-1.1.1/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-quuxcl/matplotlib-1.1.1/egg-dist-tmp-4wc3xh
basedirlist is: ['/usr/local', '/usr']
============================================================================
BUILDING MATPLOTLIB
             matplotlib: 1.1.1
                 python: 3.2.3 (default, Apr 23 2012, 23:14:44)  [GCC 4.7.0
                         20120414 (prerelease)]
               platform: linux2

REQUIRED DEPENDENCIES
                  numpy: 1.6.2
              freetype2: 15.0.9

OPTIONAL BACKEND DEPENDENCIES
                 libpng: 1.5.12
                Tkinter: no
                         * TKAgg requires Tkinter
                   Gtk+: no
                         * Building for Gtk+ requires pygtk; you must be able
                         * to "import gtk" in your build/install environment
        Mac OS X native: no
                     Qt: no
                    Qt4: no
                 PySide: no
                  Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
               datetime: present, version unknown
               dateutil: 2.1
                   pytz: 2012d

OPTIONAL USETEX DEPENDENCIES
                 dvipng: no
            ghostscript: 9.06
                  latex: no
                pdftops: 0.20.3

[Edit setup.cfg to suppress the above messages]
============================================================================
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends', 
'matplotlib.backends.qt4_editor', 'matplotlib.projections', 
'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests', 
'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 
'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 
'matplotlib.tri', 'matplotlib.delaunay']
warning: no files found matching 'KNOWN_BUGS'
warning: no files found matching 'INTERACTIVE'
warning: no files found matching 'MANIFEST'
warning: no files found matching '__init__.py'
warning: no files found matching 'examples/data/*'
warning: no files found matching 'lib/mpl_toolkits'
warning: no files found matching 'LICENSE*' under directory 'license'
src/ft2font.cpp: In member function 'Py::Object FT2Image::py_draw_rect(const 
Py::Tuple&)':
src/ft2font.cpp:241:15: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:242:15: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:243:15: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:244:15: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In member function 'Py::Object FT2Image::py_draw_rect_filled(const 
Py::Tuple&)':
src/ft2font.cpp:284:15: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:285:15: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:286:15: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:287:15: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In member function 'Py::Object FT2Image::py_as_str(const 
Py::Tuple&)':
src/ft2font.cpp:308:49: error: 'PyString_FromStringAndSize' was not declared in 
this scope
src/ft2font.cpp: In member function 'Py::Object FT2Image::py_get_width(const 
Py::Tuple&)':
src/ft2font.cpp:432:12: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In member function 'Py::Object FT2Image::py_get_height(const 
Py::Tuple&)':
src/ft2font.cpp:441:12: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In constructor 'Glyph::Glyph(FT_FaceRec_* const&, FT_GlyphRec_* 
const&, size_t)':
src/ft2font.cpp:452:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:453:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:454:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:455:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:456:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:457:35: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:458:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:460:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:461:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:467:16: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:468:16: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:469:16: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:470:16: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In constructor 'FT2Font::FT2Font(std::string)':
src/ft2font.cpp:933:32: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:936:32: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:937:32: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:938:32: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:939:32: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:940:32: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:944:25: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:948:33: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:951:19: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:952:19: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:953:19: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:954:19: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:956:40: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:957:40: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:958:40: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:959:40: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:960:40: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:961:40: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:962:40: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In member function 'Py::Object FT2Font::set_charmap(const 
Py::Tuple&)':
src/ft2font.cpp:1078:13: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In member function 'Py::Object FT2Font::get_kerning(const 
Py::Tuple&)':
src/ft2font.cpp:1166:16: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:1167:17: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:1168:16: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:1173:16: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:1179:16: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:1183:16: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In member function 'Py::Object FT2Font::get_num_glyphs(const 
Py::Tuple&)':
src/ft2font.cpp:1321:12: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In member function 'Py::Object FT2Font::get_width_height(const 
Py::Tuple&)':
src/ft2font.cpp:1442:14: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:1443:14: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In member function 'Py::Object FT2Font::get_descent(const 
Py::Tuple&)':
src/ft2font.cpp:1461:12: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In member function 'Py::Object FT2Font::get_glyph_name(const 
Py::Tuple&)':
src/ft2font.cpp:1657:43: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In member function 'Py::Object FT2Font::get_charmap(const 
Py::Tuple&)':
src/ft2font.cpp:1683:42: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In member function 'Py::Object FT2Font::get_sfnt(const 
Py::Tuple&)':
src/ft2font.cpp:1772:18: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:1773:18: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:1774:18: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:1775:18: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In member function 'Py::Object FT2Font::get_ps_font_info(const 
Py::Tuple&)':
src/ft2font.cpp:1825:15: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:1826:15: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:1827:15: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In member function 'Py::Object FT2Font::get_sfnt_table(const 
Py::Tuple&)':
src/ft2font.cpp:2008:25: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2009:25: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2011:25: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2012:25: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2014:42: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2015:42: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2028:26: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2029:26: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2032:42: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2033:42: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2034:42: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2035:42: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2036:42: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2037:42: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2042:42: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2043:42: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2044:42: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In member function 'Py::Object ft2font_module::new_ft2image(const 
Py::Tuple&)':
src/ft2font.cpp:2097:17: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2098:18: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In function 'void initft2font()':
src/ft2font.cpp:2273:5: error: return-statement with a value, in function 
returning 'void' [-fpermissive]
src/ft2font.cpp:2276:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2277:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2278:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2279:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2280:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2281:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2282:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2283:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2284:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2285:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2286:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2287:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2288:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2289:29: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2290:30: error: 'Int' is not a member of 'Py'
src/ft2font.cpp:2291:30: error: 'Int' is not a member of 'Py'
src/ft2font.cpp: In member function 'Py::Object FT2Font::get_descent(const 
Py::Tuple&)':
src/ft2font.cpp:1462:1: warning: control reaches end of non-void function 
[-Wreturn-type]
src/ft2font.cpp: In member function 'Py::Object FT2Font::get_num_glyphs(const 
Py::Tuple&)':
src/ft2font.cpp:1322:1: warning: control reaches end of non-void function 
[-Wreturn-type]
src/ft2font.cpp: In member function 'Py::Object FT2Font::get_kerning(const 
Py::Tuple&)':
src/ft2font.cpp:1186:1: warning: control reaches end of non-void function 
[-Wreturn-type]
src/ft2font.cpp: In member function 'Py::Object FT2Image::py_get_height(const 
Py::Tuple&)':
src/ft2font.cpp:442:1: warning: control reaches end of non-void function 
[-Wreturn-type]
src/ft2font.cpp: In member function 'Py::Object FT2Image::py_get_width(const 
Py::Tuple&)':
src/ft2font.cpp:433:1: warning: control reaches end of non-void function 
[-Wreturn-type]
src/ft2font.cpp: In member function 'Py::Object FT2Image::py_as_str(const 
Py::Tuple&)':
src/ft2font.cpp:310:1: warning: control reaches end of non-void function 
[-Wreturn-type]
error: Setup script exited with error: command 'gcc' failed with exit status 1


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to