Attempt to index global 'sp' (a nil value)

Hello everyone, I’ve just started with Cocos2DX and Lua. First thing I did was running Lua Test Sample. Everything seems to be working fine, but i got this error when opening the Spine Test Scene. I want to learn how to create spine in Lua but got this error :

attempt to index global ‘sp’ (a nil value)

Here how to create in SpineTest.lua
sp.SkeletonAnimation:create("spine.json", "spine.atlas", 1.0)

in cocos/spine/SpineConstants

if nil == sp then
    return
end

sp.EventType =
{
    ANIMATION_START = 0, 
    ANIMATION_INTERRUPT = 1,
    ANIMATION_END = 2, 
    ANIMATION_COMPLETE = 3,
    ANIMATION_DISPOSE = 4,
    ANIMATION_EVENT = 5,
}

How can i create spine in Lua ? I already look into the sample test but got that error.

By the way, im using cocos v4. Still not found the solution

Anyone who can help me please ? does spine isnt available in v4 ?