FS#15847 - [python-pygame] ImportError: No module named pypm

Attached to Project: Arch Linux
Opened by Jagadish R (jarav) - Friday, 07 August 2009, 23:01 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 06 February 2010, 10:38 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Douglas Soares de Andrade (dsa)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When I run the midi example, I get a module import error:

python -m pygame.examples.midi --list
Traceback (most recent call last):
File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/usr/lib/python2.6/site-packages/pygame/examples/midi.py", line 820, in <module>
print_device_info()
File "/usr/lib/python2.6/site-packages/pygame/examples/midi.py", line 25, in print_device_info
pygame.midi.init()
File "/usr/lib/python2.6/site-packages/pygame/midi.py", line 71, in init
import pygame.pypm
ImportError: No module named pypm

I have timidity installed and running as a daemon.

Additional info:
* package version(s)
* config and/or log files etc.

Arch Linux 2.6.30, python 2.6.2, python-pygame 1.9.1-1

Steps to reproduce:
Run
python -m pygame.examples.midi --list

This task depends upon

Closed by  Eric Belanger (Snowman)
Saturday, 06 February 2010, 10:38 GMT
Reason for closing:  Won't fix
Additional comments about closing:  See last comment
Comment by Jagadish R (jarav) - Saturday, 08 August 2009, 05:02 GMT
From the pygame-users mailing list, I see that the output to

python -m pygame.examples.midi --list

should have been something like

0: interface :ALSA:, name :Midi Through Port-0:, opened :0: (output)
1: interface :ALSA:, name :Midi Through Port-0:, opened :0: (input)
2: interface :ALSA:, name :TiMidity port 0:, opened :0: (output)
3: interface :ALSA:, name :TiMidity port 1:, opened :0: (output)
4: interface :ALSA:, name :TiMidity port 2:, opened :0: (output)
5: interface :ALSA:, name :TiMidity port 3:, opened :0: (output)
Comment by Eric Belanger (Snowman) - Saturday, 07 November 2009, 05:22 GMT
It looks like missing (make)depends:

PORTMIDI: not found
PORTTIME: not found


PORTMIDI -> http://portmedia.sourceforge.net/
Comment by Eric Belanger (Snowman) - Sunday, 06 December 2009, 14:25 GMT
Jagadish: you need to install portmidi from AUR and rebuild python-pygame. I'm not sure if it's whorthwhile adding portmidi support to the python-pygame in extra as, in the case reported here, it's only needed for the examples.

Loading...