Re: [pygame] The font module

2011-04-27 Thread stas zytkiewicz
On Wed, Apr 27, 2011 at 10:42 AM, Nathan BIAGINI nathan.o...@gmail.com wrote:
 Hi everyone,

 i currently using a Debian squeeze and i would like to run some application
 i have written before but it seems that the font module is not found.
Hi, I'm running squeeze also and it's my experience that python 2.7, which
is the version you seems to be using, isn't fully compatible with all
python libs. (at this moment)
I've uninstalled python2.7 so that everything is using python2.6 and then
pygame runs properly.

Greetings,
Stas


 there is no soundcard
 fonty.py:42: RuntimeWarning: use font: No module named font
 (ImportError: No module named font)
   font = pygame.font.Font(None, 80)
 Traceback (most recent call last):
   File fonty.py, line 100, in module
     if __name__ == '__main__': main()
   File fonty.py, line 42, in main
     font = pygame.font.Font(None, 80)
   File /usr/local/lib/python2.7/site-packages/pygame/__init__.py, line
 70, in __getattr__
     raise NotImplementedError(MissingPygameModule)
 NotImplementedError: font module not available
 (ImportError: No module named font)


 I got this traceback trying to run the fonty.py file in the examples
 repository of pygame. I have installed pygame via the python-game package
 and also via the sources but still no font module

 Thanks for reading me.




-- 
Free-source educational programs for schools
http://www.schoolsplay.org  and http://wiki.laptop.org/go/Schoolsplay
http://gvr.sf.net and http://wiki.laptop.org/go/Guido_van_Robot


Re: [pygame] The font module

2011-04-27 Thread Nathan BIAGINI
I have installed Python 2.6 and when i try to run an pygame example
application with, i got :

No protocol specified
 No protocol specified

  ===|  DirectFB 1.0.1  |===
   (c) 2001-2007  The DirectFB Organization (directfb.org)
   (c) 2000-2004  Convergence (integrated media) GmbH
 

 (*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
 (!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
 -- No such file or directory
 (!) DirectFB/FBDev: Error opening framebuffer device!
 (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment
 variable.
 (!) DirectFB/Core: Could not initialize 'system' core!
 -- Initialization error!
 there is no soundcard
 No protocol specified
 No protocol specified

  ===|  DirectFB 1.0.1  |===
   (c) 2001-2007  The DirectFB Organization (directfb.org)
   (c) 2000-2004  Convergence (integrated media) GmbH
 

 (*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
 (!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
 -- No such file or directory
 (!) DirectFB/FBDev: Error opening framebuffer device!
 (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment
 variable.
 (!) DirectFB/Core: Could not initialize 'system' core!
 -- Initialization error!
 Traceback (most recent call last):
   File fonty.py, line 100, in module
 if __name__ == '__main__': main()
   File fonty.py, line 30, in main
 screen = pygame.display.set_mode(resolution)
 pygame.error: DirectFBCreate: Initialization error!





 2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com

 On Wed, Apr 27, 2011 at 10:42 AM, Nathan BIAGINI nathan.o...@gmail.com
 wrote:
  Hi everyone,
 
  i currently using a Debian squeeze and i would like to run some
 application
  i have written before but it seems that the font module is not found.
 Hi, I'm running squeeze also and it's my experience that python 2.7, which
 is the version you seems to be using, isn't fully compatible with all
 python libs. (at this moment)
 I've uninstalled python2.7 so that everything is using python2.6 and then
 pygame runs properly.

 Greetings,
 Stas

 
  there is no soundcard
  fonty.py:42: RuntimeWarning: use font: No module named font
  (ImportError: No module named font)
font = pygame.font.Font(None, 80)
  Traceback (most recent call last):
File fonty.py, line 100, in module
  if __name__ == '__main__': main()
File fonty.py, line 42, in main
  font = pygame.font.Font(None, 80)
File /usr/local/lib/python2.7/site-packages/pygame/__init__.py, line
  70, in __getattr__
  raise NotImplementedError(MissingPygameModule)
  NotImplementedError: font module not available
  (ImportError: No module named font)
 
 
  I got this traceback trying to run the fonty.py file in the examples
  repository of pygame. I have installed pygame via the python-game package
  and also via the sources but still no font module
 
  Thanks for reading me.
 



 --
 Free-source educational programs for schools
 http://www.schoolsplay.org  and http://wiki.laptop.org/go/Schoolsplay
 http://gvr.sf.net and http://wiki.laptop.org/go/Guido_van_Robot



Re: [pygame] The font module

2011-04-27 Thread stas zytkiewicz
On Wed, Apr 27, 2011 at 11:37 AM, Nathan BIAGINI nathan.o...@gmail.com wrote:
 I have installed Python 2.6 and when i try to run an pygame example
Do you really have squeeze running ??
I ask this as python 2.6 is a dependency for python-pygame in squeeze
so when you installed python-pygame you also had python2.6 installed
so there's no need to install python2.6 as you already would have it.

what's the output from: cat /etc/debian_version ?

Stas

 application with, i got :

 No protocol specified
 No protocol specified

  ===|  DirectFB 1.0.1  |===
   (c) 2001-2007  The DirectFB Organization (directfb.org)
   (c) 2000-2004  Convergence (integrated media) GmbH
     

 (*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
 (!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
     -- No such file or directory
 (!) DirectFB/FBDev: Error opening framebuffer device!
 (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment
 variable.
 (!) DirectFB/Core: Could not initialize 'system' core!
     -- Initialization error!
 there is no soundcard
 No protocol specified
 No protocol specified

  ===|  DirectFB 1.0.1  |===
   (c) 2001-2007  The DirectFB Organization (directfb.org)
   (c) 2000-2004  Convergence (integrated media) GmbH
     

 (*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
 (!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
     -- No such file or directory
 (!) DirectFB/FBDev: Error opening framebuffer device!
 (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment
 variable.
 (!) DirectFB/Core: Could not initialize 'system' core!
     -- Initialization error!
 Traceback (most recent call last):
   File fonty.py, line 100, in module
     if __name__ == '__main__': main()
   File fonty.py, line 30, in main
     screen = pygame.display.set_mode(resolution)
 pygame.error: DirectFBCreate: Initialization error!




 2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com

 On Wed, Apr 27, 2011 at 10:42 AM, Nathan BIAGINI nathan.o...@gmail.com
 wrote:
  Hi everyone,
 
  i currently using a Debian squeeze and i would like to run some
  application
  i have written before but it seems that the font module is not found.
 Hi, I'm running squeeze also and it's my experience that python 2.7, which
 is the version you seems to be using, isn't fully compatible with all
 python libs. (at this moment)
 I've uninstalled python2.7 so that everything is using python2.6 and then
 pygame runs properly.

 Greetings,
 Stas

 
  there is no soundcard
  fonty.py:42: RuntimeWarning: use font: No module named font
  (ImportError: No module named font)
    font = pygame.font.Font(None, 80)
  Traceback (most recent call last):
    File fonty.py, line 100, in module
      if __name__ == '__main__': main()
    File fonty.py, line 42, in main
      font = pygame.font.Font(None, 80)
    File /usr/local/lib/python2.7/site-packages/pygame/__init__.py,
  line
  70, in __getattr__
      raise NotImplementedError(MissingPygameModule)
  NotImplementedError: font module not available
  (ImportError: No module named font)
 
 
  I got this traceback trying to run the fonty.py file in the examples
  repository of pygame. I have installed pygame via the python-game
  package
  and also via the sources but still no font module
 
  Thanks for reading me.
 



 --
 Free-source educational programs for schools
 http://www.schoolsplay.org  and http://wiki.laptop.org/go/Schoolsplay
 http://gvr.sf.net and http://wiki.laptop.org/go/Guido_van_Robot





-- 
Free-source educational programs for schools
http://www.schoolsplay.org  and http://wiki.laptop.org/go/Schoolsplay
http://gvr.sf.net and http://wiki.laptop.org/go/Guido_van_Robot


Re: [pygame] The font module

2011-04-27 Thread Nathan BIAGINI
It returns 6.0.1, so squeeze, the current stable debian version.

The dpkg -l python-pygame returns :

|
 État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
 |/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
 ||/ Nom
 VersionDescription

 +++-==-==-
 ii  python-pygame
 1.8.1release-2+b1  SDL bindings for games development in
 Python


and when i try to run a program using font with 'python fonty.py' (python is
in 2.6.6 version), it returns that font is missing...

2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com

 On Wed, Apr 27, 2011 at 11:37 AM, Nathan BIAGINI nathan.o...@gmail.com
 wrote:
  I have installed Python 2.6 and when i try to run an pygame example
 Do you really have squeeze running ??
 I ask this as python 2.6 is a dependency for python-pygame in squeeze
 so when you installed python-pygame you also had python2.6 installed
 so there's no need to install python2.6 as you already would have it.

 what's the output from: cat /etc/debian_version ?

 Stas

  application with, i got :
 
  No protocol specified
  No protocol specified
 
   ===|  DirectFB 1.0.1  |===
(c) 2001-2007  The DirectFB Organization (directfb.org)
(c) 2000-2004  Convergence (integrated media) GmbH
  
 
  (*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
  (!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
  -- No such file or directory
  (!) DirectFB/FBDev: Error opening framebuffer device!
  (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment
  variable.
  (!) DirectFB/Core: Could not initialize 'system' core!
  -- Initialization error!
  there is no soundcard
  No protocol specified
  No protocol specified
 
   ===|  DirectFB 1.0.1  |===
(c) 2001-2007  The DirectFB Organization (directfb.org)
(c) 2000-2004  Convergence (integrated media) GmbH
  
 
  (*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
  (!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
  -- No such file or directory
  (!) DirectFB/FBDev: Error opening framebuffer device!
  (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment
  variable.
  (!) DirectFB/Core: Could not initialize 'system' core!
  -- Initialization error!
  Traceback (most recent call last):
File fonty.py, line 100, in module
  if __name__ == '__main__': main()
File fonty.py, line 30, in main
  screen = pygame.display.set_mode(resolution)
  pygame.error: DirectFBCreate: Initialization error!
 
 
 
 
  2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com
 
  On Wed, Apr 27, 2011 at 10:42 AM, Nathan BIAGINI nathan.o...@gmail.com
 
  wrote:
   Hi everyone,
  
   i currently using a Debian squeeze and i would like to run some
   application
   i have written before but it seems that the font module is not found.
  Hi, I'm running squeeze also and it's my experience that python 2.7,
 which
  is the version you seems to be using, isn't fully compatible with all
  python libs. (at this moment)
  I've uninstalled python2.7 so that everything is using python2.6 and
 then
  pygame runs properly.
 
  Greetings,
  Stas
 
  
   there is no soundcard
   fonty.py:42: RuntimeWarning: use font: No module named font
   (ImportError: No module named font)
 font = pygame.font.Font(None, 80)
   Traceback (most recent call last):
 File fonty.py, line 100, in module
   if __name__ == '__main__': main()
 File fonty.py, line 42, in main
   font = pygame.font.Font(None, 80)
 File /usr/local/lib/python2.7/site-packages/pygame/__init__.py,
   line
   70, in __getattr__
   raise NotImplementedError(MissingPygameModule)
   NotImplementedError: font module not available
   (ImportError: No module named font)
  
  
   I got this traceback trying to run the fonty.py file in the examples
   repository of pygame. I have installed pygame via the python-game
   package
   and also via the sources but still no font module
  
   Thanks for reading me.
  
 
 
 
  --
  Free-source educational programs for schools
  http://www.schoolsplay.org  and http://wiki.laptop.org/go/Schoolsplay
  http://gvr.sf.net and http://wiki.laptop.org/go/Guido_van_Robot
 
 



 --
 Free-source educational programs for schools
 http://www.schoolsplay.org  and http://wiki.laptop.org/go/Schoolsplay
 http://gvr.sf.net and http://wiki.laptop.org/go/Guido_van_Robot



Re: [pygame] The font module

2011-04-27 Thread stas zytkiewicz
Here's my session in Debian squeeze:

stas@EXT-Workstation:~$ python
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5] on linux2
Type help, copyright, credits or license for more information.
 import pygame.font
 dir(pygame.font)
['Font', 'FontType', 'SysFont', '_PYGAME_C_API', '__PYGAMEinit__',
'__doc__', '__file__', '__name__', '__package__', 'get_default_font',
'get_fonts', 'get_init', 'init', 'match_font', 'quit']
 pygame.init()
(6, 0)
 font = pygame.font.Font(None, 80)
 font
pygame.font.Font object at 0xb756c110


Greetings,
Stas


On Wed, Apr 27, 2011 at 12:01 PM, Nathan BIAGINI nathan.o...@gmail.com wrote:
 It returns 6.0.1, so squeeze, the current stable debian version.

 The dpkg -l python-pygame returns :

 |
 État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
 |/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
 ||/ Nom
 Version    Description

 +++-==-==-
 ii  python-pygame
 1.8.1release-2+b1  SDL bindings for games development in
 Python

 and when i try to run a program using font with 'python fonty.py' (python is
 in 2.6.6 version), it returns that font is missing...

 2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com

 On Wed, Apr 27, 2011 at 11:37 AM, Nathan BIAGINI nathan.o...@gmail.com
 wrote:
  I have installed Python 2.6 and when i try to run an pygame example
 Do you really have squeeze running ??
 I ask this as python 2.6 is a dependency for python-pygame in squeeze
 so when you installed python-pygame you also had python2.6 installed
 so there's no need to install python2.6 as you already would have it.

 what's the output from: cat /etc/debian_version ?

 Stas

  application with, i got :
 
  No protocol specified
  No protocol specified
 
   ===|  DirectFB 1.0.1  |===
    (c) 2001-2007  The DirectFB Organization (directfb.org)
    (c) 2000-2004  Convergence (integrated media) GmbH
      
 
  (*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
  (!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
      -- No such file or directory
  (!) DirectFB/FBDev: Error opening framebuffer device!
  (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment
  variable.
  (!) DirectFB/Core: Could not initialize 'system' core!
      -- Initialization error!
  there is no soundcard
  No protocol specified
  No protocol specified
 
   ===|  DirectFB 1.0.1  |===
    (c) 2001-2007  The DirectFB Organization (directfb.org)
    (c) 2000-2004  Convergence (integrated media) GmbH
      
 
  (*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
  (!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
      -- No such file or directory
  (!) DirectFB/FBDev: Error opening framebuffer device!
  (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment
  variable.
  (!) DirectFB/Core: Could not initialize 'system' core!
      -- Initialization error!
  Traceback (most recent call last):
    File fonty.py, line 100, in module
      if __name__ == '__main__': main()
    File fonty.py, line 30, in main
      screen = pygame.display.set_mode(resolution)
  pygame.error: DirectFBCreate: Initialization error!
 
 
 
 
  2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com
 
  On Wed, Apr 27, 2011 at 10:42 AM, Nathan BIAGINI
  nathan.o...@gmail.com
  wrote:
   Hi everyone,
  
   i currently using a Debian squeeze and i would like to run some
   application
   i have written before but it seems that the font module is not found.
  Hi, I'm running squeeze also and it's my experience that python 2.7,
  which
  is the version you seems to be using, isn't fully compatible with all
  python libs. (at this moment)
  I've uninstalled python2.7 so that everything is using python2.6 and
  then
  pygame runs properly.
 
  Greetings,
  Stas
 
  
   there is no soundcard
   fonty.py:42: RuntimeWarning: use font: No module named font
   (ImportError: No module named font)
     font = pygame.font.Font(None, 80)
   Traceback (most recent call last):
     File fonty.py, line 100, in module
       if __name__ == '__main__': main()
     File fonty.py, line 42, in main
       font = pygame.font.Font(None, 80)
     File /usr/local/lib/python2.7/site-packages/pygame/__init__.py,
   line
   70, in __getattr__
       raise NotImplementedError(MissingPygameModule)
   NotImplementedError: font module not available
   (ImportError: No module named font)
  
  
   I got this traceback trying to run the fonty.py file in the examples
   repository of pygame. 

Re: [pygame] The font module

2011-04-27 Thread Nathan BIAGINI
Hum...

Here is mine :

Python 2.6 (r26:66714, Apr 27 2011, 11:25:42)
 [GCC 4.4.5] on linux2
 Type help, copyright, credits or license for more information.
  import pygame
  import pygame.font
 Traceback (most recent call last):
   File stdin, line 1, in module
 ImportError: No module named font
 


It seems to be pretty similar about python.

2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com

 Here's my session in Debian squeeze:

 stas@EXT-Workstation:~$ python
 Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
 [GCC 4.4.5] on linux2
 Type help, copyright, credits or license for more information.
  import pygame.font
  dir(pygame.font)
 ['Font', 'FontType', 'SysFont', '_PYGAME_C_API', '__PYGAMEinit__',
 '__doc__', '__file__', '__name__', '__package__', 'get_default_font',
 'get_fonts', 'get_init', 'init', 'match_font', 'quit']
  pygame.init()
 (6, 0)
  font = pygame.font.Font(None, 80)
  font
 pygame.font.Font object at 0xb756c110
 

 Greetings,
 Stas


 On Wed, Apr 27, 2011 at 12:01 PM, Nathan BIAGINI nathan.o...@gmail.com
 wrote:
  It returns 6.0.1, so squeeze, the current stable debian version.
 
  The dpkg -l python-pygame returns :
 
  |
 
 État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
  |/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
  ||/ Nom
  VersionDescription
 
 
 +++-==-==-
  ii  python-pygame
  1.8.1release-2+b1  SDL bindings for games
 development in
  Python
 
  and when i try to run a program using font with 'python fonty.py' (python
 is
  in 2.6.6 version), it returns that font is missing...
 
  2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com
 
  On Wed, Apr 27, 2011 at 11:37 AM, Nathan BIAGINI nathan.o...@gmail.com
 
  wrote:
   I have installed Python 2.6 and when i try to run an pygame example
  Do you really have squeeze running ??
  I ask this as python 2.6 is a dependency for python-pygame in squeeze
  so when you installed python-pygame you also had python2.6 installed
  so there's no need to install python2.6 as you already would have it.
 
  what's the output from: cat /etc/debian_version ?
 
  Stas
 
   application with, i got :
  
   No protocol specified
   No protocol specified
  
===|  DirectFB 1.0.1
 |===
 (c) 2001-2007  The DirectFB Organization (directfb.org)
 (c) 2000-2004  Convergence (integrated media) GmbH
   
  
   (*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
   (!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
   -- No such file or directory
   (!) DirectFB/FBDev: Error opening framebuffer device!
   (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment
   variable.
   (!) DirectFB/Core: Could not initialize 'system' core!
   -- Initialization error!
   there is no soundcard
   No protocol specified
   No protocol specified
  
===|  DirectFB 1.0.1
 |===
 (c) 2001-2007  The DirectFB Organization (directfb.org)
 (c) 2000-2004  Convergence (integrated media) GmbH
   
  
   (*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
   (!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
   -- No such file or directory
   (!) DirectFB/FBDev: Error opening framebuffer device!
   (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment
   variable.
   (!) DirectFB/Core: Could not initialize 'system' core!
   -- Initialization error!
   Traceback (most recent call last):
 File fonty.py, line 100, in module
   if __name__ == '__main__': main()
 File fonty.py, line 30, in main
   screen = pygame.display.set_mode(resolution)
   pygame.error: DirectFBCreate: Initialization error!
  
  
  
  
   2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com
  
   On Wed, Apr 27, 2011 at 10:42 AM, Nathan BIAGINI
   nathan.o...@gmail.com
   wrote:
Hi everyone,
   
i currently using a Debian squeeze and i would like to run some
application
i have written before but it seems that the font module is not
 found.
   Hi, I'm running squeeze also and it's my experience that python 2.7,
   which
   is the version you seems to be using, isn't fully compatible with all
   python libs. (at this moment)
   I've uninstalled python2.7 so that everything is using python2.6 and
   then
   pygame runs properly.
  
   Greetings,
   Stas
  
   
there is no soundcard
fonty.py:42: RuntimeWarning: use font: No module named font
(ImportError: No module named font)
  font = pygame.font.Font(None, 80)

Re: [pygame] The font module

2011-04-27 Thread stas zytkiewicz
On Wed, Apr 27, 2011 at 1:00 PM, Nathan BIAGINI nathan.o...@gmail.com wrote:
 Hum...

 Here is mine :
One thing you could try is to reinstall python-pygame.
sudo apt-get remove --purge python-pygame
And then:
sudo apt-get install python-pygame
If that doesn't fix it I'm run out of options :-(

If your debian install is a fresh one I would suggest to file a bugreport
against the python-pygame package in Debian.

Stas

 Python 2.6 (r26:66714, Apr 27 2011, 11:25:42)
 [GCC 4.4.5] on linux2
 Type help, copyright, credits or license for more information.
  import pygame
  import pygame.font
 Traceback (most recent call last):
   File stdin, line 1, in module
 ImportError: No module named font
 

 It seems to be pretty similar about python.

 2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com

 Here's my session in Debian squeeze:

 stas@EXT-Workstation:~$ python
 Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
 [GCC 4.4.5] on linux2
 Type help, copyright, credits or license for more information.
  import pygame.font
  dir(pygame.font)
 ['Font', 'FontType', 'SysFont', '_PYGAME_C_API', '__PYGAMEinit__',
 '__doc__', '__file__', '__name__', '__package__', 'get_default_font',
 'get_fonts', 'get_init', 'init', 'match_font', 'quit']
  pygame.init()
 (6, 0)
  font = pygame.font.Font(None, 80)
  font
 pygame.font.Font object at 0xb756c110
 

 Greetings,
 Stas


 On Wed, Apr 27, 2011 at 12:01 PM, Nathan BIAGINI nathan.o...@gmail.com
 wrote:
  It returns 6.0.1, so squeeze, the current stable debian version.
 
  The dpkg -l python-pygame returns :
 
  |
 
  État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
  |/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
  ||/ Nom
  Version    Description
 
 
  +++-==-==-
  ii  python-pygame
  1.8.1release-2+b1  SDL bindings for games
  development in
  Python
 
  and when i try to run a program using font with 'python fonty.py'
  (python is
  in 2.6.6 version), it returns that font is missing...
 
  2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com
 
  On Wed, Apr 27, 2011 at 11:37 AM, Nathan BIAGINI
  nathan.o...@gmail.com
  wrote:
   I have installed Python 2.6 and when i try to run an pygame example
  Do you really have squeeze running ??
  I ask this as python 2.6 is a dependency for python-pygame in squeeze
  so when you installed python-pygame you also had python2.6 installed
  so there's no need to install python2.6 as you already would have it.
 
  what's the output from: cat /etc/debian_version ?
 
  Stas
 
   application with, i got :
  
   No protocol specified
   No protocol specified
  
    ===|  DirectFB 1.0.1
   |===
     (c) 2001-2007  The DirectFB Organization (directfb.org)
     (c) 2000-2004  Convergence (integrated media) GmbH
       
  
   (*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
   (!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
       -- No such file or directory
   (!) DirectFB/FBDev: Error opening framebuffer device!
   (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER
   environment
   variable.
   (!) DirectFB/Core: Could not initialize 'system' core!
       -- Initialization error!
   there is no soundcard
   No protocol specified
   No protocol specified
  
    ===|  DirectFB 1.0.1
   |===
     (c) 2001-2007  The DirectFB Organization (directfb.org)
     (c) 2000-2004  Convergence (integrated media) GmbH
       
  
   (*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
   (!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
       -- No such file or directory
   (!) DirectFB/FBDev: Error opening framebuffer device!
   (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER
   environment
   variable.
   (!) DirectFB/Core: Could not initialize 'system' core!
       -- Initialization error!
   Traceback (most recent call last):
     File fonty.py, line 100, in module
       if __name__ == '__main__': main()
     File fonty.py, line 30, in main
       screen = pygame.display.set_mode(resolution)
   pygame.error: DirectFBCreate: Initialization error!
  
  
  
  
   2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com
  
   On Wed, Apr 27, 2011 at 10:42 AM, Nathan BIAGINI
   nathan.o...@gmail.com
   wrote:
Hi everyone,
   
i currently using a Debian squeeze and i would like to run some
application
i have written before but it seems that the font module is not
found.
   Hi, I'm running squeeze also and it's my experience that python 2.7,
   which
   is the 

Re: [pygame] The font module

2011-04-27 Thread Nathan BIAGINI
Ok.. so it still does not work. I think i ll try to report a bug on the
debian bugs support about python-pygame. I also try to install from sources.
And before to begin the installation, it reports the found dependencies and
FONT is not found. I will also try to install the SDL font... anyway keep
trying :)

WARNING, No Setup File Exists, Running config.py
 Using UNIX configuration...


 Hunting dependencies...
 SDL : found 1.2.14
 FONT: not found
 IMAGE   : found
 MIXER   : found
 SMPEG   : found 0.4.5
 PNG : found
 JPEG: found
 SCRAP   : found


 Warning, some of the pygame dependencies were not found. Pygame can still
 compile and install, but games that depend on those missing dependencies


2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com

 On Wed, Apr 27, 2011 at 1:00 PM, Nathan BIAGINI nathan.o...@gmail.com
 wrote:
  Hum...
 
  Here is mine :
 One thing you could try is to reinstall python-pygame.
 sudo apt-get remove --purge python-pygame
 And then:
 sudo apt-get install python-pygame
 If that doesn't fix it I'm run out of options :-(

 If your debian install is a fresh one I would suggest to file a bugreport
 against the python-pygame package in Debian.

 Stas

  Python 2.6 (r26:66714, Apr 27 2011, 11:25:42)
  [GCC 4.4.5] on linux2
  Type help, copyright, credits or license for more information.
   import pygame
   import pygame.font
  Traceback (most recent call last):
File stdin, line 1, in module
  ImportError: No module named font
  
 
  It seems to be pretty similar about python.
 
  2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com
 
  Here's my session in Debian squeeze:
 
  stas@EXT-Workstation:~$ python
  Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
  [GCC 4.4.5] on linux2
  Type help, copyright, credits or license for more information.
   import pygame.font
   dir(pygame.font)
  ['Font', 'FontType', 'SysFont', '_PYGAME_C_API', '__PYGAMEinit__',
  '__doc__', '__file__', '__name__', '__package__', 'get_default_font',
  'get_fonts', 'get_init', 'init', 'match_font', 'quit']
   pygame.init()
  (6, 0)
   font = pygame.font.Font(None, 80)
   font
  pygame.font.Font object at 0xb756c110
  
 
  Greetings,
  Stas
 
 
  On Wed, Apr 27, 2011 at 12:01 PM, Nathan BIAGINI nathan.o...@gmail.com
 
  wrote:
   It returns 6.0.1, so squeeze, the current stable debian version.
  
   The dpkg -l python-pygame returns :
  
   |
  
  
 État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
   |/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
   ||/ Nom
   VersionDescription
  
  
  
 +++-==-==-
   ii  python-pygame
   1.8.1release-2+b1  SDL bindings for games
   development in
   Python
  
   and when i try to run a program using font with 'python fonty.py'
   (python is
   in 2.6.6 version), it returns that font is missing...
  
   2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com
  
   On Wed, Apr 27, 2011 at 11:37 AM, Nathan BIAGINI
   nathan.o...@gmail.com
   wrote:
I have installed Python 2.6 and when i try to run an pygame example
   Do you really have squeeze running ??
   I ask this as python 2.6 is a dependency for python-pygame in squeeze
   so when you installed python-pygame you also had python2.6 installed
   so there's no need to install python2.6 as you already would have it.
  
   what's the output from: cat /etc/debian_version ?
  
   Stas
  
application with, i got :
   
No protocol specified
No protocol specified
   
 ===|  DirectFB 1.0.1
|===
  (c) 2001-2007  The DirectFB Organization (directfb.org)
  (c) 2000-2004  Convergence (integrated media) GmbH
   
 
   
(*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
-- No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER
environment
variable.
(!) DirectFB/Core: Could not initialize 'system' core!
-- Initialization error!
there is no soundcard
No protocol specified
No protocol specified
   
 ===|  DirectFB 1.0.1
|===
  (c) 2001-2007  The DirectFB Organization (directfb.org)
  (c) 2000-2004  Convergence (integrated media) GmbH
   
 
   
(*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
-- No such file or directory
(!) DirectFB/FBDev: Error opening 

Re: [pygame] The font module

2011-04-27 Thread René Dudfield
Hi,

Do you have libsdl-ttf2.0-dev installed?




On Wed, Apr 27, 2011 at 4:32 PM, Nathan BIAGINI nathan.o...@gmail.comwrote:

 Ok.. so it still does not work. I think i ll try to report a bug on the
 debian bugs support about python-pygame. I also try to install from sources.
 And before to begin the installation, it reports the found dependencies and
 FONT is not found. I will also try to install the SDL font... anyway keep
 trying :)

 WARNING, No Setup File Exists, Running config.py
 Using UNIX configuration...


 Hunting dependencies...
 SDL : found 1.2.14
 FONT: not found
 IMAGE   : found
 MIXER   : found
 SMPEG   : found 0.4.5
 PNG : found
 JPEG: found
 SCRAP   : found


 Warning, some of the pygame dependencies were not found. Pygame can still
 compile and install, but games that depend on those missing dependencies


 2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com

 On Wed, Apr 27, 2011 at 1:00 PM, Nathan BIAGINI nathan.o...@gmail.com
 wrote:
  Hum...
 
  Here is mine :
 One thing you could try is to reinstall python-pygame.
 sudo apt-get remove --purge python-pygame
 And then:
 sudo apt-get install python-pygame
 If that doesn't fix it I'm run out of options :-(

 If your debian install is a fresh one I would suggest to file a bugreport
 against the python-pygame package in Debian.

 Stas

  Python 2.6 (r26:66714, Apr 27 2011, 11:25:42)
  [GCC 4.4.5] on linux2
  Type help, copyright, credits or license for more information.
   import pygame
   import pygame.font
  Traceback (most recent call last):
File stdin, line 1, in module
  ImportError: No module named font
  
 
  It seems to be pretty similar about python.
 
  2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com
 
  Here's my session in Debian squeeze:
 
  stas@EXT-Workstation:~$ python
  Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
  [GCC 4.4.5] on linux2
  Type help, copyright, credits or license for more information.
   import pygame.font
   dir(pygame.font)
  ['Font', 'FontType', 'SysFont', '_PYGAME_C_API', '__PYGAMEinit__',
  '__doc__', '__file__', '__name__', '__package__', 'get_default_font',
  'get_fonts', 'get_init', 'init', 'match_font', 'quit']
   pygame.init()
  (6, 0)
   font = pygame.font.Font(None, 80)
   font
  pygame.font.Font object at 0xb756c110
  
 
  Greetings,
  Stas
 
 
  On Wed, Apr 27, 2011 at 12:01 PM, Nathan BIAGINI 
 nathan.o...@gmail.com
  wrote:
   It returns 6.0.1, so squeeze, the current stable debian version.
  
   The dpkg -l python-pygame returns :
  
   |
  
  
 État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
   |/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
   ||/ Nom
   VersionDescription
  
  
  
 +++-==-==-
   ii  python-pygame
   1.8.1release-2+b1  SDL bindings for games
   development in
   Python
  
   and when i try to run a program using font with 'python fonty.py'
   (python is
   in 2.6.6 version), it returns that font is missing...
  
   2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com
  
   On Wed, Apr 27, 2011 at 11:37 AM, Nathan BIAGINI
   nathan.o...@gmail.com
   wrote:
I have installed Python 2.6 and when i try to run an pygame
 example
   Do you really have squeeze running ??
   I ask this as python 2.6 is a dependency for python-pygame in
 squeeze
   so when you installed python-pygame you also had python2.6 installed
   so there's no need to install python2.6 as you already would have
 it.
  
   what's the output from: cat /etc/debian_version ?
  
   Stas
  
application with, i got :
   
No protocol specified
No protocol specified
   
 ===|  DirectFB 1.0.1
|===
  (c) 2001-2007  The DirectFB Organization (directfb.org
 )
  (c) 2000-2004  Convergence (integrated media) GmbH
   
 
   
(*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
-- No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER
environment
variable.
(!) DirectFB/Core: Could not initialize 'system' core!
-- Initialization error!
there is no soundcard
No protocol specified
No protocol specified
   
 ===|  DirectFB 1.0.1
|===
  (c) 2001-2007  The DirectFB Organization (directfb.org
 )
  (c) 2000-2004  Convergence (integrated media) GmbH
   
 
   
(*) DirectFB/Core: Single Application Core. (2008-08-18 12:36)

Re: [pygame] The font module

2011-04-27 Thread Nathan BIAGINI
Ok guy i think i have found the key to solve this problem!
As Pygame is SDL binding i thought to install SDL_ttf (may be it s missing)
and it was apparently the case since now i got :

Traceback (most recent call last):
   File pyuidemo.py, line 31, in module
 main()
   File pyuidemo.py, line 17, in main
 pyuisupport.install(args=(640, 480), kw={'renderer': '2d'})
   File
 /usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-linux-i686.egg/twisted/internet/pyuisupport.py,
 line 30, in install
 d = pyui.init(*args, **kw)
   File /usr/local/lib/python2.6/site-packages/pyui/core.py, line 58, in
 init
 gRenderer = Pygame2D(w, h, fullscreen, title)
   File /usr/local/lib/python2.6/site-packages/pyui/renderers/pygame2D.py,
 line 78, in __init__
 self.font = pygame.font.Font(None, 12)
 RuntimeError: default font not found 'freesansbold.ttf'


:)

Thanks man for your help ;)

2011/4/27 Nathan BIAGINI nathan.o...@gmail.com

 Ok.. so it still does not work. I think i ll try to report a bug on the
 debian bugs support about python-pygame. I also try to install from sources.
 And before to begin the installation, it reports the found dependencies and
 FONT is not found. I will also try to install the SDL font... anyway keep
 trying :)

 WARNING, No Setup File Exists, Running config.py
 Using UNIX configuration...


 Hunting dependencies...
 SDL : found 1.2.14
 FONT: not found
 IMAGE   : found
 MIXER   : found
 SMPEG   : found 0.4.5
 PNG : found
 JPEG: found
 SCRAP   : found


 Warning, some of the pygame dependencies were not found. Pygame can still
 compile and install, but games that depend on those missing dependencies


 2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com

 On Wed, Apr 27, 2011 at 1:00 PM, Nathan BIAGINI nathan.o...@gmail.com
 wrote:
  Hum...
 
  Here is mine :
 One thing you could try is to reinstall python-pygame.
 sudo apt-get remove --purge python-pygame
 And then:
 sudo apt-get install python-pygame
 If that doesn't fix it I'm run out of options :-(

 If your debian install is a fresh one I would suggest to file a bugreport
 against the python-pygame package in Debian.

 Stas

  Python 2.6 (r26:66714, Apr 27 2011, 11:25:42)
  [GCC 4.4.5] on linux2
  Type help, copyright, credits or license for more information.
   import pygame
   import pygame.font
  Traceback (most recent call last):
File stdin, line 1, in module
  ImportError: No module named font
  
 
  It seems to be pretty similar about python.
 
  2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com
 
  Here's my session in Debian squeeze:
 
  stas@EXT-Workstation:~$ python
  Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
  [GCC 4.4.5] on linux2
  Type help, copyright, credits or license for more information.
   import pygame.font
   dir(pygame.font)
  ['Font', 'FontType', 'SysFont', '_PYGAME_C_API', '__PYGAMEinit__',
  '__doc__', '__file__', '__name__', '__package__', 'get_default_font',
  'get_fonts', 'get_init', 'init', 'match_font', 'quit']
   pygame.init()
  (6, 0)
   font = pygame.font.Font(None, 80)
   font
  pygame.font.Font object at 0xb756c110
  
 
  Greetings,
  Stas
 
 
  On Wed, Apr 27, 2011 at 12:01 PM, Nathan BIAGINI 
 nathan.o...@gmail.com
  wrote:
   It returns 6.0.1, so squeeze, the current stable debian version.
  
   The dpkg -l python-pygame returns :
  
   |
  
  
 État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
   |/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
   ||/ Nom
   VersionDescription
  
  
  
 +++-==-==-
   ii  python-pygame
   1.8.1release-2+b1  SDL bindings for games
   development in
   Python
  
   and when i try to run a program using font with 'python fonty.py'
   (python is
   in 2.6.6 version), it returns that font is missing...
  
   2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com
  
   On Wed, Apr 27, 2011 at 11:37 AM, Nathan BIAGINI
   nathan.o...@gmail.com
   wrote:
I have installed Python 2.6 and when i try to run an pygame
 example
   Do you really have squeeze running ??
   I ask this as python 2.6 is a dependency for python-pygame in
 squeeze
   so when you installed python-pygame you also had python2.6 installed
   so there's no need to install python2.6 as you already would have
 it.
  
   what's the output from: cat /etc/debian_version ?
  
   Stas
  
application with, i got :
   
No protocol specified
No protocol specified
   
 ===|  DirectFB 1.0.1
|===
  (c) 2001-2007  The DirectFB Organization (directfb.org
 )
  (c) 2000-2004  Convergence (integrated media) GmbH
   
 
   
(*) 

Re: [pygame] The font module

2011-04-27 Thread stas zytkiewicz
On Wed, Apr 27, 2011 at 5:39 PM, Nathan BIAGINI nathan.o...@gmail.com wrote:
 Ok guy i think i have found the key to solve this problem!
 As Pygame is SDL binding i thought to install SDL_ttf (may be it s missing)
 and it was apparently the case since now i got
Then your debian pygame package wasn't installed propely as libsdl-ttf
is a dependency
of python-pygame and will be installed when you install python-pygame.
I'm glad you've got it working but it isn't a Debian bug :-)

Stas

 Traceback (most recent call last):
   File pyuidemo.py, line 31, in module
     main()
   File pyuidemo.py, line 17, in main
     pyuisupport.install(args=(640, 480), kw={'renderer': '2d'})
   File
 /usr/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-linux-i686.egg/twisted/internet/pyuisupport.py,
 line 30, in install
     d = pyui.init(*args, **kw)
   File /usr/local/lib/python2.6/site-packages/pyui/core.py, line 58, in
 init
     gRenderer = Pygame2D(w, h, fullscreen, title)
   File
 /usr/local/lib/python2.6/site-packages/pyui/renderers/pygame2D.py, line
 78, in __init__
     self.font = pygame.font.Font(None, 12)
 RuntimeError: default font not found 'freesansbold.ttf'

 :)

 Thanks man for your help ;)

 2011/4/27 Nathan BIAGINI nathan.o...@gmail.com

 Ok.. so it still does not work. I think i ll try to report a bug on the
 debian bugs support about python-pygame. I also try to install from sources.
 And before to begin the installation, it reports the found dependencies and
 FONT is not found. I will also try to install the SDL font... anyway keep
 trying :)

 WARNING, No Setup File Exists, Running config.py
 Using UNIX configuration...


 Hunting dependencies...
 SDL : found 1.2.14
 FONT    : not found
 IMAGE   : found
 MIXER   : found
 SMPEG   : found 0.4.5
 PNG : found
 JPEG    : found
 SCRAP   : found


 Warning, some of the pygame dependencies were not found. Pygame can still
 compile and install, but games that depend on those missing dependencies

 2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com

 On Wed, Apr 27, 2011 at 1:00 PM, Nathan BIAGINI nathan.o...@gmail.com
 wrote:
  Hum...
 
  Here is mine :
 One thing you could try is to reinstall python-pygame.
 sudo apt-get remove --purge python-pygame
 And then:
 sudo apt-get install python-pygame
 If that doesn't fix it I'm run out of options :-(

 If your debian install is a fresh one I would suggest to file a bugreport
 against the python-pygame package in Debian.

 Stas

  Python 2.6 (r26:66714, Apr 27 2011, 11:25:42)
  [GCC 4.4.5] on linux2
  Type help, copyright, credits or license for more information.
   import pygame
   import pygame.font
  Traceback (most recent call last):
    File stdin, line 1, in module
  ImportError: No module named font
  
 
  It seems to be pretty similar about python.
 
  2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com
 
  Here's my session in Debian squeeze:
 
  stas@EXT-Workstation:~$ python
  Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
  [GCC 4.4.5] on linux2
  Type help, copyright, credits or license for more information.
   import pygame.font
   dir(pygame.font)
  ['Font', 'FontType', 'SysFont', '_PYGAME_C_API', '__PYGAMEinit__',
  '__doc__', '__file__', '__name__', '__package__', 'get_default_font',
  'get_fonts', 'get_init', 'init', 'match_font', 'quit']
   pygame.init()
  (6, 0)
   font = pygame.font.Font(None, 80)
   font
  pygame.font.Font object at 0xb756c110
  
 
  Greetings,
  Stas
 
 
  On Wed, Apr 27, 2011 at 12:01 PM, Nathan BIAGINI
  nathan.o...@gmail.com
  wrote:
   It returns 6.0.1, so squeeze, the current stable debian version.
  
   The dpkg -l python-pygame returns :
  
   |
  
  
   État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
   |/ Err?=(aucune)/besoin Réinstallation (État,Err:
   majuscule=mauvais)
   ||/ Nom
   Version    Description
  
  
  
   +++-==-==-
   ii  python-pygame
   1.8.1release-2+b1  SDL bindings for games
   development in
   Python
  
   and when i try to run a program using font with 'python fonty.py'
   (python is
   in 2.6.6 version), it returns that font is missing...
  
   2011/4/27 stas zytkiewicz stas.zytkiew...@gmail.com
  
   On Wed, Apr 27, 2011 at 11:37 AM, Nathan BIAGINI
   nathan.o...@gmail.com
   wrote:
I have installed Python 2.6 and when i try to run an pygame
example
   Do you really have squeeze running ??
   I ask this as python 2.6 is a dependency for python-pygame in
   squeeze
   so when you installed python-pygame you also had python2.6
   installed
   so there's no need to install python2.6 as you already would have
   it.
  
   what's the output from: cat /etc/debian_version ?
  
   Stas
  
application with, i got :
   
No protocol specified
No