in cocos\audio\SDL\timer.py,
Line 145: raise SDL.error.SDL_Exception(SDL.error.SDL_GetError())
It uses the SDL module.
But the SDL module is not imported in the file.
For me, simply adding import cocos.audio.SDL as SDL at the beginning of the file solves the problem.
in
cocos\audio\SDL\timer.py
, Line 145:raise SDL.error.SDL_Exception(SDL.error.SDL_GetError())
It uses the SDL module. But the SDL module is not imported in the file.For me, simply adding
import cocos.audio.SDL as SDL
at the beginning of the file solves the problem.