Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Problem installing on Windows 7 #35

Closed
gerigk opened this Issue · 3 comments

4 participants

Arthur Gerigk c00kiemonster Jonas Tärnström nikolajpedersen
Arthur Gerigk

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.

Jonas Tärnström
Collaborator
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)

Jonas Tärnström jskorpan closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.