Problem installing on Windows 7 #35

Closed
gerigk opened this Issue Feb 11, 2012 · 3 comments

Projects

None yet

4 participants

@gerigk
gerigk commented Feb 11, 2012

Can anybody help me out? I do not have this problem when building other packages (e.g. Pandas)

python setup.py build --compiler=mingw32
running build
running build_ext
building 'ujson' extension
creating build
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\python
creating build\temp.win32-2.7\Release\lib
c:\Rtools\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I./python -I./lib -IC:\P
ython27\include -IC:\Python27\PC -c ./python/ujson.c -o build\temp.win32-2.7\Rel
ease.\python\ujson.o
c:\Rtools\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I./python -I./lib -IC:\P
ython27\include -IC:\Python27\PC -c ./python/objToJSON.c -o build\temp.win32-2.7
\Release.\python\objtojson.o
In file included from ./python/objToJSON.c:4:0:
./lib/ultrajson.h:83:26: error: conflicting types for 'uint32_t'
c:\rtools\mingw\bin../lib/gcc/mingw32/4.5.0/../../../../include/stdint.h:32:20:
note: previous declaration of 'uint32_t' was here
./python/objToJSON.c: In function 'PyLongToINT64':
./python/objToJSON.c:101:12: warning: unused variable 'obj'
./python/objToJSON.c: In function 'objToJSON':
./python/objToJSON.c:695:3: warning: initialization from incompatible pointer ty
pe
./python/objToJSON.c:706:3: warning: initialization from incompatible pointer ty
pe
./python/objToJSON.c: At top level:
./python/objToJSON.c:92:14: warning: 'PyIntToINT64' defined but not used
error: command 'gcc' failed with exit status 1

@c00kiemonster

Same problem here with win7. I tried both the manual "python setup.py build --compiler=mingw32" and "easy_install ujson", but both caused the same error as OP had.

@jskorpan
Member

There seems to be issues with compiling on mingw.
I'll see if I or someone else can have a look at it shortly. In the mean
time use MSVC or Linux/OSX

Thanks!

Den 11 februari 2012 13:09 skrev Arthur Gerigk <
reply@reply.github.com

:

Can anybody help me out? I do not have this problem when building other
packages (e.g. Pandas)

python setup.py build --compiler=mingw32
running build
running build_ext
building 'ujson' extension
creating build
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\python
creating build\temp.win32-2.7\Release\lib
c:\Rtools\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I./python -I./lib
-IC:\P
ython27\include -IC:\Python27\PC -c ./python/ujson.c -o
build\temp.win32-2.7\Rel
ease.\python\ujson.o
c:\Rtools\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I./python -I./lib
-IC:\P
ython27\include -IC:\Python27\PC -c ./python/objToJSON.c -o
build\temp.win32-2.7
\Release.\python\objtojson.o
In file included from ./python/objToJSON.c:4:0:
./lib/ultrajson.h:83:26: error: conflicting types for 'uint32_t'

c:\rtools\mingw\bin../lib/gcc/mingw32/4.5.0/../../../../include/stdint.h:32:20:
note: previous declaration of 'uint32_t' was here
./python/objToJSON.c: In function 'PyLongToINT64':
./python/objToJSON.c:101:12: warning: unused variable 'obj'
./python/objToJSON.c: In function 'objToJSON':
./python/objToJSON.c:695:3: warning: initialization from incompatible
pointer ty
pe
./python/objToJSON.c:706:3: warning: initialization from incompatible
pointer ty
pe
./python/objToJSON.c: At top level:
./python/objToJSON.c:92:14: warning: 'PyIntToINT64' defined but not used
error: command 'gcc' failed with exit status 1


Reply to this email directly or view it on GitHub:
#35

Jonas Trnstrm
Product Manager
e-mail: jonas.tarnstrom@esn.me
skype: full name "Jonas Trnstrm"
phone: +46 (0)734 231 552

ESN Social Software AB
www.esn.me

@nikolajpedersen

I also have this error - need to compile to get the Pandas json support.
When I use MSVC (VS 2008) I get another error (I have created issue)

@jskorpan jskorpan closed this Apr 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment