It is sad that these developers do not have access to Sugar installed on
an XO. The process of upgrading from GTK2 to GTK3 is simple and
practical. The original version of the activity can be run directly. The
new version can be installed in parallel. As changes are made they can
be directly tested. Then the GTK3 version can be uploaded to GitHub.
Tony
On 1/29/20 2:09 PM, James Cameron wrote:
Yes, that's an expected traceback. It is caused because the "Sugar
Toolkit for GTK 2" software is not installed on your computer.
Ubuntu 18.04 does not have a package for this software. It was
removed in the interval between Ubuntu 16.04 and 18.04, in turn
because other GTK 2 packages were removed.
You can download Ubuntu 16.04 and install Sugar, and this will give
you GTK 2 support for Sugar activities so you can run them before
porting them to GTK 3.
Or you can download OLPC OS 18.04.0 and run it in a VM, and this will
combine Ubuntu 18.04 with GTK 2 support;
http://wiki.laptop.org/go/18.04.0
We also explain in the native sugar development environment
documentation how to install "Sugar Toolkit for GTK 2" from source
code, but given your experience so far I really do not recommend
trying this.
On Wed, Jan 29, 2020 at 01:37:30PM +0530, Abhishek Tanwar wrote:
Sorry I posted the wrong traceback by mistake. Here is the traceback I wanted
to post . I am really sorry
Traceback (most recent call last):
File "/usr/bin/sugar-activity", line 219, in <module>
main()
File "/usr/bin/sugar-activity", line 163, in main
module = _import_(module_name)
File "/usr/share/sugar/activities/Arithmetic.activity/arithmetic.py", line
28, in <module>
import dobject.groupthink.sugar_tools as sugar_tools
File "/usr/share/sugar/activities/Arithmetic.activity/dobject/groupthink/
sugar_tools.py", line 20, in <module>
from sugar.activity.activity import Activity, ActivityToolbox
ImportError: No module named sugar.activity.activity
On Wed, Jan 29, 2020 at 1:30 PM Chihurumnaya Ibiam <[1]
ibiamchihurumn...@gmail.com> wrote:
The traceback you posted shows you didn't import Gdk but used it, make sure
Gdk is imported.
On Wed, Jan 29, 2020, 8:33 AM Abhishek Tanwar <[2]
abhishektanwar...@gmail.com> wrote:
I am trying to port [3]https://github.com/sugarlabs/arithmetic to GTk3
but when i run the activity to understand the working(with GTK) it
throws an error "no module named sugar.activity.activity".I searched
google for any potential solutions but could not find anything .
Traceback (most recent call last):
File "/usr/bin/sugar-activity", line 219, in <module>
main()
File "/usr/bin/sugar-activity", line 214, in main
instance = create_activity_instance(activity_constructor,
activity_handle)
File "/usr/bin/sugar-activity", line 48, in create_activity_instance
activity = constructor(handle)
File "/usr/share/sugar/activities/compress-activity.activity/
Compress.py", line 42, in _init_
canvas = PyApp()
File "/usr/share/sugar/activities/compress-activity.activity/
CompressCanvas3.py", line 504, in _init_
if Gdk.Screen.width() >= 1200:
NameError: global name 'Gdk' is not defined
Exited with status 1, pid 1692 data (<open file '<fdopen>', mode 'w' at
0x7f0fd82a3ae0>, 'f5b6d864dcbea56c6345d8d0394716abe77d46e7')
I setup my development environment by following [4]https://github.com/
sugarlabs/sugar/blob/master/docs/ubuntu.md and I am working on ubuntu
18.04.
_______________________________________________
Sugar-devel mailing list
[5]Sugar-devel@lists.sugarlabs.org
[6]http://lists.sugarlabs.org/listinfo/sugar-devel
References:
[1] mailto:ibiamchihurumn...@gmail.com
[2] mailto:abhishektanwar...@gmail.com
[3] https://github.com/sugarlabs/arithmetic
[4] https://github.com/sugarlabs/sugar/blob/master/docs/ubuntu.md
[5] mailto:Sugar-devel@lists.sugarlabs.org
[6] http://lists.sugarlabs.org/listinfo/sugar-devel
_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel
_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel