From: Jean-Luc M. <jea...@fr...> - 2004-05-21 15:19:07
|
Hello, I have a problem when i want to build matplotlib : i have this error message : GTKAgg requires pygtk GTKAgg requires pygtk Traceback (most recent call last): File "setup.py", line 88, in ? build_agg(ext_modules, packages) File "/home2/menut/prg/matplotlib-0.53.1/setupext.py", line 298, in build_agg add_agg_flags(module) File "/home2/menut/prg/matplotlib-0.53.1/setupext.py", line 83, in add_agg_flags add_base_flags(module) File "/home2/menut/prg/matplotlib-0.53.1/setupext.py", line 64, in add_base_flags incdirs = [os.path.join(p, 'include') for p in basedir[sys.platform] KeyError: 'osf1V5' I use python 2.3.3 and Numeric 23.1 (and another packages) Someone can help me ? best regards, Jean-Luc Menut |
From: John H. <jdh...@ac...> - 2004-05-21 15:49:28
|
>>>>> "Jean-Luc" == Jean-Luc Menut <jea...@fr...> writes: Jean-Luc> GTKAgg requires pygtk GTKAgg requires pygtk Traceback Jean-Luc> (most recent call last): File "setup.py", line 88, in ? Jean-Luc> build_agg(ext_modules, packages) File Jean-Luc> "/home2/menut/prg/matplotlib-0.53.1/setupext.py", line Jean-Luc> 298, in build_agg add_agg_flags(module) File Jean-Luc> "/home2/menut/prg/matplotlib-0.53.1/setupext.py", line Jean-Luc> 83, in add_agg_flags add_base_flags(module) File Jean-Luc> "/home2/menut/prg/matplotlib-0.53.1/setupext.py", line Jean-Luc> 64, in add_base_flags incdirs = [os.path.join(p, Jean-Luc> 'include') for p in basedir[sys.platform] KeyError: Jean-Luc> 'osf1V5' You are apparently working on a platform 'osf1V5' that we haven't encountered before. What platform is this? You need to add that platform as a key to the basedir dictionary in setupext.py basedir = { 'win32' : ['win32_static',], 'linux2' : ['/usr/local', '/usr',], 'linux' : ['/usr/local', '/usr',], 'darwin' : ['/usr/local', '/usr', '/sw'], 'sunos5' : [os.getenv('MPLIB_BASE') or '/usr/local',], 'osf1V5' : ['/your/base/dir1', '/your/base/dir2'], } where /your/base/dir are the base paths to the system libraries. Also, you may want to install pygtk or Tkinter or wxpython if you want to use matplotlib from a GUI. JDH |
From: Jean-Luc M. <jea...@fr...> - 2004-05-21 16:07:55
|
Hello, > You are apparently working on a platform 'osf1V5' that we haven't > encountered before. What platform is this? It's a sun (alpha processor) with a proprietary unix (OSF1 version 5, i think it's tru64). > Also, you may want to install pygtk or Tkinter or wxpython if you want > to use matplotlib from a GUI. If i don't do a mistake, i have Tkinter Well, after the modification of base.dir the building start and fail with this error message (sorry for the length but i don't know which part is interesting) creating build/temp.osf1-V5.1-alpha-2.3/agg2/src gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/include -I/usr/local/include -I/home2/menut/prg/include -I/home2/menut/GNU/include -Isrc -Iagg2/include -I/usr/include -I/usr/local/include -I/home2/menut/prg/include -I/home2/menut/GNU/include -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/home2/menut/prg/include/freetype2 -I/home2/menut/GNU/include/freetype2 -Isrc/freetype2 -Iagg2/include/freetype2 -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/home2/menut/prg/include/freetype2 -I/home2/menut/GNU/include/freetype2 -I/home2/menut/prg/python2.3/include/python2.3 -c agg2/src/agg_arrowhead.cpp -o build/temp.osf1-V5.1-alpha-2.3/agg2/src/agg_arrowhead.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/include -I/usr/local/include -I/home2/menut/prg/include -I/home2/menut/GNU/include -Isrc -Iagg2/include -I/usr/include -I/usr/local/include -I/home2/menut/prg/include -I/home2/menut/GNU/include -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/home2/menut/prg/include/freetype2 -I/home2/menut/GNU/include/freetype2 -Isrc/freetype2 -Iagg2/include/freetype2 -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/home2/menut/prg/include/freetype2 -I/home2/menut/GNU/include/freetype2 -I/home2/menut/prg/python2.3/include/python2.3 -c agg2/src/agg_trans_warp_magnifier.cpp -o build/temp.osf1-V5.1-alpha-2.3/agg2/src/agg_trans_warp_magnifier.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/include -I/usr/local/include -I/home2/menut/prg/include -I/home2/menut/GNU/include -Isrc -Iagg2/include -I/usr/include -I/usr/local/include -I/home2/menut/prg/include -I/home2/menut/GNU/include -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/home2/menut/prg/include/freetype2 -I/home2/menut/GNU/include/freetype2 -Isrc/freetype2 -Iagg2/include/freetype2 -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/home2/menut/prg/include/freetype2 -I/home2/menut/GNU/include/freetype2 -I/home2/menut/prg/python2.3/include/python2.3 -c agg2/src/agg_scanline_u8.cpp -o build/temp.osf1-V5.1-alpha-2.3/agg2/src/agg_scanline_u8.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/include -I/usr/local/include -I/home2/menut/prg/include -I/home2/menut/GNU/include -Isrc -Iagg2/include -I/usr/include -I/usr/local/include -I/home2/menut/prg/include -I/home2/menut/GNU/include -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/home2/menut/prg/include/freetype2 -I/home2/menut/GNU/include/freetype2 -Isrc/freetype2 -Iagg2/include/freetype2 -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/home2/menut/prg/include/freetype2 -I/home2/menut/GNU/include/freetype2 -I/home2/menut/prg/python2.3/include/python2.3 -c src/_backend_agg.cpp -o build/temp.osf1-V5.1-alpha-2.3/src/_backend_agg.o In file included from /home2/menut/prg/python2.3/include/python2.3/Python.h:8, from src/ft2font.h:6, from src/_backend_agg.cpp:3: /home2/menut/prg/python2.3/include/python2.3/pyconfig.h:840:1: warning: "_OSF_SOURCE" redefined In file included from /usr/local/lib/gcc-lib/alphaev67-dec-osf5.1/3.3.3/include/string.h:61, from /usr/local/include/c++/3.3.3/cstring:51, from src/_backend_agg.cpp:1: /usr/include/standards.h:206:1: warning: this is the location of the previous definition In file included from /home2/menut/prg/python2.3/include/python2.3/Python.h:8, from src/ft2font.h:6, from src/_backend_agg.cpp:3: /home2/menut/prg/python2.3/include/python2.3/pyconfig.h:847:1: warning: "_POSIX_C_SOURCE" redefined In file included from /usr/local/lib/gcc-lib/alphaev67-dec-osf5.1/3.3.3/include/string.h:61, from /usr/local/include/c++/3.3.3/cstring:51, from src/_backend_agg.cpp:1: /usr/include/standards.h:198:1: warning: this is the location of the previous definition In file included from /home2/menut/prg/python2.3/include/python2.3/Python.h:8, from src/ft2font.h:6, from src/_backend_agg.cpp:3: /home2/menut/prg/python2.3/include/python2.3/pyconfig.h:859:1: warning: "_XOPEN_SOURCE" redefined In file included from /usr/local/lib/gcc-lib/alphaev67-dec-osf5.1/3.3.3/include/string.h:61, from /usr/local/include/c++/3.3.3/cstring:51, from src/_backend_agg.cpp:1: /usr/include/standards.h:188:1: warning: this is the location of the previous definition In file included from /usr/include/sys/resource.h:60, from /usr/local/lib/gcc-lib/alphaev67-dec-osf5.1/3.3.3/include/sys/wait.h:170, from /usr/local/lib/gcc-lib/alphaev67-dec-osf5.1/3.3.3/include/stdlib.h:192, from /home2/menut/prg/python2.3/include/python2.3/Python.h:36, from src/ft2font.h:6, from src/_backend_agg.cpp:3: /usr/include/sys/time.h:71: error: 'suseconds_t' is used as a type, but is not defined as a type. In file included from /home2/menut/prg/python2.3/include/python2.3/pyport.h:157, from /home2/menut/prg/python2.3/include/python2.3/Python.h:48, from src/ft2font.h:6, from src/_backend_agg.cpp:3: /usr/local/lib/gcc-lib/alphaev67-dec-osf5.1/3.3.3/include/sys/stat.h:213: error: ' blksize_t' is used as a type, but is not defined as a type. /usr/local/lib/gcc-lib/alphaev67-dec-osf5.1/3.3.3/include/sys/stat.h:213: error: ' blkcnt_t' is used as a type, but is not defined as a type. In file included from src/_backend_agg.cpp:3: src/ft2font.h:7:22: ft2build.h: No such file or directory src/ft2font.h:8:10: #include expects "FILENAME" or <FILENAME> src/ft2font.h:9:10: #include expects "FILENAME" or <FILENAME> src/ft2font.h:10:10: #include expects "FILENAME" or <FILENAME> In file included from src/_backend_agg.cpp:3: src/ft2font.h:29: error: 'FT_Face' is used as a type, but is not defined as a type. src/ft2font.h:31: error: 'FT_Matrix' is used as a type, but is not defined as a type. src/ft2font.h:32: error: 'FT_Vector' is used as a type, but is not defined as a type. src/ft2font.h:33: error: 'FT_Error' is used as a type, but is not defined as a type. src/ft2font.h:34: error: parse error before `[' token src/ft2font.h:35: error: parse error before `[' token In file included from /usr/local/include/c++/3.3.3/bits/locale_facets.tcc:41, from /usr/local/include/c++/3.3.3/locale:47, from /usr/local/include/c++/3.3.3/bits/istream.tcc:37, from /usr/local/include/c++/3.3.3/istream:768, from /usr/local/include/c++/3.3.3/fstream:45, from src/_backend_agg.h:25, from src/_backend_agg.cpp:4: /usr/local/include/c++/3.3.3/cmath: In function `long double std::acos(long double)': /usr/local/include/c++/3.3.3/cmath:194: error: `::acosl' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::asin(long double)': /usr/local/include/c++/3.3.3/cmath:212: error: `::asinl' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::atan(long double)': /usr/local/include/c++/3.3.3/cmath:230: error: `::atanl' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::atan2(long double, long double)': /usr/local/include/c++/3.3.3/cmath:249: error: `::atan2l' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::ceil(long double)': /usr/local/include/c++/3.3.3/cmath:268: error: `::ceill' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::cosh(long double)': /usr/local/include/c++/3.3.3/cmath:296: error: `::coshl' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::exp(long double)': /usr/local/include/c++/3.3.3/cmath:314: error: `::expl' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::floor(long double)': /usr/local/include/c++/3.3.3/cmath:342: error: `::floorl' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::fmod(long double, long double)': /usr/local/include/c++/3.3.3/cmath:361: error: `::fmodl' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::frexp(long double, int*)': /usr/local/include/c++/3.3.3/cmath:380: error: `::frexpl' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::ldexp(long double, int)': /usr/local/include/c++/3.3.3/cmath:400: error: `::ldexpl' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::log(long double)': /usr/local/include/c++/3.3.3/cmath:419: error: `::logl' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::log10(long double)': /usr/local/include/c++/3.3.3/cmath:437: error: `::log10l' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::modf(long double, long double*)': /usr/local/include/c++/3.3.3/cmath:461: error: `::modfl' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::pow(long double, long double)': /usr/local/include/c++/3.3.3/cmath:495: error: `::powl' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::sinh(long double)': /usr/local/include/c++/3.3.3/cmath:536: error: `::sinhl' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::tan(long double)': /usr/local/include/c++/3.3.3/cmath:564: error: `::tanl' undeclared (first use here) /usr/local/include/c++/3.3.3/cmath: In function `long double std::tanh(long double)': /usr/local/include/c++/3.3.3/cmath:582: error: `::tanhl' undeclared (first use here) error: command 'gcc' failed with exit status 1 Jean-Luc |
From: John H. <jdh...@ac...> - 2004-05-21 18:30:56
|
>>>>> "Jean-Luc" == Jean-Luc Menut <jea...@fr...> writes: Jean-Luc> Hello, >> You are apparently working on a platform 'osf1V5' that we >> haven't encountered before. What platform is this? Jean-Luc> It's a sun (alpha processor) with a proprietary unix Jean-Luc> (OSF1 version 5, i think it's tru64). The error is src/ft2font.h:7:22: ft2build.h: No such file or directory You need to install freetype and make sure this library is in your basedirs path. JDH |
From: Jean-Luc M. <jea...@fr...> - 2004-05-24 13:15:03
|
Hello, > You need to install freetype and make sure this library is in your > basedirs path. I 've did it but infortunatly i have a new error message wich concern a library ,i mean. Thank you for your help, Jean-Luc here the message : building 'matplotlib._transforms' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Isrc -I. -I/home2/menut/prg/python2.3/include/python2.3 -c src/_transforms.cpp -o build/temp.osf1-V5.1-alpha-2.3/src/_transforms.o In file included from /home2/menut/prg/python2.3/include/python2.3/Python.h:8, from CXX/Objects.hxx:9, from CXX/Extensions.hxx:18, from src/_transforms.h:10, from src/_transforms.cpp:3: /home2/menut/prg/python2.3/include/python2.3/pyconfig.h:840:1: warning: "_OSF_SOURCE" redefined In file included from /usr/include/locale.h:49, from /usr/local/include/c++/3.3.3/clocale:49, from /usr/local/include/c++/3.3.3/alphaev67-dec-osf5.1/bits/c++locale.h:41, from /usr/local/include/c++/3.3.3/iosfwd:46, from /usr/local/include/c++/3.3.3/ios:44, from /usr/local/include/c++/3.3.3/ostream:45, from /usr/local/include/c++/3.3.3/iterator:70, from /usr/local/include/c++/3.3.3/numeric:67, from src/_transforms.cpp:2: /usr/include/standards.h:206:1: warning: this is the location of the previous definition In file included from /home2/menut/prg/python2.3/include/python2.3/Python.h:8, from CXX/Objects.hxx:9, from CXX/Extensions.hxx:18, from src/_transforms.h:10, from src/_transforms.cpp:3: /home2/menut/prg/python2.3/include/python2.3/pyconfig.h:847:1: warning: "_POSIX_C_SOURCE" redefined In file included from /usr/include/locale.h:49, from /usr/local/include/c++/3.3.3/clocale:49, from /usr/local/include/c++/3.3.3/alphaev67-dec-osf5.1/bits/c++locale.h:41, from /usr/local/include/c++/3.3.3/iosfwd:46, from /usr/local/include/c++/3.3.3/ios:44, from /usr/local/include/c++/3.3.3/ostream:45, from /usr/local/include/c++/3.3.3/iterator:70, from /usr/local/include/c++/3.3.3/numeric:67, from src/_transforms.cpp:2: /usr/include/standards.h:198:1: warning: this is the location of the previous definition In file included from /home2/menut/prg/python2.3/include/python2.3/Python.h:8, from CXX/Objects.hxx:9, from CXX/Extensions.hxx:18, from src/_transforms.h:10, from src/_transforms.cpp:3: /home2/menut/prg/python2.3/include/python2.3/pyconfig.h:859:1: warning: "_XOPEN_SOURCE" redefined In file included from /usr/include/locale.h:49, from /usr/local/include/c++/3.3.3/clocale:49, from /usr/local/include/c++/3.3.3/alphaev67-dec-osf5.1/bits/c++locale.h:41, from /usr/local/include/c++/3.3.3/iosfwd:46, from /usr/local/include/c++/3.3.3/ios:44, from /usr/local/include/c++/3.3.3/ostream:45, from /usr/local/include/c++/3.3.3/iterator:70, from /usr/local/include/c++/3.3.3/numeric:67, from src/_transforms.cpp:2: /usr/include/standards.h:188:1: warning: this is the location of the previous definition In file included from /home2/menut/prg/python2.3/include/python2.3/pyport.h:99, from /home2/menut/prg/python2.3/include/python2.3/Python.h:48, from CXX/Objects.hxx:9, from CXX/Extensions.hxx:18, from src/_transforms.h:10, from src/_transforms.cpp:3: /usr/include/sys/time.h:71: error: 'suseconds_t' is used as a type, but is not defined as a type. In file included from /home2/menut/prg/python2.3/include/python2.3/pyport.h:157, from /home2/menut/prg/python2.3/include/python2.3/Python.h:48, from CXX/Objects.hxx:9, from CXX/Extensions.hxx:18, from src/_transforms.h:10, from src/_transforms.cpp:3: /usr/local/lib/gcc-lib/alphaev67-dec-osf5.1/3.3.3/include/sys/stat.h:213: error: ' blksize_t' is used as a type, but is not defined as a type. /usr/local/lib/gcc-lib/alphaev67-dec-osf5.1/3.3.3/include/sys/stat.h:213: error: ' blkcnt_t' is used as a type, but is not defined as a type. error: command 'gcc' failed with exit status 1 |
From: John H. <jdh...@ac...> - 2004-05-24 14:19:14
|
>>>>> "Jean-Luc" == Jean-Luc Menut <jea...@fr...> writes: Jean-Luc> Hello, >> You need to install freetype and make sure this library is in >> your basedirs path. Jean-Luc> I 've did it but infortunatly i have a new error message Jean-Luc> wich concern a library ,i mean. Just an idea: Try replacing line 9 of CXX/Objects.hxx with extern "C" { #include "Python.h" ; That is, just put the extern C thing around the inclusion of the python.h file and let me know if that makes a difference. If it fails again, send along the error message from the compiler and I'll take a second look. JDH |