SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: John S. <sla...@gm...> - 2010年01月31日 07:42:55
Am trying to climb the AIPY mountain and as pre-reqs am trying to get
basemap installed. On Ubuntu 9.10 and have Python 2.6.4 and setuptools
for easy_install. 
Using Synaptic I have installed MPL 0.99.0 and, using the installation
instructions for 'other platforms' Have installed GEOS and libgeos_c is
in /usr/lib and geos_c.h in /usr/include so have set GEOS_DIR to /usr
and untar-ed basemap-0.99.4.tar.gz (could not find 0.99.5 - speaks to my
expertise) in a folder in /usr/share.
CD to basemap-0.99.4 and ran the usual:
python setup.py install
and got screeds of errors. The last ones remaining in my terminal window
are:
src/_proj.c:3156: warning: (near initialization for
‘__pyx_string_tab[36]’)
src/_proj.c:3156: warning: excess elements in struct initializer
src/_proj.c:3156: warning: (near initialization for
‘__pyx_string_tab[36]’)
src/_proj.c:3156: warning: excess elements in struct initializer
src/_proj.c:3156: warning: (near initialization for
‘__pyx_string_tab[36]’)
src/_proj.c:3156: warning: excess elements in struct initializer
src/_proj.c:3156: warning: (near initialization for
‘__pyx_string_tab[36]’)
src/_proj.c:3156: warning: excess elements in struct initializer
src/_proj.c:3156: warning: (near initialization for
‘__pyx_string_tab[36]’)
src/_proj.c:3157: warning: excess elements in struct initializer
src/_proj.c:3157: warning: (near initialization for
‘__pyx_string_tab[37]’)
src/_proj.c:3157: warning: excess elements in struct initializer
src/_proj.c:3157: warning: (near initialization for
‘__pyx_string_tab[37]’)
src/_proj.c:3157: warning: excess elements in struct initializer
src/_proj.c:3157: warning: (near initialization for
‘__pyx_string_tab[37]’)
src/_proj.c:3157: warning: excess elements in struct initializer
src/_proj.c:3157: warning: (near initialization for
‘__pyx_string_tab[37]’)
src/_proj.c:3157: warning: excess elements in struct initializer
src/_proj.c:3157: warning: (near initialization for
‘__pyx_string_tab[37]’)
src/_proj.c:3157: warning: excess elements in struct initializer
src/_proj.c:3157: warning: (near initialization for
‘__pyx_string_tab[37]’)
src/_proj.c: In function ‘__Pyx_InitCachedBuiltins’:
src/_proj.c:3160: error: ‘__pyx_builtin_RuntimeError’ undeclared (first
use in this function)
src/_proj.c:3160: warning: implicit declaration of function
‘__Pyx_GetName’
src/_proj.c:3160: error: ‘__pyx_b’ undeclared (first use in this
function)
src/_proj.c: In function ‘__Pyx_InitGlobals’:
src/_proj.c:3167: error: ‘__pyx_int_0’ undeclared (first use in this
function)
src/_proj.c:3167: warning: implicit declaration of function
‘PyInt_FromLong’
src/_proj.c: At top level:
src/_proj.c:3175: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘init_proj’
src/_proj.c:3176: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘init_proj’
src/_proj.c:3441: error: expected declaration specifiers or ‘...’ before
‘PyObject’
src/_proj.c: In function ‘__Pyx_RaiseDoubleKeywordsError’:
src/_proj.c:3443: error: ‘PyExc_TypeError’ undeclared (first use in this
function)
src/_proj.c:3448: warning: implicit declaration of function
‘PyString_AS_STRING’
src/_proj.c:3448: error: ‘kw_name’ undeclared (first use in this
function)
src/_proj.c: In function ‘__Pyx_RaiseArgtupleInvalid’:
src/_proj.c:3473: error: ‘PyExc_TypeError’ undeclared (first use in this
function)
src/_proj.c: At top level:
src/_proj.c:3483: error: expected ‘)’ before ‘*’ token
src/_proj.c:3561: error: expected ‘)’ before ‘*’ token
src/_proj.c:3581: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
src/_proj.c:3614: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
src/_proj.c:3622: error: expected ‘)’ before ‘*’ token
src/_proj.c:3686: error: expected ‘)’ before ‘*’ token
src/_proj.c:3718: error: expected ‘)’ before ‘*’ token
src/_proj.c:3735: error: expected ‘)’ before ‘*’ token
src/_proj.c:3755: error: expected ‘)’ before ‘*’ token
src/_proj.c:3775: error: expected ‘)’ before ‘*’ token
src/_proj.c:3795: error: expected ‘)’ before ‘*’ token
src/_proj.c:3810: error: expected ‘)’ before ‘*’ token
src/_proj.c:3825: error: expected ‘)’ before ‘*’ token
src/_proj.c:3840: error: expected ‘)’ before ‘*’ token
src/_proj.c:3855: error: expected ‘)’ before ‘*’ token
src/_proj.c:3870: error: expected ‘)’ before ‘*’ token
src/_proj.c:3885: error: expected ‘)’ before ‘*’ token
src/_proj.c:3914: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘__Pyx_PyInt_AsUnsignedLongLong’
src/_proj.c:3943: error: expected ‘)’ before ‘*’ token
src/_proj.c:3962: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘__Pyx_PyInt_AsLongLong’
src/_proj.c:3981: error: expected ‘)’ before ‘*’ token
src/_proj.c:4000: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘__Pyx_PyInt_AsSignedLongLong’
src/_proj.c:4021: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
src/_proj.c:4067: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
src/_proj.c:4087:21: error: compile.h: No such file or directory
src/_proj.c:4088:25: error: frameobject.h: No such file or directory
src/_proj.c:4089:23: error: traceback.h: No such file or directory
src/_proj.c: In function ‘__Pyx_AddTraceback’:
src/_proj.c:4092: error: ‘PyObject’ undeclared (first use in this
function)
src/_proj.c:4092: error: ‘py_srcfile’ undeclared (first use in this
function)
src/_proj.c:4093: error: ‘py_funcname’ undeclared (first use in this
function)
src/_proj.c:4094: error: ‘py_globals’ undeclared (first use in this
function)
src/_proj.c:4095: error: ‘empty_string’ undeclared (first use in this
function)
src/_proj.c:4096: error: ‘PyCodeObject’ undeclared (first use in this
function)
src/_proj.c:4096: error: ‘py_code’ undeclared (first use in this
function)
src/_proj.c:4097: error: ‘PyFrameObject’ undeclared (first use in this
function)
src/_proj.c:4097: error: ‘py_frame’ undeclared (first use in this
function)
src/_proj.c:4100: warning: implicit declaration of function
‘PyString_FromString’
src/_proj.c:4107: warning: implicit declaration of function
‘PyString_FromFormat’
src/_proj.c:4120: warning: implicit declaration of function
‘PyModule_GetDict’
src/_proj.c:4120: error: ‘__pyx_m’ undeclared (first use in this
function)
src/_proj.c:4123: warning: implicit declaration of function
‘PyString_FromStringAndSize’
src/_proj.c:4128: warning: implicit declaration of function ‘PyCode_New’
src/_proj.c:4137: error: ‘__pyx_empty_tuple’ undeclared (first use in
this function)
src/_proj.c:4148: warning: implicit declaration of function
‘PyFrame_New’
src/_proj.c:4149: warning: implicit declaration of function
‘PyThreadState_GET’
src/_proj.c:4156: warning: implicit declaration of function
‘PyTraceBack_Here’
src/_proj.c:4158: warning: implicit declaration of function ‘Py_XDECREF’
src/_proj.c: In function ‘__Pyx_InitStrings’:
src/_proj.c:4166: error: ‘__Pyx_StringTabEntry’ has no member named ‘p’
src/_proj.c:4168: error: ‘__Pyx_StringTabEntry’ has no member named
‘is_unicode’
src/_proj.c:4168: error: ‘__Pyx_StringTabEntry’ has no member named
‘is_identifier’
src/_proj.c:4169: error: ‘__Pyx_StringTabEntry’ has no member named ‘p’
src/_proj.c:4169: warning: implicit declaration of function
‘PyUnicode_DecodeUTF8’
src/_proj.c:4169: error: ‘__Pyx_StringTabEntry’ has no member named ‘s’
src/_proj.c:4169: error: ‘__Pyx_StringTabEntry’ has no member named ‘n’
src/_proj.c:4170: error: ‘__Pyx_StringTabEntry’ has no member named
‘intern’
src/_proj.c:4171: error: ‘__Pyx_StringTabEntry’ has no member named ‘p’
src/_proj.c:4171: warning: implicit declaration of function
‘PyString_InternFromString’
src/_proj.c:4171: error: ‘__Pyx_StringTabEntry’ has no member named ‘s’
src/_proj.c:4173: error: ‘__Pyx_StringTabEntry’ has no member named ‘p’
src/_proj.c:4173: error: ‘__Pyx_StringTabEntry’ has no member named ‘s’
src/_proj.c:4173: error: ‘__Pyx_StringTabEntry’ has no member named ‘n’
src/_proj.c:4184: error: ‘__Pyx_StringTabEntry’ has no member named ‘p’
src/_proj.c: At top level:
src/_proj.c:4193: error: expected ‘)’ before ‘*’ token
src/_proj.c:4199: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
src/_proj.c:4245: error: expected ‘)’ before ‘*’ token
src/_proj.c:4254: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
src/_proj.c:4268: error: expected ‘)’ before ‘*’ token
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv
-O2 -Wall -Wstrict-prototypes -fPIC -Isrc
-I/usr/lib/python2.6/dist-packages/numpy/core/include
-I/usr/include/python2.6 -c src/_proj.c -o
build/temp.linux-i686-2.6/src/_proj.o" failed with exit status 1
Does anyone have any idea of where I am going obviously wrong?
 Kind Regards,
 John
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /