Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named dobject.groupthink #3

Open
yell0wfl4sh opened this issue Apr 6, 2018 · 8 comments
Open

ImportError: No module named dobject.groupthink #3

yell0wfl4sh opened this issue Apr 6, 2018 · 8 comments

Comments

@yell0wfl4sh
Copy link

The error is logged on running this activity.

@quozl
Copy link
Contributor

quozl commented Apr 8, 2018

As the dobject directory is a git submodule, please verify that you used git clone --recursive or the Arithmetic bundle file from activities.sugarlabs.org.

We often have problems reported with submodules caused by not cloning recursively. Perhaps we should include the source instead of using a submodule.

@yell0wfl4sh
Copy link
Author

@quozl I am facing some difficulties while porting dobject to Gtk+3, I don't know the equivalent of GenericTreeView in Gtk+3, so I am kinda stuck here, please tell me if you know anything about it, thanks.
For more info, see: https://github.com/yashagrawal3/arithmetic/tree/gtk3

@chimosky
Copy link
Member

chimosky commented Jul 7, 2018

@yashagrawal3 does activity run or error is thrown, and an error log would be helpful.

@yell0wfl4sh
Copy link
Author

@chimosky here:

Traceback (most recent call last):
  File "/usr/bin/sugar-activity", line 220, in <module>
    main()
  File "/usr/bin/sugar-activity", line 164, in main
    module = __import__(module_name)
  File "/home/yash/gssoc/arithmetic/arithmetic.py", line 27, in <module>
    import dobject.groupthink.gtk_tools as gtk_tools
  File "/home/yash/gssoc/arithmetic/dobject/groupthink/gtk_tools.py", line 84, in <module>
    class SharedTreeStore(groupthink.CausalHandlerAcceptor, Gtk.TreeModel):
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 214, in __init__
    super(GObjectMeta, cls).__init__(name, bases, dict_)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 193, in __init__
    cls._type_register(cls.__dict__)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 205, in _type_register
    _gobject.type_register(cls, namespace.get('__gtype_name__'))
TypeError: Error when calling the metaclass bases
    argument must be a GObject subclass

@chimosky
Copy link
Member

chimosky commented Jul 7, 2018

@yashagrawal3 seems your version isn't the same as the one in https://github.com/yashagrawal3/arithmetic/tree/gtk3

@yell0wfl4sh
Copy link
Author

sorry, please recheck.

@quozl
Copy link
Contributor

quozl commented Jul 13, 2018

@yashagrawal3, sorry, I don't know anything about GenericTreeView. Check the GTK+ 2 and GTK+ 3 documentation?

@quozl
Copy link
Contributor

quozl commented Jan 8, 2020

GroupThink is in the StopWatch activity too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants