[Numpy-discussion] Re: ImportError

René Bastian rbastian at club-internet.fr
Fri Jan 7 13:25:06 EST 2005


Le Vendredi  7 Janvier 2005 22:05, Todd Miller a écrit :
> On Fri, 2005-01-07 at 07:27, René Bastian wrote:
> > Le Vendredi  7 Janvier 2005 12:54, René Bastian a écrit :
> > > Hi,
> > >
> > > I use python2.4+numarray1.1.1.
> > >
> > > import numarray.convolve as conv
> > >
> > > produces an ImportError : No module named convolve
> > >
> > > Can you help me ?
> >
> > This is the error message :
> >
> > Traceback (most recent call last):
> >   File "afolia01.py", line 11, in ?
> >     from filtres import *
> >   File "/home/rbastian/pythoneon/Filtres/filtres.py", line 5, in ?
> >     #--------------------------
> > ImportError: No module named convolve
> >
> > The line 5 is an commented line !
>
> Show us maybe the first 10 lines of filtres.py.
This are the first 14 lines of filtres.py
(the tags are lHTML-like)
<pre>
#-*-python-*-
#-*-coding:latin-1-*-
import numarray as NA
import numarray.convolve as conv
#--------------------------

from utiles import sr, midi2freq, aff
from math import sqrt
import Canal

"""
une collection de filtres
"""
#----------------------------------------------------------
</pre>
filtres.py alone works ...
bu if imported, it dont
here the first 23 lines of an application (filtres is imported)
where it dont work


<pre>
#-*-python-*-
#-*-coding:Latin 1-*-
"""
suite d'evenements
 1 son seul ; tr\`es fort
 2 sons superpos\'e ; de moins en moins fort
 ....
 n sons superposes
séparés par des écarts aleatoires

v0.colognestereo.raw est la version sans valeur 'amplitude' ni 'enveloppe'
"""
import random
import numarray.random_array as RA
#import Convolve
import numarray.convolve as Convolve
from numarray import *
from profils import *
from filtres import *
import utiles as U
from ondesNumarray import *
from oscillateurs import *
</pre>

-- 
René Bastian
http://www.musiques-rb.org : Musique en Python 




More information about the NumPy-Discussion mailing list