0

executing this python code (doesn't matter if python 2 or 3) having 1 internal DVD drive and one external usb drive connected. I can access both drives from linux but only the internal is found by pygame. Am I doing something wrong?

    Python 3.8.2 (default, Apr 13 2020, 05:57:30) 
[GCC 9.3.0] on linux
    Type "help", "copyright", "credits" or "license" for more     information.
    >>> import pygame
    pygame 1.9.6
    Hello from the pygame community. https://www.pygame.org     /contribute.html
    >>> pygame.cdrom.init()
    >>> pygame.cdrom.get_count()
    1
    >>> 
Philippe
  • 81
  • 1
  • 3
  • 1
    Note: `pygame.cdrom` will be deprecated in the future (since SDL2 doesn't support CD either), so you might want to look for other packages. But are you sure that both drives are SDL cdrom compatible? From my understanding this is restricted to just CD drives, and doesn't support DVD drives. – MegaIng May 16 '20 at 20:32
  • As the internal drive is build into the docking station I took the laptop out of the dock and tried again with the external drive plugged into the same USB port as before. Now that there is only one drive connected the external drive is found by pygame.cdrom and it is working as expected. So I tend to exclude any compatibility issues of the drive. – Philippe May 17 '20 at 12:32

0 Answers0