boskee / Minecraft

Simple Minecraft-inspired program using Python and Pyglet
MIT License
207 stars 33 forks source link

Cannot install. #38

Closed progval closed 11 years ago

progval commented 11 years ago
progval@Andromede:~/src/pyCraftr$ python setup.py install --user
running install
running build
running build_ext
cythoning world.py to world.c

Error compiling Cython file:
------------------------------------------------------------
...
    @cython.locals(block=object)
    cpdef object show_block(self, tuple position, bint immediate=?)

    @cython.locals(x=float, y=float, z=float,
                   index=int, count=int,
                   vertex_data=cython.list, texture_data=cython.list,
                                                              ^
------------------------------------------------------------

world.pxd:68:63: Not a type

Error compiling Cython file:
------------------------------------------------------------
...
    @cython.locals(block=object)
    cpdef object show_block(self, tuple position, bint immediate=?)

    @cython.locals(x=float, y=float, z=float,
                   index=int, count=int,
                   vertex_data=cython.list, texture_data=cython.list,
                                    ^
------------------------------------------------------------

world.pxd:68:37: Not a type
building 'world' extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c world.c -o build/temp.linux-x86_64-2.7/world.o
world.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error: command 'gcc' failed with exit status 1
BertrandBordage commented 11 years ago

Must be due to your Cython version. This should be fixed by this: https://github.com/BertrandBordage/Minecraft/commit/08534eac612bc352e1312b301225b8a0ff16ac96. Oh, and don't use setup.py install. It doesn't include non-python files, version number, etc. I intentionally do so, because installing is useless for now.

BertrandBordage commented 11 years ago

A friend met the same problem and it was fixed by the commit in the previous message. Reopen if you still have problems.