[Bf-python] svg2obj script.

jmsoler at free.fr jmsoler at free.fr
Wed Mar 28 17:05:11 CEST 2007


Selon Campbell Barton <cbarton at metavr.com>:

> jmsoler at free.fr wrote:
> > Selon Martin Poirier <theeth at yahoo.com>:
> >
> >> --- Campbell Barton <cbarton at metavr.com> wrote:
> >>
> >>> Hi JMS, can you resolve this?
> >>>
> >>>
> >>>   File
> >>> "/root/.blender/scripts/bpymodules/svg2obj.py", line
> >>> 1086, in
> >>> control_CONTAINT
> >>>      while txt.count(')',t0)>0:
> >>> TypeError: count() takes exactly one argument (2
> >>> given)
> >>>
> >
> > Seems that you have a problem with your python.
> > Try to read this : http://docs.python.org/lib/string-methods.html
> > count(  	sub[, start[, end]])
> >     Return the number of occurrences of substring sub in string
> S[start:end].
> > Optional arguments start and end are interpreted as in slice notation.
>
> Ok, well Im sure I wont be the only person who'll come across this problem.
>
> count is a builtin and Im using 2.4 and 2.5, at the moment I think we
> support python 2.3
>
>
> Any other comments?
>
>
>

Count is a string method, not a list one. It should works on 2.4 and it does.
Why not on the 2.5 ?

jms




More information about the Bf-python mailing list