Blocos won't run on computer

9 views
Skip to first unread message

brett

unread,
Nov 13, 2009, 6:35:50 PM11/13/09
to br-...@googlegroups.com
I installed all of the support software and downloaded revision 105 on a
linux computer at my son's school, but I was unable to run Blocos. I
also tried to run a copy of Blocos from the thumbdrive that has a linux
install of Blocos from the same computer and it came up with the same
error message. The error messages are below:

bnelson@freekbox:~/br-gogo/host/blocos/trunk$ python Blocos.py
aviso! imagem 'images/en_CA/block_images/null.png' nao encontrada
Traceback (most recent call last):
File "Blocos.py", line 671, in <module>
Main()
File "Blocos.py", line 158, in __init__
self.generate_blocklist()
File "Blocos.py", line 482, in generate_blocklist
self.add_block_tree( self.treeList[0], None, on_block() )
File "Blocos.py", line 457, in add_block_tree
if block.get_width() > self.maxblockwidth:
File "/home/bnelson/br-gogo/host/blocos/trunk/blockcanvas/block.py",
line 599, in get_width
return self.get_image()[0].get_width()
AttributeError: 'NoneType' object has no attribute 'get_width'
bnelson@freekbox:~/br-gogo/host/blocos/trunk$



Now that I'm back home and thinking about it, maybe the screen size was
too small for the default Blocos window. Any thoughts?

Brett

Lucas Tanure

unread,
Nov 13, 2009, 7:08:46 PM11/13/09
to br-...@googlegroups.com
Well,
I believe that your software has a file error. I think it would be better first upgrade to the newer version, than make new tests.

But if you see something wrong with the window size. Comment out lines 543 and 544 of Blocks.py and run again.

Lucas A. Tanure Alves
Centro de Tecnologia da Informação Renato Archer
Equipe de Desenvolvimento Gogo Board Brasil
+55 (19) 88176559

brett

unread,
Nov 13, 2009, 7:57:31 PM11/13/09
to br-...@googlegroups.com
I will give both of those suggestions a try when I go back in Monday.
Thanks!

Victor Matheus

unread,
Nov 13, 2009, 10:13:10 PM11/13/09
to br-...@googlegroups.com
Hi Brett, in fact this issue was caused because your computer language is Canadian English, while the supported languages are Brazilian Portuguese and American English (dunno if there is difference:p), but it is enough to bug the software.

I've commited a temporary fix to this, if the language isn't discovered, it will show a menu with available languages.

bye!

brett

unread,
Nov 14, 2009, 1:20:05 AM11/14/09
to br-...@googlegroups.com
I didn't notice that before, but you're right, it is looking for files
supporting Canadian english. I don't know who set the computer up that
way, but I will change it. Your fix will be very helpful for those not
living in Brazil or the US.

Thanks for the help!

Brett
Reply all
Reply to author
Forward
0 new messages