python 2.7 - TypeError: Invalid background RGBA argument -
i moved yesterday windows xp sp3 windows 7 ultimate.i had few python 2.7 files working test(my first game) witch build , compiled fine on windows xp. after installing windows 7,i did uninstall , install python 2.7 , pygame , set path python , works in win cmd.but now,the same files not compile on windows 7,giving me error:'typeerror: invalid background rgba argument'.this error showed in line of code:
greetings = myriadprofont.render('hello:', 1, (0,0,255),none)
this first time in game font renderer called.as said,it compiled fine in win xp now...i did google search , not find useful,just discussion , no answers(just sugestion value none not accepted background , should remove it,which couldn't because message box appeared saying '[errno13] permission denied 'c:/ste/classes.py' ).help!
i made work without modifying in code.
it's before installed windows 7 (when had windows xp sp3) believe installed pygame windows python 2.7.8 http://www.lfd.uci.edu/~gohlke/pythonlibs/ , not http://www.pygame.org
i'm not 100% sure think that's it.
so uninstantiated pygame windows 7 (which believe installed http://www.pygame.org site) , reinstalled pygame http://lfd.uci.edu/~gohlke/pythonlibs/ pygame-1.9.2a0.win32-py2.7.exe , works without errors.
but still can't modify code if want because of same permission denied error.
how resolve issue?
Comments
Post a Comment