Hi,

well - the API didn't change on purpose, but you're passing an empty  
string as a numeric parameter ('x=""'). I'd say that you were taking  
advantage of undefined behaviour for version 0.7.0 and this behaviour  
has changed in the meantime ;-).

Try:

   <words id="text1" font="arial" text="Layout ID 1" />

instead, just leaving out the position parameters.

Cheers,

   Uli

On Apr 27, 2009, at 6:32 PM, Alex Harrington wrote:

> Heya
>
> I've run in to a problem which I'm having real trouble solving.  
> Hopefully it's something simple :D
>
> I'm running Ubuntu Jaunty (with proposed update that fixes libavg  
> working at all!) as follows:
>
> a...@alex-laptop:~/xibo-python/client/python$ python
> Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
> [GCC 4.3.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> quit()
> a...@alex-laptop:~/xibo-python/client/python$ apt-cache policy  
> python-libavg
> python-libavg:
>  Installed: 0.8.0-2ubuntu2.1
>  Candidate: 0.8.0-2ubuntu2.1
>
> I've got some code I was running under Ubuntu Intrepid (libavg  
> 0.7.0-9ubuntu1) but no longer works:
>
> region1 = self.p.createNode('<div id="region" x="30" y="30"  
> width="300" height="30"><words id="text1" x="" y="" font="arial"  
> text="Layout ID 1" /></div>')
>
> where self.p is an instance of Player.
>
> When I execute that, I get "RuntimeError: Error in conversion of ''  
> to double".
>
> Did the API change?
>
> If you need to see the code in context, it's available here:
>
> http://bazaar.launchpad.net/~alexharrington/xibo/pyclient/annotate/head%3A/client/python/XiboClient.py#L96
>
> Cheers
>
> Alex
>
> -- 
> Alex Harrington - Network Manager
> Longhill High School
> t: 01273 304086 e: [email protected]
>
>
> _______________________________________________
> libavg-users mailing list
> [email protected]
> https://mail.datenhain.de/mailman/listinfo/libavg-users
>

--
Any technology distinguishable from magic is insufficiently advanced.

Ulrich von Zadow | +49-172-7872715
Jabber: [email protected]
Skype: uzadow




_______________________________________________
libavg-users mailing list
[email protected]
https://mail.datenhain.de/mailman/listinfo/libavg-users

Reply via email to