[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] cdrom problem



On Mon, 16 Aug 2004 07:15:30 -0700
Pete Shinners <pete@shinners.org> wrote:

> Marco Marconi wrote:
> > cd.init()
> > gives me "Cannot initialize device". Any hints?
> 
> Not sure what would be causing this. What platform are you dealing with. 

Debian Linux 

> There are a few CD methods you can call before init(), try them and make 
> sure you are getting sane values.

>>> import pygame
>>> pygame.cdrom.init()
>>> cd = pygame.cdrom.CD(0)
>>> cd.get_id()
0
>>> cd.get_name()
'/dev/cdrom'
>>> cd.get_init()
0
>>> cd.init()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
pygame.error: Cannot initialize device

...

thanx anyway