<div dir="ltr">Hello,<br><br>Sir I tried installing GTK+2 but it seems it didn't get installed . I am using Ubuntu 18.04 on my VM.<br>It would be great if you could help me with the installation of GTK+2 (command or the source from where I can install it with steps).<br><br>Thank You</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 23, 2020 at 8:51 AM James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You haven't got GTK 2 installed yet, on your VM.  I can't be specific<br>
about how to install it, because I don't know what operating system<br>
you are using in the VM.<br>
<br>
Immediately after that, you will also face<br>
<a href="https://github.com/sugarlabs/arithmetic/issues/3" rel="noreferrer" target="_blank">https://github.com/sugarlabs/arithmetic/issues/3</a><br>
<br>
On Thu, Jan 23, 2020 at 04:26:48AM +0530, Abhishek Tanwar wrote:<br>
> I am trying to port the Arithmetic activity to GTK+3 . I downloaded the<br>
> repository and ran it (GTK version) so that I can see the interface and make<br>
> the same using GTK+3 but it doesnt work.<br>
> Here are the logs when I run this activity on my sugar desktop on my VM.<br>
> I am not able to understand the errors,if anyone could show me the direction<br>
> .It would be much appreciated.<br>
> <br>
> Thank You<br>
> <br>
> <type 'exceptions.ImportError'><br>
> Python 2.7.17: /usr/bin/python<br>
> Thu Jan 23 04:13:18 2020<br>
> <br>
> A problem occurred in a Python script.  Here is the sequence of<br>
> function calls leading up to the error, in the order they occurred.<br>
> <br>
>  /usr/bin/sugar-activity in <module>()<br>
>   215<br>
>   216     if hasattr(instance, 'run_main_loop'):<br>
>   217         instance.run_main_loop()<br>
>   218<br>
>   219 main()<br>
> main = <function main><br>
> <br>
>  /usr/bin/sugar-activity in main()<br>
>   161     class_name = splitted_module[1]<br>
>   162<br>
>   163     module = __import__(module_name)<br>
>   164     for comp in module_name.split('.')[1:]:<br>
>   165         module = getattr(module, comp)<br>
> module undefined<br>
> builtin__import__ = <built-in function __import__><br>
> module_name = 'arithmetic'<br>
> <br>
>  /usr/share/sugar/activities/Arithmetic.activity/arithmetic.py in <module>()<br>
>    15<br>
>    16 import logging<br>
>    17 import gtk<br>
>    18 import pango<br>
>    19 import random<br>
> gtk undefined<br>
> <type 'exceptions.ImportError'>: No module named gtk<br>
>     __class__ = <type 'exceptions.ImportError'><br>
>     __delattr__ = <method-wrapper '__delattr__' of exceptions.ImportError<br>
> object><br>
>     __dict__ = {}<br>
>     __doc__ = "Import can't find module, or can't find name in module."<br>
>     __format__ = <built-in method __format__ of exceptions.ImportError object><br>
>     __getattribute__ = <method-wrapper '__getattribute__' of<br>
> exceptions.ImportError object><br>
>     __getitem__ = <method-wrapper '__getitem__' of exceptions.ImportError<br>
> object><br>
>     __getslice__ = <method-wrapper '__getslice__' of exceptions.ImportError<br>
> object><br>
>     __hash__ = <method-wrapper '__hash__' of exceptions.ImportError object><br>
>     __init__ = <method-wrapper '__init__' of exceptions.ImportError object><br>
>     __new__ = <built-in method __new__ of type object><br>
>     __reduce__ = <built-in method __reduce__ of exceptions.ImportError object><br>
>     __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.ImportError<br>
> object><br>
>     __repr__ = <method-wrapper '__repr__' of exceptions.ImportError object><br>
>     __setattr__ = <method-wrapper '__setattr__' of exceptions.ImportError<br>
> object><br>
>     __setstate__ = <built-in method __setstate__ of exceptions.ImportError<br>
> object><br>
>     __sizeof__ = <built-in method __sizeof__ of exceptions.ImportError object><br>
>     __str__ = <method-wrapper '__str__' of exceptions.ImportError object><br>
>     __subclasshook__ = <built-in method __subclasshook__ of type object><br>
>     __unicode__ = <built-in method __unicode__ of exceptions.ImportError<br>
> object><br>
>     args = ('No module named gtk',)<br>
>     message = 'No module named gtk'<br>
> <br>
> The above is a description of an error in a Python program.  Here is<br>
> the original traceback:<br>
> <br>
> Traceback (most recent call last):<br>
>   File "/usr/bin/sugar-activity", line 219, in <module><br>
>     main()<br>
>   File "/usr/bin/sugar-activity", line 163, in main<br>
>     module = __import__(module_name)<br>
>   File "/usr/share/sugar/activities/Arithmetic.activity/arithmetic.py", line<br>
> 17, in <module><br>
>     import gtk<br>
> ImportError: No module named gtk<br>
> <br>
> Exited with status 1, pid 1675 data (<open file '<fdopen>', mode 'w' at<br>
> 0x7f28d7dbc780>, 'e1df43f3e9571a85b2dc8b025ba334c83eff39ea')<br>
> <br>
> On Tue, Jan 21, 2020 at 6:52 PM Walter Bender <[1]<a href="mailto:walter.bender@gmail.com" target="_blank">walter.bender@gmail.com</a>><br>
> wrote:<br>
> <br>
>     On Tue, Jan 21, 2020 at 6:15 AM Abhishek Tanwar <[2]<br>
>     <a href="mailto:abhishektanwar184@gmail.com" target="_blank">abhishektanwar184@gmail.com</a>> wrote:<br>
> <br>
>         Hello sir<br>
>         Thank you for your response and valuable information . I have found these<br>
>         [3]<a href="https://github.com/sugarlabs/arithmetic/issues/4" rel="noreferrer" target="_blank">https://github.com/sugarlabs/arithmetic/issues/4</a> and<br>
>         [4]<a href="https://github.com/sugarlabs/Bounce" rel="noreferrer" target="_blank">https://github.com/sugarlabs/Bounce</a><br>
>         activities and I feel comfortable with the code and I want to port this<br>
>         activity to GTK +3.<br>
> <br>
>         Is there any certain procedure that I am supposed to follow in order to<br>
>         contribute to these two tasks or can I straight away start with it.<br>
> <br>
>     [5]<a href="https://github.com/sugarlabs/sugar-docs/blob/master/src/contributing.md" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-docs/blob/master/src/contributing.md</a><br>
>      should have all the information you need.<br>
> <br>
>     regards.<br>
> <br>
>     -walter<br>
> <br>
>         Thank you<br>
> <br>
>         _______________________________________________<br>
>         Sugar-devel mailing list<br>
>         [6]<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
>         [7]<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> <br>
>     --<br>
>     Walter Bender<br>
>     Sugar Labs<br>
>     [8]<a href="http://www.sugarlabs.org" rel="noreferrer" target="_blank">http://www.sugarlabs.org</a><br>
>     [9]<br>
> <br>
> References:<br>
> <br>
> [1] mailto:<a href="mailto:walter.bender@gmail.com" target="_blank">walter.bender@gmail.com</a><br>
> [2] mailto:<a href="mailto:abhishektanwar184@gmail.com" target="_blank">abhishektanwar184@gmail.com</a><br>
> [3] <a href="https://github.com/sugarlabs/arithmetic/issues/4" rel="noreferrer" target="_blank">https://github.com/sugarlabs/arithmetic/issues/4</a><br>
> [4] <a href="https://github.com/sugarlabs/Bounce" rel="noreferrer" target="_blank">https://github.com/sugarlabs/Bounce</a><br>
> [5] <a href="https://github.com/sugarlabs/sugar-docs/blob/master/src/contributing.md" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-docs/blob/master/src/contributing.md</a><br>
> [6] mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> [7] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> [8] <a href="http://www.sugarlabs.org/" rel="noreferrer" target="_blank">http://www.sugarlabs.org/</a><br>
> [9] <a href="http://www.sugarlabs.org/" rel="noreferrer" target="_blank">http://www.sugarlabs.org/</a><br>
<br>
<br>
> _______________________________________________<br>
> Sugar-devel mailing list<br>
> <a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br>
<br>
-- <br>
James Cameron<br>
<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
</blockquote></div>