我有一个python pygame程序,它模拟赛车,驾驶和躲避街区,这个程序100%工作直到今天我尝试它,现在它给我一个错误,错误是:Warning (from warnings module):
File "/home/vandeventer/Documents/Pieter/pygame.resies.py", line 50
largeText = pygame.font.Font(None,75)
RuntimeWarning: use font: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory
(ImportError: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory)
Traceback (most recent call last):
File "/home/vandeventer/Documents/Pieter/pygame.resies.py", line 151, in
begin()
File "/home/vandeventer/Documents/Pieter/pygame.resies.py", line 29, in begin
message_display(over)
File "/home/vandeventer/Documents/Pieter/pygame.resies.py", line 50, in message_display
largeText = pygame.font.Font(None,75)
File "/usr/local/lib/python3.4/dist-packages/pygame/__init__.py", line 74, in __getattr__
raise NotImplementedError(MissingPygameModule)
NotImplementedError: font module not available
(ImportError: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory)
这让我觉得我使用的字体有些问题,这真的非常令人沮丧,我真的看不出任何错误,以下是我的代码:
^{pr2}$
我使用字体的唯一部分是在message_display()和things\u dodged()中
我真的需要帮助,谢谢