python-pyepl does not run with ImportError: /usr/lib/python2.7/dist-packages/pyepl/hardware/sound/_eplSound.so: undefined symbol: snd_pcm_hw_params_set_channels
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyepl (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The package python-pyepl is currently broken on Ubuntu. The same bug appears Precise, Quantal and Raring (but it runs fine on Debian).
I have tried several computers with different versions of Ubuntu with the same result (see also this bug report: http://
This is the error message when trying to import pyepl:
In [1]: import pyepl
-------
ImportError Traceback (most recent call last)
<ipython-
----> 1 import pyepl
/usr/lib/
13 """
14
---> 15 import hardware
16 import timing
17 import display
/usr/lib/
23 import rt
24 import eeg
---> 25 import sound
26
27 import pygame
/usr/lib/
11 This package implements sound functions.
12 """
---> 13 from eplSound import eplSound as EPLSound
14 import soundFile as SoundFile
15
/usr/lib/
24 fp.close()
25 return _mod
---> 26 _eplSound = swig_import_
27 del swig_import_helper
28 else:
/usr/lib/
20 if fp is not None:
21 try:
---> 22 _mod = imp.load_
23 finally:
24 fp.close()
ImportError: /usr/lib/
One one system I managed (after a lot of trial and error) to recompile _eplSound.so and _soundFile.so to get it to work, but unfortunately I haven't been able to do that again on a different system.
description: | updated |
description: | updated |
From what I could find on the internet, the problem lies in an old python statement in pyEPL (audio part) that doesn't work anymore in Python 2.7 (and up?).
I used an ugly hack to get around the problem, at least for me (I don't need audio for the experiment).
There was some problem with the Audio part of pyEPL, so ... I commented it out :P
Run your python program with EPL and you probably get a list of file_... imports ... from file_...
Go to the last one and comment out that sound related line of code.
It takes a bit of time to comment everything out, because every compile gives a next error, but it won't take forever.
It's ugly, but it's a quick fix ^^
Note: you need sudo right to edit the .py files which are likely in /usr/lib/ python2. 7/dist- packages/ pyepl
p.s. If I have to do this another time I will put here in which files, which lines you have to comment out ;)