My goal is to just get the lastest svn version of matplotlib, or, if not that, just the 0.99 version, up and working on my Linux (Intrepid Ibex) computer. I checked it matplotlib out from svn fine, and then, as per the webpage, did:
> cd matplotlib > python setup.py install and that resulted in a very large amount of errors. I'll post them at the bottom of this message, since there are many lines. I previously had 0.98.x installed, via the Ubuntu repositories, but I have uninstalled it. My version is: Linux ubuntu 2.6.27-7-generic #1 SMP Fri Oct 24 06:40:41 UTC 2008 x86_64 GNU/Linux Any help is appreciated. Thank you, Che Errors (starting from a few lines before): creating build/temp.linux-x86_64-2.5/src creating build/temp.linux-x86_64-2.5/CXX gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/lib/python2.5/site-packages/numpy/core/include -I/usr/local/include -I/usr/include -I. -I/usr/lib/python2.5/site-packages/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2 -I/usr/include/python2.5 -c src/ft2font.cpp -o build/temp.linux-x86_64-2.5/src/ft2font.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ In file included from ./CXX/Extensions.hxx:37, from src/ft2font.h:4, from src/ft2font.cpp:1: ./CXX/WrapPython.h:58:20: error: Python.h: No such file or directory In file included from src/ft2font.cpp:1: src/ft2font.h:13:22: error: ft2build.h: No such file or directory src/ft2font.h:14:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:15:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:16:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME> src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME> In file included from /usr/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h:14, from src/ft2font.cpp:5: /usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:100:2: error: #error Must use Python with unicode enabled. In file included from ./CXX/Python3/Exception.hxx:45, from ./CXX/Python3/Objects.hxx:45, from ./CXX/Python3/Extensions.hxx:52, from ./CXX/Extensions.hxx:42, from src/ft2font.h:4, from src/ft2font.cpp:1: ./CXX/Python3/IndirectPythonInterface.hxx:50: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:51: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:52: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:53: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:55: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:56: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:57: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:58: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:59: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:60: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:61: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:62: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:63: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:64: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:65: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:66: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:67: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:68: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:69: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:70: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:71: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:72: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:73: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:74: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:75: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:76: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:81: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:83: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:84: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:85: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:86: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:91: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:93: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:94: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:99: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:100: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:100: error: ‘o’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:102: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:103: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:103: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:105: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:106: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:106: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:108: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:109: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:109: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:111: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:112: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:112: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:114: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:115: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:115: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:117: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:118: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:118: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:120: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:121: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:121: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:123: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:124: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:124: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:126: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:127: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:127: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:129: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:130: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:130: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:132: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:133: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:133: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:135: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:136: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:136: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:138: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:139: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:139: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:141: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:142: error: redefinition of ‘bool Py::_List_Check’ ./CXX/Python3/IndirectPythonInterface.hxx:100: error: ‘bool Py::_List_Check’ previously defined here ./CXX/Python3/IndirectPythonInterface.hxx:142: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:142: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:144: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:145: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:145: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:147: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:148: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:148: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:150: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:151: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:151: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:153: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:154: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:154: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:156: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:157: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:157: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:159: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:160: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:160: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:162: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:163: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:163: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:165: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:166: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:166: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:168: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:169: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:169: error: ‘v’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:171: error: expected constructor, destructor, or type conversion before ‘*’ token ./CXX/Python3/IndirectPythonInterface.hxx:172: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:172: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:182: error: variable or field ‘_XINCREF’ declared void ./CXX/Python3/IndirectPythonInterface.hxx:182: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:182: error: ‘op’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:183: error: variable or field ‘_XDECREF’ declared void ./CXX/Python3/IndirectPythonInterface.hxx:183: error: ‘PyObject’ was not declared in this scope ./CXX/Python3/IndirectPythonInterface.hxx:183: error: ‘op’ was not declared in this scope In file included from ./CXX/Python3/Objects.hxx:45, from ./CXX/Python3/Extensions.hxx:52, from ./CXX/Extensions.hxx:42, from src/ft2font.h:4, from src/ft2font.cpp:1: ./CXX/Python3/Exception.hxx:71: error: expected `)' before ‘*’ token ./CXX/Python3/Exception.hxx:76: error: expected `)' before ‘*’ token ./CXX/Python3/Exception.hxx: In constructor ‘Py::Exception::Exception(const std::string&)’: ./CXX/Python3/Exception.hxx:68: error: ‘_Exc_RuntimeError’ is not a member of ‘Py’ ./CXX/Python3/Exception.hxx:68: error: ‘PyErr_SetString’ was not declared in this scope ./CXX/Python3/Exception.hxx: In member function ‘void Py::Exception::clear()’: ./CXX/Python3/Exception.hxx:81: error: ‘PyErr_Clear’ was not declared in this scope ./CXX/Python3/Exception.hxx: In constructor ‘Py::TypeError::TypeError(const std::string&)’: ./CXX/Python3/Exception.hxx:123: error: ‘_Exc_TypeError’ is not a member of ‘Py’ ./CXX/Python3/Exception.hxx:123: error: ‘PyErr_SetString’ was not declared in this scope ./CXX/Python3/Exception.hxx: In constructor ‘Py::IndexError::IndexError(const std::string&)’: ./CXX/Python3/Exception.hxx:133: error: ‘_Exc_IndexError’ is not a member of ‘Py’ ./CXX/Python3/Exception.hxx:133: error: ‘PyErr_SetString’ was not declared in this scope ./CXX/Python3/Exception.hxx: In constructor ‘Py::AttributeError::AttributeError(const std::string&)’: ./CXX/Python3/Exception.hxx:143: error: ‘_Exc_AttributeError’ is not a member of ‘Py’ ./CXX/Python3/Exception.hxx:143: error: ‘PyErr_SetString’ was not declared in this scope ./CXX/Python3/Exception.hxx: In constructor ‘Py::NameError::NameError(const std::string&)’: ./CXX/Python3/Exception.hxx:153: error: ‘_Exc_NameError’ is not a member of ‘Py’ ./CXX/Python3/Exception.hxx:153: error: ‘PyErr_SetString’ was not declared in this scope ./CXX/Python3/Exception.hxx: In constructor ‘Py::RuntimeError::RuntimeError(const std::string&)’: ./CXX/Python3/Exception.hxx:163: error: ‘_Exc_RuntimeError’ is not a member of ‘Py’ ./CXX/Python3/Exception.hxx:163: error: ‘PyErr_SetString’ was not declared in this scope ./CXX/Python3/Exception.hxx: In constructor ‘Py::SystemError::SystemError(const std::string&)’: ./CXX/Python3/Exception.hxx:173: error: ‘_Exc_SystemError’ is not a member of ‘Py’ ./CXX/Python3/Exception.hxx:173: error: ‘PyErr_SetString’ was not declared in this scope ./CXX/Python3/Exception.hxx: In constructor ‘Py::KeyError::KeyError(const std::string&)’: ./CXX/Python3/Exception.hxx:183: error: ‘_Exc_KeyError’ is not a member of ‘Py’ ./CXX/Python3/Exception.hxx:183: error: ‘PyErr_SetString’ was not declared in this scope ./CXX/Python3/Exception.hxx: In constructor ‘Py::ValueError::ValueError(const std::string&)’: ./CXX/Python3/Exception.hxx:194: error: ‘_Exc_ValueError’ is not a member of ‘Py’ ./CXX/Python3/Exception.hxx:194: error: ‘PyErr_SetString’ was not declared in this scope ./CXX/Python3/Exception.hxx: In constructor ‘Py::OverflowError::OverflowError(const std::string&)’: ./CXX/Python3/Exception.hxx:204: error: ‘_Exc_OverflowError’ is not a member of ‘Py’ ./CXX/Python3/Exception.hxx:204: error: ‘PyErr_SetString’ was not declared in this scope ./CXX/Python3/Exception.hxx: In constructor ‘Py::ZeroDivisionError::ZeroDivisionError(const std::string&)’: ./CXX/Python3/Exception.hxx:214: error: ‘_Exc_ZeroDivisionError’ is not a member of ‘Py’ ./CXX/Python3/Exception.hxx:214: error: ‘PyErr_SetString’ was not declared in this scope ./CXX/Python3/Exception.hxx: In constructor ‘Py::FloatingPointError::FloatingPointError(const std::string&)’: ./CXX/Python3/Exception.hxx:224: error: ‘_Exc_FloatingPointError’ is not a member of ‘Py’ ./CXX/Python3/Exception.hxx:224: error: ‘PyErr_SetString’ was not declared in this scope ./CXX/Python3/Exception.hxx: In constructor ‘Py::MemoryError::MemoryError(const std::string&)’: ./CXX/Python3/Exception.hxx:234: error: ‘_Exc_MemoryError’ is not a member of ‘Py’ ./CXX/Python3/Exception.hxx:234: error: ‘PyErr_SetString’ was not declared in this scope ./CXX/Python3/Exception.hxx: In constructor ‘Py::SystemExit::SystemExit(const std::string&)’: ./CXX/Python3/Exception.hxx:244: error: ‘_Exc_SystemExit’ is not a member of ‘Py’ ./CXX/Python3/Exception.hxx:244: error: ‘PyErr_SetString’ was not declared in this scope In file included from ./CXX/Python3/Extensions.hxx:52, from ./CXX/Extensions.hxx:42, from src/ft2font.h:4, from src/ft2font.cpp:1: ./CXX/Python3/Objects.hxx: At global scope: ./CXX/Python3/Objects.hxx:143: error: ISO C++ forbids declaration of ‘PyObject’ with no type ./CXX/Python3/Objects.hxx:143: error: expected ‘;’ before ‘*’ token ./CXX/Python3/Objects.hxx:146: error: ‘PyObject’ has not been declared ./CXX/Python3/Objects.hxx:167: error: expected `)' before ‘*’ token src/ft2font.cpp:2010: error: expected `}' at end of input ./CXX/Python3/Objects.hxx: In member function ‘void Py::Object::set(int*, bool)’: ./CXX/Python3/Objects.hxx:149: error: ‘p’ was not declared in this scope ./CXX/Python3/Objects.hxx:152: error: ‘_XINCREF’ is not a member of ‘Py’ ./CXX/Python3/Objects.hxx: In member function ‘void Py::Object::release()’: ./CXX/Python3/Objects.hxx:159: error: ‘_XDECREF’ is not a member of ‘Py’ ./CXX/Python3/Objects.hxx:159: error: ‘p’ was not declared in this scope ./CXX/Python3/Objects.hxx: At global scope: ./CXX/Python3/Objects.hxx:161: error: expected unqualified-id at end of input ./CXX/Python3/Objects.hxx:161: error: expected `}' at end of input error: command 'gcc' failed with exit status 1 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users