Again, I forgot to send it to all.<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Alberto Arruda de Oliveira</b> <span dir="ltr"><<a href="mailto:alberto.a.oliv@gmail.com">alberto.a.oliv@gmail.com</a>></span><br>
Date: 2010/6/14<br>Subject: Re: [Sugar-devel] Problems adapting activity<br>To: Daniel Drake <<a href="mailto:dsd@laptop.org">dsd@laptop.org</a>><br><br><br>Sorry for taking so long to answer.<br><br>Anyway, the null.png problem is quite weird, since I could find it there. It seems like the problem now isn't with the adaptation, but with the code itself.<br>
<br>Thank you all for the help. I'll update here if I make any progress / find any other problem.<br>
<br><div class="gmail_quote">2010/6/11 Daniel Drake <span dir="ltr"><<a href="mailto:dsd@laptop.org" target="_blank">dsd@laptop.org</a>></span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 11 June 2010 08:43, Alberto Arruda de Oliveira<br>
<div><<a href="mailto:alberto.a.oliv@gmail.com" target="_blank">alberto.a.oliv@gmail.com</a>> wrote:<br>
</div><div><div></div><div>> Here's the log my activity generated.<br>
><br>
> 1276255872.662322 WARNING root: Bundle Blocos: invalid entry in MANIFEST:<br>
> COPYING<br>
> 1276255872.664506 WARNING root: Bundle Blocos: MANIFEST includes itself:<br>
> MANIFEST<br>
> aviso! imagem 'null.png' nao encontrada<br>
> Traceback (most recent call last):<br>
> File "/usr/bin/sugar-activity", line 136, in <module><br>
> create_activity_instance(activity_constructor, activity_handle)<br>
> File "/usr/bin/sugar-activity", line 36, in create_activity_instance<br>
> activity = constructor(handle)<br>
> File "/home/amarcorin/Activities/Blocos.activity/Blocos.py", line 99, in<br>
> __init__<br>
> self.generate_blocklist()<br>
> File "/home/amarcorin/Activities/Blocos.activity/Blocos.py", line 420, in<br>
> generate_blocklist<br>
> self.add_block_tree( self.treeList[0], None, on_block() )<br>
> File "/home/amarcorin/Activities/Blocos.activity/Blocos.py", line 395, in<br>
> add_block_tree<br>
> if block.get_width() > self.maxblockwidth:<br>
> File "/home/amarcorin/Activities/Blocos.activity/blockcanvas/block.py",<br>
> line 599, in get_width<br>
> return self.get_image()[0].get_width()<br>
> AttributeError: 'NoneType' object has no attribute 'get_width'<br>
><br>
> Seems like the main problem is the MANIFEST thing. Also, a lot of stuff that<br>
> seems related to the code itself, although, most of them are pretty strange,<br>
> since I didn't really change anything within the code besides importing the<br>
> sugar class and doing the changes related to it.<br>
<br>
</div></div>The MANIFEST thing is unrelated and harmless.<br>
I guess your error is that the activity cannot locate null.png<br>
<font color="#888888"><br>
Daniel<br>
</font></blockquote></div></div></div><br>
</div><br>