[Usuarios Plone] Problema 'python-cjson>=1.0.5'.

Modesto Pérez modeusto at gmail.com
Mon Dec 5 10:15:58 UTC 2011


He tratado de solucionarlo de esta manera pero me da otro error.Os dejo la
traza entera.

C:\Python32\python-cjson-1.0.5>*setup.py install build --compiler=mingw32*

running install
running build
running build_ext
building 'cjson' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DMODULE_VERSION="1.0.5"
-IC:\Py
thon32\include -IC:\Python32\PC -c cjson.c -o
build\temp.win32-3.2\Release\cjson
.o
cjson.c: In function `decode_string':
cjson.c:168: warning: implicit declaration of function
`PyString_DecodeEscape'
cjson.c:168: warning: assignment makes pointer from integer without a cast
cjson.c:170: warning: implicit declaration of function
`PyString_FromStringAndSi
ze'
cjson.c:170: warning: assignment makes pointer from integer without a cast
cjson.c:186: warning: implicit declaration of function `PyString_AsString'
cjson.c:186: warning: pointer/integer type mismatch in conditional
expression
cjson.c: In function `decode_number':
cjson.c:295: warning: assignment makes pointer from integer without a cast
cjson.c:300: error: too many arguments to function `PyFloat_FromString'
cjson.c:302: warning: implicit declaration of function `PyInt_FromString'
cjson.c:302: warning: implicit declaration of function `PyString_AS_STRING'
cjson.c:302: warning: assignment makes pointer from integer without a cast
cjson.c: In function `encode_string':
cjson.c:541: error: syntax error before '*' token
cjson.c:542: error: `op' undeclared (first use in this function)
cjson.c:542: error: (Each undeclared identifier is reported only once
cjson.c:542: error: for each function it appears in.)
cjson.c:550: warning: assignment makes pointer from integer without a cast
cjson.c:562: warning: assignment makes pointer from integer without a cast
cjson.c:567: error: invalid operands to binary -
cjson.c:591: error: invalid operands to binary -
cjson.c:594: warning: implicit declaration of function `_PyString_Resize'
cjson.c: In function `encode_unicode':
cjson.c:626: warning: assignment makes pointer from integer without a cast
cjson.c:630: warning: assignment makes pointer from integer without a cast
cjson.c:638: error: subscripted value is neither array nor pointer
cjson.c:742: error: subscripted value is neither array nor pointer
cjson.c: In function `encode_tuple':
cjson.c:766: error: structure has no member named `ob_size'
cjson.c:768: warning: implicit declaration of function `PyString_FromString'
cjson.c:768: warning: return makes pointer from integer without a cast
cjson.c:784: warning: assignment makes pointer from integer without a cast
cjson.c:788: warning: implicit declaration of function
`PyString_ConcatAndDel'
cjson.c:793: warning: assignment makes pointer from integer without a cast
cjson.c:803: warning: assignment makes pointer from integer without a cast
cjson.c:806: warning: implicit declaration of function `_PyString_Join'
cjson.c:806: warning: assignment makes pointer from integer without a cast
cjson.c: In function `encode_list':
cjson.c:840: error: structure has no member named `ob_size'
cjson.c:841: warning: assignment makes pointer from integer without a cast
cjson.c:851: error: structure has no member named `ob_size'
cjson.c:864: warning: assignment makes pointer from integer without a cast
cjson.c:873: warning: assignment makes pointer from integer without a cast
cjson.c:883: warning: assignment makes pointer from integer without a cast
cjson.c:886: warning: assignment makes pointer from integer without a cast
cjson.c: In function `encode_dict':
cjson.c:925: warning: assignment makes pointer from integer without a cast
cjson.c:933: warning: assignment makes pointer from integer without a cast
cjson.c:943: warning: implicit declaration of function `PyString_Check'
cjson.c:952: warning: implicit declaration of function `PyString_Concat'
cjson.c:965: warning: assignment makes pointer from integer without a cast
cjson.c:974: warning: assignment makes pointer from integer without a cast
cjson.c:984: warning: assignment makes pointer from integer without a cast
cjson.c:987: warning: assignment makes pointer from integer without a cast
cjson.c: In function `encode_object':
cjson.c:1002: warning: return makes pointer from integer without a cast
cjson.c:1004: warning: return makes pointer from integer without a cast
cjson.c:1006: warning: return makes pointer from integer without a cast
cjson.c:1014: warning: return makes pointer from integer without a cast
cjson.c:1017: warning: return makes pointer from integer without a cast
cjson.c:1019: warning: return makes pointer from integer without a cast
cjson.c:1024: warning: implicit declaration of function `PyInt_Check'
cjson.c: In function `JSON_decode':
cjson.c:1072: warning: implicit declaration of function
`PyString_AsStringAndSiz
e'
cjson.c: In function `initcjson':
cjson.c:1129: warning: implicit declaration of function `Py_InitModule3'
cjson.c:1129: warning: assignment makes pointer from integer without a cast
cjson.c:1132: warning: `return' with no value, in function returning
non-void
cjson.c:1136: warning: `return' with no value, in function returning
non-void
cjson.c:1142: warning: `return' with no value, in function returning
non-void
cjson.c:1148: warning: `return' with no value, in function returning
non-void
cjson.c:1153:50: too many decimal points in number
*error: command 'gcc' failed with exit status 1*

He compilado un par de programas de prueba con gcc en cmd y me los ha
compilado sin problema( Pensé que GCC no funcionaba ) así que no se que
hacer.Muchas gracias por todo.

He seguido los pasos que vienen en este pdf llamado Instructivo de
instalación de MinGW/Msys

https://www.google.com/search?q=Instructivo+de+instalaci%C3%B3n+de+MinGW%2FMsys&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:es-ES:official&client=firefox-a

Un saludo.
------------ pr?xima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://lists.plone.org/pipermail/plone-usuarios-plone/attachments/20111205/e2bed3f8/attachment.html>


More information about the Usuarios-Plone mailing list