Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL not imported in timer.py #316

Open
Daniel-Chin opened this issue Jan 14, 2019 · 0 comments · May be fixed by #336
Open

SDL not imported in timer.py #316

Daniel-Chin opened this issue Jan 14, 2019 · 0 comments · May be fixed by #336

Comments

@Daniel-Chin
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant