Hi, when i try to install kivent on my fedora, i've got lot of error with cython.
Version of kivy : 1.8.1
Version of Cython : 0.20.1
Version of Cymunk : Lastest
Kivy and Cymunk are installed because I use them all time.
They are exported as you said in README file.
Do you have any ideas ? Thanks you.
My logs : "
running install
running build
running build_ext
cythoning kivent/init.pyx to kivent/init.c
Error compiling Cython file:
...
from kivy.graphics.vertex cimport VertexFormat
^
kivent/cmesh.pyx:1:0: 'kivy.graphics.vertex.pxd' not found
Error compiling Cython file:
...
from kivy.graphics.vertex cimport VertexFormat
^
kivent/cmesh.pyx:1:0: 'VertexFormat.pxd' not found
Error compiling Cython file:
...
from kivy.graphics.vertex cimport VertexFormat
^
kivent/cmesh.pyx:1:34: Name 'VertexFormat' not declared in module 'kivy.graphics.vertex'
Error compiling Cython file:
...
from kivy.graphics.vertex cimport VertexFormat
from kivy.graphics.instructions cimport VertexInstruction
^
kivent/cmesh.pyx:2:0: 'kivy.graphics.instructions.pxd' not found
Error compiling Cython file:
...
from kivy.graphics.vertex cimport VertexFormat
from kivy.graphics.instructions cimport VertexInstruction
^
kivent/cmesh.pyx:2:0: 'VertexInstruction.pxd' not found
Error compiling Cython file:
...
from kivy.graphics.vertex cimport VertexFormat
from kivy.graphics.instructions cimport VertexInstruction
^
kivent/cmesh.pyx:2:40: Name 'VertexInstruction' not declared in module 'kivy.graphics.instructions'
Error compiling Cython file:
...
from kivy.graphics.vertex cimport VertexFormat
from kivy.graphics.instructions cimport VertexInstruction
from kivy.graphics.c_opengl cimport *
from kivy.graphics.vbo cimport VBO, VertexBatch
^
kivent/cmesh.pyx:4:0: 'kivy.graphics.vbo.pxd' not found
Error compiling Cython file:
...
from kivy.graphics.vertex cimport VertexFormat
from kivy.graphics.instructions cimport VertexInstruction
from kivy.graphics.c_opengl cimport *
from kivy.graphics.vbo cimport VBO, VertexBatch
^
kivent/cmesh.pyx:4:0: 'VBO.pxd' not found
Error compiling Cython file:
...
from kivy.graphics.vertex cimport VertexFormat
from kivy.graphics.instructions cimport VertexInstruction
from kivy.graphics.c_opengl cimport *
from kivy.graphics.vbo cimport VBO, VertexBatch
^
kivent/cmesh.pyx:4:31: Name 'VBO' not declared in module 'kivy.graphics.vbo'
Error compiling Cython file:
...
from kivy.graphics.vertex cimport VertexFormat
from kivy.graphics.instructions cimport VertexInstruction
from kivy.graphics.c_opengl cimport *
from kivy.graphics.vbo cimport VBO, VertexBatch
^
kivent/cmesh.pyx:4:0: 'VertexBatch.pxd' not found
Error compiling Cython file:
...
from kivy.graphics.vertex cimport VertexFormat
from kivy.graphics.instructions cimport VertexInstruction
from kivy.graphics.c_opengl cimport *
from kivy.graphics.vbo cimport VBO, VertexBatch
^
kivent/cmesh.pyx:4:36: Name 'VertexBatch' not declared in module 'kivy.graphics.vbo'
Error compiling Cython file:
...
from kivy.graphics.c_opengl cimport *
from kivy.graphics.vbo cimport VBO, VertexBatch
from kivy.logger import Logger
cdef class CMesh(VertexInstruction):
^
kivent/cmesh.pyx:8:5: 'VertexInstruction' is not declared
Error compiling Cython file:
...
cdef class CMesh(VertexInstruction):
cdef void* _vertices
cdef void* _indices
cdef VertexFormat vertex_format
^
kivent/cmesh.pyx:11:9: 'VertexFormat' is not a type identifier
Error compiling Cython file:
...
from kivy.properties import (StringProperty, ListProperty, ObjectProperty,
BooleanProperty, NumericProperty)
import cymunk
from cymunk import Poly
from cymunk cimport Space, BB, Body, Shape, Circle, BoxShape, Vec2d
^
kivent/physics.pyx:5:0: 'cymunk.pxd' not found
Error compiling Cython file:
...
from kivy.properties import (StringProperty, ListProperty, ObjectProperty,
BooleanProperty, NumericProperty)
import cymunk
from cymunk import Poly
from cymunk cimport Space, BB, Body, Shape, Circle, BoxShape, Vec2d
^
kivent/physics.pyx:5:0: 'Space.pxd' not found
Error compiling Cython file:
...
from kivy.properties import (StringProperty, ListProperty, ObjectProperty,
BooleanProperty, NumericProperty)
import cymunk
from cymunk import Poly
from cymunk cimport Space, BB, Body, Shape, Circle, BoxShape, Vec2d
^
kivent/physics.pyx:5:20: Name 'Space' not declared in module 'cymunk'
Error compiling Cython file:
...
from kivy.properties import (StringProperty, ListProperty, ObjectProperty,
BooleanProperty, NumericProperty)
import cymunk
from cymunk import Poly
from cymunk cimport Space, BB, Body, Shape, Circle, BoxShape, Vec2d
^
kivent/physics.pyx:5:0: 'BB.pxd' not found
Error compiling Cython file:
...
from kivy.properties import (StringProperty, ListProperty, ObjectProperty,
BooleanProperty, NumericProperty)
import cymunk
from cymunk import Poly
from cymunk cimport Space, BB, Body, Shape, Circle, BoxShape, Vec2d
^
kivent/physics.pyx:5:27: Name 'BB' not declared in module 'cymunk'
Error compiling Cython file:
...
from kivy.properties import (StringProperty, ListProperty, ObjectProperty,
BooleanProperty, NumericProperty)
import cymunk
from cymunk import Poly
from cymunk cimport Space, BB, Body, Shape, Circle, BoxShape, Vec2d
^
kivent/physics.pyx:5:0: 'Body.pxd' not found
Error compiling Cython file:
...
from kivy.properties import (StringProperty, ListProperty, ObjectProperty,
BooleanProperty, NumericProperty)
import cymunk
from cymunk import Poly
from cymunk cimport Space, BB, Body, Shape, Circle, BoxShape, Vec2d
^
kivent/physics.pyx:5:31: Name 'Body' not declared in module 'cymunk'
Error compiling Cython file:
...
from kivy.properties import (StringProperty, ListProperty, ObjectProperty,
BooleanProperty, NumericProperty)
import cymunk
from cymunk import Poly
from cymunk cimport Space, BB, Body, Shape, Circle, BoxShape, Vec2d
^
kivent/physics.pyx:5:0: 'Shape.pxd' not found
Error compiling Cython file:
...
from kivy.properties import (StringProperty, ListProperty, ObjectProperty,
BooleanProperty, NumericProperty)
import cymunk
from cymunk import Poly
from cymunk cimport Space, BB, Body, Shape, Circle, BoxShape, Vec2d
^
kivent/physics.pyx:5:37: Name 'Shape' not declared in module 'cymunk'
Error compiling Cython file:
...
from kivy.properties import (StringProperty, ListProperty, ObjectProperty,
BooleanProperty, NumericProperty)
import cymunk
from cymunk import Poly
from cymunk cimport Space, BB, Body, Shape, Circle, BoxShape, Vec2d
^
kivent/physics.pyx:5:0: 'Circle.pxd' not found
Error compiling Cython file:
...
from kivy.properties import (StringProperty, ListProperty, ObjectProperty,
BooleanProperty, NumericProperty)
import cymunk
from cymunk import Poly
from cymunk cimport Space, BB, Body, Shape, Circle, BoxShape, Vec2d
^
kivent/physics.pyx:5:44: Name 'Circle' not declared in module 'cymunk'
Error compiling Cython file:
...
from kivy.properties import (StringProperty, ListProperty, ObjectProperty,
BooleanProperty, NumericProperty)
import cymunk
from cymunk import Poly
from cymunk cimport Space, BB, Body, Shape, Circle, BoxShape, Vec2d
^
kivent/physics.pyx:5:0: 'BoxShape.pxd' not found
Error compiling Cython file:
...
from kivy.properties import (StringProperty, ListProperty, ObjectProperty,
BooleanProperty, NumericProperty)
import cymunk
from cymunk import Poly
from cymunk cimport Space, BB, Body, Shape, Circle, BoxShape, Vec2d
^
kivent/physics.pyx:5:52: Name 'BoxShape' not declared in module 'cymunk'
Error compiling Cython file:
...
from kivy.properties import (StringProperty, ListProperty, ObjectProperty,
BooleanProperty, NumericProperty)
import cymunk
from cymunk import Poly
from cymunk cimport Space, BB, Body, Shape, Circle, BoxShape, Vec2d
^
kivent/physics.pyx:5:0: 'Vec2d.pxd' not found
Error compiling Cython file:
...
from kivy.properties import (StringProperty, ListProperty, ObjectProperty,
BooleanProperty, NumericProperty)
import cymunk
from cymunk import Poly
from cymunk cimport Space, BB, Body, Shape, Circle, BoxShape, Vec2d
^
kivent/physics.pyx:5:62: Name 'Vec2d' not declared in module 'cymunk'
Error compiling Cython file:
...
from cymunk cimport Space, BB, Body, Shape, Circle, BoxShape, Vec2d
from libc.math cimport M_PI_2
cdef class PhysicsComponent:
cdef Body _body
^
kivent/physics.pyx:10:9: 'Body' is not a type identifier
Error compiling Cython file:
...
cdef class PhysicsComponent:
cdef Body _body
cdef list _shapes
cdef str _shape_type
def __cinit__(self, Body body, list shapes, str shape_type):
^
kivent/physics.pyx:14:24: 'Body' is not a type identifier
Error compiling Cython file:
...
self._shape_type = shape_type
property body:
def __get__(self):
return self._body
def __set__(self, Body value):
^
kivent/physics.pyx:22:26: 'Body' is not a type identifier
Error compiling Cython file:
...
space.collision_slop = self.collision_slop
space.register_bb_query_func(self.bb_query_func)
space.register_segment_query_func(self.segment_query_func)
def bb_query_func(self, Shape shape):
^
kivent/physics.pyx:152:28: 'Shape' is not a type identifier
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
^
kivent/steering.pyx:2:0: 'GearJoint.pxd' not found
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
^
kivent/steering.pyx:2:21: Name 'GearJoint' not declared in module 'cymunk'
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
^
kivent/steering.pyx:2:0: 'PivotJoint.pxd' not found
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
^
kivent/steering.pyx:2:32: Name 'PivotJoint' not declared in module 'cymunk'
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
^
kivent/steering.pyx:2:44: Name 'Vec2d' not declared in module 'cymunk'
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
^
kivent/steering.pyx:2:0: 'cpVect.pxd' not found
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
^
kivent/steering.pyx:2:51: Name 'cpVect' not declared in module 'cymunk'
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
^
kivent/steering.pyx:2:0: 'cpv.pxd' not found
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
^
kivent/steering.pyx:2:59: Name 'cpv' not declared in module 'cymunk'
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
^
kivent/steering.pyx:2:0: 'cpFloat.pxd' not found
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
cpFloat, cpBool, cpvunrotate, cpvrotate, cpvdot, cpvsub, cpvnear)
^
kivent/steering.pyx:3:4: Name 'cpFloat' not declared in module 'cymunk'
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
^
kivent/steering.pyx:2:0: 'cpBool.pxd' not found
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
cpFloat, cpBool, cpvunrotate, cpvrotate, cpvdot, cpvsub, cpvnear)
^
kivent/steering.pyx:3:13: Name 'cpBool' not declared in module 'cymunk'
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
^
kivent/steering.pyx:2:0: 'cpvunrotate.pxd' not found
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
cpFloat, cpBool, cpvunrotate, cpvrotate, cpvdot, cpvsub, cpvnear)
^
kivent/steering.pyx:3:21: Name 'cpvunrotate' not declared in module 'cymunk'
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
^
kivent/steering.pyx:2:0: 'cpvrotate.pxd' not found
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
cpFloat, cpBool, cpvunrotate, cpvrotate, cpvdot, cpvsub, cpvnear)
^
kivent/steering.pyx:3:34: Name 'cpvrotate' not declared in module 'cymunk'
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
^
kivent/steering.pyx:2:0: 'cpvdot.pxd' not found
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
cpFloat, cpBool, cpvunrotate, cpvrotate, cpvdot, cpvsub, cpvnear)
^
kivent/steering.pyx:3:45: Name 'cpvdot' not declared in module 'cymunk'
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
^
kivent/steering.pyx:2:0: 'cpvsub.pxd' not found
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
cpFloat, cpBool, cpvunrotate, cpvrotate, cpvdot, cpvsub, cpvnear)
^
kivent/steering.pyx:3:53: Name 'cpvsub' not declared in module 'cymunk'
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
^
kivent/steering.pyx:2:0: 'cpvnear.pxd' not found
Error compiling Cython file:
...
from cymunk cimport (GearJoint, PivotJoint, Vec2d, cpVect, cpv,
cpFloat, cpBool, cpvunrotate, cpvrotate, cpvdot, cpvsub, cpvnear)
^
kivent/steering.pyx:3:61: Name 'cpvnear' not declared in module 'cymunk'
Error compiling Cython file:
...
from libc.math cimport atan2
cdef class SteeringComponent:
cdef Body _steering_body
^
kivent/steering.pyx:9:9: 'Body' is not a type identifier
Error compiling Cython file:
...
from libc.math cimport atan2
cdef class SteeringComponent:
cdef Body _steering_body
cdef PivotJoint _pivot
^
kivent/steering.pyx:10:9: 'PivotJoint' is not a type identifier
Error compiling Cython file:
...
cdef class SteeringComponent:
cdef Body _steering_body
cdef PivotJoint _pivot
cdef GearJoint _gear
^
kivent/steering.pyx:11:9: 'GearJoint' is not a type identifier
Error compiling Cython file:
...
cdef GearJoint _gear
cdef tuple _target
cdef float _speed
cdef bool _active
def __cinit__(self, Body body, PivotJoint pivot, GearJoint gear,
^
kivent/steering.pyx:16:24: 'Body' is not a type identifier
Error compiling Cython file:
...
cdef GearJoint _gear
cdef tuple _target
cdef float _speed
cdef bool _active
def __cinit__(self, Body body, PivotJoint pivot, GearJoint gear,
^
kivent/steering.pyx:16:35: 'PivotJoint' is not a type identifier
Error compiling Cython file:
...
cdef GearJoint _gear
cdef tuple _target
cdef float _speed
cdef bool _active
def __cinit__(self, Body body, PivotJoint pivot, GearJoint gear,
^
kivent/steering.pyx:16:53: 'GearJoint' is not a type identifier
Error compiling Cython file:
...
self._active = True
property steering_body:
def __get__(self):
return self._steering_body
def __set__(self, Body body):
^
kivent/steering.pyx:28:26: 'Body' is not a type identifier
Error compiling Cython file:
...
self._steering_body = body
property pivot:
def __get__(self):
return self._pivot
def __set__(self, PivotJoint pivot):
^
kivent/steering.pyx:34:26: 'PivotJoint' is not a type identifier
Error compiling Cython file:
...
self._pivot = pivot
property gear:
def __get__(self):
return self._gear
def __set__(self, GearJoint gear):
^
kivent/steering.pyx:40:26: 'GearJoint' is not a type identifier
Error compiling Cython file:
...
cdef void build(self):
cdef int i
cdef float* vertices
cdef VertexBatch batch = self.batch
^
kivent/cmesh.pyx:30:13: 'VertexBatch' is not a type identifier
warning: kivent/particleemitter.pyx:9:14: cdef variable 'paused' declared after it is used
Error compiling Cython file:
...
first_id = arbiter.shapes[0].body.data
second_id = arbiter.shapes[1].body.data
'''
cdef Space space = self.space
^
kivent/physics.pyx:128:13: 'Space' is not a type identifier
Error compiling Cython file:
...
def on_damping(self, instance, value):
self.space.damping = value
def init_physics(self):
'''Internal function that handles initalizing the Cymunk Space'''
cdef Space space
^
kivent/physics.pyx:141:13: 'Space' is not a type identifier
Error compiling Cython file:
...
ignore_groups (list): list of collision_types to ignore during
this query.
Queries collisions inside a box.
'''
cdef Space space = self.space
^
kivent/physics.pyx:197:13: 'Space' is not a type identifier
Error compiling Cython file:
...
shape_type.
'''
cdef dict shape = entity_component_dict['col_shapes'][0]
cdef float moment
cdef Body body
^
kivent/physics.pyx:234:13: 'Body' is not a type identifier
Error compiling Cython file:
...
'''
cdef dict shape = entity_component_dict['col_shapes'][0]
cdef float moment
cdef Body body
cdef Space space
^
kivent/physics.pyx:235:13: 'Space' is not a type identifier
Error compiling Cython file:
...
cdef dict shape = entity_component_dict['col_shapes'][0]
cdef float moment
cdef Body body
cdef Space space
cdef list shapes
cdef Shape new_shape
^
kivent/physics.pyx:237:13: 'Shape' is not a type identifier
Error compiling Cython file:
...
entity, args)
cdef str system_id = self.system_id
cdef PhysicsComponent physics = getattr(entity, system_id)
cdef PositionComponent position = entity.position
cdef RotateComponent rotate = entity.rotate
cdef Body body = physics._body
^
kivent/physics.pyx:304:13: 'Body' is not a type identifier
Error compiling Cython file:
...
cdef PhysicsComponent physics = getattr(entity, system_id)
cdef PositionComponent position = entity.position
cdef RotateComponent rotate = entity.rotate
cdef Body body = physics._body
rotate._r = body.angle - M_PI_2
cdef Vec2d p_position = body.position
^
kivent/physics.pyx:306:13: 'Vec2d' is not a type identifier
Error compiling Cython file:
...
cdef Vec2d p_position = body.position
position._x = p_position.x
position._y = p_position.y
def remove_entity(self, int entity_id):
cdef Space space = self.space
^
kivent/physics.pyx:311:13: 'Space' is not a type identifier
Error compiling Cython file:
...
def remove_entity(self, int entity_id):
cdef Space space = self.space
cdef list entities = self.gameworld.entities
cdef object entity = entities[entity_id]
cdef PhysicsComponent system_data = getattr(entity, self.system_id)
cdef Shape shape
^
kivent/physics.pyx:315:13: 'Shape' is not a type identifier
Error compiling Cython file:
...
cdef Space space = self.space
cdef list entities = self.gameworld.entities
cdef object entity = entities[entity_id]
cdef PhysicsComponent system_data = getattr(entity, self.system_id)
cdef Shape shape
cdef Body body = system_data._body
^
kivent/physics.pyx:316:13: 'Body' is not a type identifier
Error compiling Cython file:
...
cdef str system_id = self.system_id
cdef object entity
cdef PhysicsComponent system_data
cdef RotateComponent rotate
cdef PositionComponent position
cdef Vec2d p_position
^
kivent/physics.pyx:334:13: 'Vec2d' is not a type identifier
Error compiling Cython file:
...
cdef object entity
cdef PhysicsComponent system_data
cdef RotateComponent rotate
cdef PositionComponent position
cdef Vec2d p_position
cdef Body body
^
kivent/physics.pyx:335:13: 'Body' is not a type identifier
Error compiling Cython file:
...
class SteeringSystem(GameSystem):
physics_system = StringProperty(None)
updateable = BooleanProperty(True)
def generate_component(self, dict args):
cdef Body body = args['body']
^
kivent/steering.pyx:85:13: 'Body' is not a type identifier
Error compiling Cython file:
...
physics_system = StringProperty(None)
updateable = BooleanProperty(True)
def generate_component(self, dict args):
cdef Body body = args['body']
cdef PivotJoint pivot = args['pivot']
^
kivent/steering.pyx:86:13: 'PivotJoint' is not a type identifier
Error compiling Cython file:
...
updateable = BooleanProperty(True)
def generate_component(self, dict args):
cdef Body body = args['body']
cdef PivotJoint pivot = args['pivot']
cdef GearJoint gear = args['gear']
^
kivent/steering.pyx:87:13: 'GearJoint' is not a type identifier
Error compiling Cython file:
...
def create_component(self, object entity, dict args):
cdef object gameworld = self.gameworld
cdef dict systems = gameworld.systems
cdef str physics_id = self.physics_system
cdef object physics_system = systems[physics_id]
cdef Body steering_body = Body(None, None)
^
kivent/steering.pyx:98:13: 'Body' is not a type identifier
Error compiling Cython file:
...
cdef dict systems = gameworld.systems
cdef str physics_id = self.physics_system
cdef object physics_system = systems[physics_id]
cdef Body steering_body = Body(None, None)
cdef PhysicsComponent physics_data = getattr(entity, physics_id)
cdef Body body = physics_data.body
^
kivent/steering.pyx:100:13: 'Body' is not a type identifier
Error compiling Cython file:
...
cdef str physics_id = self.physics_system
cdef object physics_system = systems[physics_id]
cdef Body steering_body = Body(None, None)
cdef PhysicsComponent physics_data = getattr(entity, physics_id)
cdef Body body = physics_data.body
cdef PivotJoint pivot = PivotJoint(steering_body, body, (0, 0), (0, 0))
^
kivent/steering.pyx:101:13: 'PivotJoint' is not a type identifier
Error compiling Cython file:
...
cdef object physics_system = systems[physics_id]
cdef Body steering_body = Body(None, None)
cdef PhysicsComponent physics_data = getattr(entity, physics_id)
cdef Body body = physics_data.body
cdef PivotJoint pivot = PivotJoint(steering_body, body, (0, 0), (0, 0))
cdef GearJoint gear = GearJoint(steering_body, body, 0.0, 1.0)
^
kivent/steering.pyx:102:13: 'GearJoint' is not a type identifier
Error compiling Cython file:
...
pivot.max_bias = 0.0
pivot.error_bias = 0.
gear.max_bias = args['turn_speed']
gear.max_force = args['stability']
pivot.max_force = args['max_force']
cdef Space space = physics_system.space
^
kivent/steering.pyx:109:13: 'Space' is not a type identifier
Error compiling Cython file:
...
cdef list entities = gameworld.entities
cdef object entity = entities[entity_id]
cdef SteeringComponent steering_data = getattr(entity, system_id)
cdef str physics_id = self.physics_system
cdef object physics_system = gameworld.systems[physics_id]
cdef Space space = physics_system.space
^
kivent/steering.pyx:124:13: 'Space' is not a type identifier
Error compiling Cython file:
...
cdef int entity_id
cdef str system_id = self.system_id
cdef str physics_id = self.physics_system
cdef SteeringComponent steering_data
cdef PhysicsComponent physics_data
cdef Body body
^
kivent/steering.pyx:138:13: 'Body' is not a type identifier
Error compiling Cython file:
...
cdef str system_id = self.system_id
cdef str physics_id = self.physics_system
cdef SteeringComponent steering_data
cdef PhysicsComponent physics_data
cdef Body body
cdef Body steering_body
^
kivent/steering.pyx:139:13: 'Body' is not a type identifier
Error compiling Cython file:
...
cdef SteeringComponent steering_data
cdef PhysicsComponent physics_data
cdef Body body
cdef Body steering_body
cdef float angle
cdef cpVect v1
^
kivent/steering.pyx:141:13: 'cpVect' is not a type identifier
Error compiling Cython file:
...
cdef PhysicsComponent physics_data
cdef Body body
cdef Body steering_body
cdef float angle
cdef cpVect v1
cdef cpVect target
^
kivent/steering.pyx:142:13: 'cpVect' is not a type identifier
Error compiling Cython file:
...
cdef Body steering_body
cdef float angle
cdef cpVect v1
cdef cpVect target
cdef tuple target_pos
cdef cpVect move_delta
^
kivent/steering.pyx:144:13: 'cpVect' is not a type identifier
Error compiling Cython file:
...
cdef tuple target_pos
cdef cpVect move_delta
cdef float turn
cdef tuple velocity_rot
cdef float speed
cdef cpVect unrot
^
kivent/steering.pyx:148:13: 'cpVect' is not a type identifier
Error compiling Cython file:
...
cdef VertexFormat vertex_format
cdef long vcount
cdef long icount
def __init__(self, **kwargs):
VertexInstruction.__init__(self, **kwargs)
^
kivent/cmesh.pyx:16:25: undeclared name not builtin: VertexInstruction
Error compiling Cython file:
...
def __init__(self, **kwargs):
VertexInstruction.__init__(self, **kwargs)
fmt = kwargs.get('fmt')
if fmt is not None:
self.vertex_format = VertexFormat(*fmt)
^
kivent/cmesh.pyx:19:45: undeclared name not builtin: VertexFormat
Error compiling Cython file:
...
def init(self, *_kwargs):
VertexInstruction.init(self, *_kwargs)
fmt = kwargs.get('fmt')
if fmt is not None:
self.vertex_format = VertexFormat(*fmt)
self.batch = VertexBatch(vbo=VBO(self.vertex_format))
^
kivent/cmesh.pyx:20:36: undeclared name not builtin: VertexBatch
Error compiling Cython file:
...
vertices = <float >self._vertices
indices = <unsigned short>self._indices
cdef long vcount = self.vcount
cdef vsize = batch.vbo.vertex_format.vsize
cdef long icount = self.icount
batch.set_data(vertices, (vcount / vsize), indices, icount)
^
kivent/cmesh.pyx:37:31: Cannot convert 'float *' to Python object
Error compiling Cython file:
...
vertices = <float >self._vertices
indices = <unsigned short>self._indices
cdef long vcount = self.vcount
cdef vsize = batch.vbo.vertex_format.vsize
cdef long icount = self.icount
batch.set_data(vertices, (vcount / vsize), indices, icount)
^
kivent/cmesh.pyx:37:63: Cannot convert 'unsigned short *' to Python object
warning: kivent/particle.pyx:343:37: Not all members given for struct 'keParticle'
warning: kivent/particle.pyx:343:37: Not all members given for struct 'keParticle'
Error compiling Cython file:
...
self.space.damping = value
def init_physics(self):
'''Internal function that handles initalizing the Cymunk Space'''
cdef Space space
self.space = space = Space()
^
kivent/physics.pyx:142:34: undeclared name not builtin: Space
Error compiling Cython file:
...
Queries collisions inside a box.
'''
cdef Space space = self.space
self.ignore_groups=ignore_groups
bb = BB(
^
kivent/physics.pyx:199:15: undeclared name not builtin: BB
Error compiling Cython file:
...
shape['shape_info']['width'],
shape['shape_info']['height'])
else:
print 'error: shape ', shape['shape_type'], 'not supported'
if entity_component_dict['mass'] == 0:
body = Body(None, None)
^
kivent/physics.pyx:254:23: undeclared name not builtin: Body
Error compiling Cython file:
...
space.add(body)
shapes = []
for shape in entity_component_dict['col_shapes']:
shape_info = shape['shape_info']
if shape['shape_type'] == 'circle':
new_shape = Circle(body, shape_info['outer_radius'])
^
kivent/physics.pyx:275:34: undeclared name not builtin: Circle
Error compiling Cython file:
...
shape_info = shape['shape_info']
if shape['shape_type'] == 'circle':
new_shape = Circle(body, shape_info['outer_radius'])
new_shape.friction = shape['friction']
elif shape['shape_type'] == 'box':
new_shape = BoxShape(
^
kivent/physics.pyx:278:36: undeclared name not builtin: BoxShape
Error compiling Cython file:
...
cdef str physics_id = self.physics_system
cdef object physics_system = systems[physics_id]
cdef Body steering_body = Body(None, None)
cdef PhysicsComponent physics_data = getattr(entity, physics_id)
cdef Body body = physics_data.body
cdef PivotJoint pivot = PivotJoint(steering_body, body, (0, 0), (0, 0))
^
kivent/steering.pyx:101:42: undeclared name not builtin: PivotJoint
Error compiling Cython file:
...
cdef object physics_system = systems[physics_id]
cdef Body steering_body = Body(None, None)
cdef PhysicsComponent physics_data = getattr(entity, physics_id)
cdef Body body = physics_data.body
cdef PivotJoint pivot = PivotJoint(steering_body, body, (0, 0), (0, 0))
cdef GearJoint gear = GearJoint(steering_body, body, 0.0, 1.0)
^
kivent/steering.pyx:102:39: undeclared name not builtin: GearJoint
Error compiling Cython file:
...
try:
x, y = target_pos
except:
steering_body.velocity = (0., 0.)
continue
target = cpv(x, y)
^
kivent/steering.pyx:165:28: undeclared name not builtin: cpv
Error compiling Cython file:
...
target = cpv(x, y)
body_pos = body._body.p
v1 = body._body.rot
angle = body.angle
speed = steering_data._speed
move_delta = cpvsub(target, body_pos)
^
kivent/steering.pyx:170:35: undeclared name not builtin: cpvsub
Error compiling Cython file:
...
body_pos = body._body.p
v1 = body._body.rot
angle = body.angle
speed = steering_data._speed
move_delta = cpvsub(target, body_pos)
unrot = cpvunrotate(v1, move_delta)
^
kivent/steering.pyx:171:35: undeclared name not builtin: cpvunrotate
Error compiling Cython file:
...
speed = steering_data._speed
move_delta = cpvsub(target, body_pos)
unrot = cpvunrotate(v1, move_delta)
turn = atan2(unrot.y, unrot.x)
steering_body.angle = angle - turn
if cpvnear(target, body_pos, 75.0):
^
kivent/steering.pyx:174:26: undeclared name not builtin: cpvnear
Error compiling Cython file:
...
if cpvnear(target, body_pos, 75.0):
velocity_rot = (0., 0.)
elif turn <= -1.3 or turn >= 1.3:
velocity_rot = (0., 0.)
else:
new_vec = cpvrotate(v1, cpv(speed, 0.0))
^
kivent/steering.pyx:179:39: undeclared name not builtin: cpvrotate
building 'kivent' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c kivent/init.c -o build/temp.linux-x86_64-2.7/kivent/init.o -std=c99 -ffast-math
kivent/init.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
#error Do not use this file, it is the result of a failed Cython compilation.
"