我和一個團隊的朋友們創造了這個遊戲,我現在想在linux下運行,Pygame打破Pydev之外。
我們開發它使用python 2.7和pygame的使用的Aptana Studio和代碼窗口通過有運行時,工作充分。
當它下載到Linux它不會加載說它找不到文件。然後我嘗試通過Windows中的CMD運行它,並且出現相同的錯誤。
錯誤至今
Traceback (most recent call last):
File "/home/user/Desktop/Raspberroids/mainmenu.py", line 144, in <module>
showMenu()
File "/home/user/Desktop/Raspberroids/mainmenu.py", line 107, in showMenu
menu.init(['Start','About','Quit'], surface)
File "/home/user/Desktop/Raspberroids/mainmenu.py", line 52, in init
self.create_strukture()
File "/home/user/Desktop/Raspberroids/mainmenu.py", line 73, in create_strukture
self.font = pygame.font.Font(self.font_path, self.fontsize)
IOError: unable to read font filename
和源是: https://github.com/ryanteck/RasPiThon/tree/master/Raspberroids/Source%20Code
發生在兩個2.7和2.6
誰能幫助?
謝謝:)現在工作:D – 2012-07-27 13:34:35
謝謝你這個照明的答案。 – invert 2013-06-15 19:06:41