[PD] [pixelTANGO] AttributeError:

chun chun at goto10.org
Sat Oct 29 01:19:26 CEST 2005


On Fri, Oct 28, 2005 at 11:31:38PM +0100, chun wrote :
> On Fri, Oct 28, 2005 at 03:44:29PM +0200, Thomas Grill wrote :
> > Hi chun,
> > remembering a conversation with Ben, the Pixeltango scripts don't seem 
> > to be well-tested with newer (starting with 2.0) py/pyext versions.
> > In these, a Symbol type has been introduced corresponding to the PD 
> > symbol type, for increased performance. It needs to be converted into 
> > string (using str() ), before actual string operations can be performed. 
> > I think this is missing in Pixeltango.
> > 
> > best,
> > Thomas
> > 
> 
> ok, i have changed line 23 of pt.py to:
> 
> entries=glob.glob(os.path.join(str(path),str(pattern)))
> 
> the errors are gone.

i also changed line 14 to:

return os.path.splitext(str(arg))[0]

and line 35 to:

return os.path.basename(str(arg))

to get rid of further errors. i think it works, but i have to say that these are blind guesses as i don't 
know python...

chun

> 
> cheers
> 
> chun
> 
> > 
> > chun schrieb:
> > 
> > >hi all:
> > >
> > >i have:
> > >
> > >1.
> > >------------------------------------------------
> > >py/pyext 0.2.1pre - python script objects
> > >(C)2002-2005 Thomas Grill - http://grrrr.org/ext
> > >
> > >using Python 2.4.1 (#1, Oct 28 2005, 20:05:40) 
> > >[GCC 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)]
> > >------------------------------------------------
> > >
> > >2. flext 0.5.1
> > >3. pixelTANGO CVS-Snapshot, dowloaded just now
> > >
> > >upon loading the example patch of pixeltango. i got:
> > >
> > >pt.layerfx-Dynamic-FX: bang
> > >DEBUG: Dir: /Applications/PixelTANGO-CVS/abstractions/ Read-dir:  Layernum 
> > >0
> > >Traceback (most recent call last):
> > > File "/home/sonicvariable3/src/pixelTANGO/scripts/pt.py", line 23, in 
> > > dirlist
> > >   entries=glob.glob(os.path.join(path,pattern))
> > > File "/usr/lib/python2.4/posixpath.py", line 60, in join
> > >   if b.startswith('/'):
> > >AttributeError: 'Symbol' object has no attribute 'startswith'
> > >pt.layerfx-Dynamic-FX: bang
> > >DEBUG: Dir: /Applications/PixelTANGO-CVS/abstractions/ Read-dir:  Layernum 
> > >0
> > >Traceback (most recent call last):
> > > File "/home/sonicvariable3/src/pixelTANGO/scripts/pt.py", line 23, in 
> > > dirlist
> > >   entries=glob.glob(os.path.join(path,pattern))
> > > File "/usr/lib/python2.4/posixpath.py", line 60, in join
> > >   if b.startswith('/'):
> > >AttributeError: 'Symbol' object has no attribute 'startswith'
> > >pt.entry-Font-Dir: /Applications/PixelTANGO/fonts
> > >Traceback (most recent call last):
> > > File "/home/sonicvariable3/src/pixelTANGO/scripts/pt.py", line 23, in 
> > > dirlist
> > >   entries=glob.glob(os.path.join(path,pattern))
> > > File "/usr/lib/python2.4/posixpath.py", line 60, in join
> > >   if b.startswith('/'):
> > >AttributeError: 'Symbol' object has no attribute 'startswith'
> > >Traceback (most recent call last):
> > > File "/home/sonicvariable3/src/pixelTANGO/scripts/pt.py", line 23, in 
> > > dirlist
> > >   entries=glob.glob(os.path.join(path,pattern))
> > > File "/usr/lib/python2.4/posixpath.py", line 60, in join
> > >   if b.startswith('/'):
> > >AttributeError: 'Symbol' object has no attribute 'startswith'
> > >Traceback (most recent call last):
> > > File "/home/sonicvariable3/src/pixelTANGO/scripts/pt.py", line 23, in 
> > > dirlist
> > >   entries=glob.glob(os.path.join(path,pattern))
> > > File "/usr/lib/python2.4/posixpath.py", line 60, in join
> > >   if b.startswith('/'):
> > >AttributeError: 'Symbol' object has no attribute 'startswith'
> > >
> > >i think this is the same errors i got from installing flext/py/pixeltango 
> > >on pure:dyne in piksel. anyideas how the errors can be fixed? 
> > >
> > >cheers
> > >
> > >chun
> > >
> > >
> > >_______________________________________________
> > >PD-list at iem.at mailing list
> > >UNSUBSCRIBE and account-management -> 
> > >http://lists.puredata.info/listinfo/pd-list
> > >
> > >
> > > 
> > >
> > 
> > -- 
> > Thomas Grill
> > http://grrrr.org
> > 
> > 
> 
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list




More information about the Pd-list mailing list