Hi,
Thanks, Sam but apparently there is no Pygame for python3, it 'should' just
work. Pygame imports just fine which is odd. I can draw lines and rects no
problem. But when I type
pygame.font.Font(None, 25) # Or something to that effect...
I get the same problem. I think this covers Julians' email too (thanks). I
can't find any other Pygame in the repository (Fedora).
If I use
9. if pygame.font:
10. print("Font Found")
I get the output: "Font Found" which is really confusing.
This is the terminal output I get without importing font explicitly...
1. python3 ch1.py
2. Font found!
3. ch1.py:53: RuntimeWarning: use font: No module named font
4. (ImportError: No module named font)
5. font = pygame.font.Font(None, 25)
6. Traceback (most recent call last):
7. File "ch1.py", line 53, in <module>
8. font = pygame.font.Font(None, 25)
9. File "/usr/lib/python3.2/site-packages/pygame/__init__.py", line
70, in __getattr__
10. raise NotImplementedError(MissingPygameModule)
11. NotImplementedError: font module not available
12. (ImportError: No module named font)
On 28 February 2013 03:11, Julian <[email protected]> wrote:
> On 02/27/2013 06:51 PM, Kai Childheart wrote:
>
>> 5. import pygame
>> 6. import pygame.font
>> 7.
>> 8. pygame.init( )
>>
>
> I don't know if this is your problem, but you're normally not supposed to
> import pygame.font explicitly. It comes with the pygame module.
>
> If the font module is unavailable, you will get an error when you try to
> use a font.
>