foss-np / anubad

gloss browser for https://github.com/foss-np/np-l10n-glossary
Other
9 stars 5 forks source link

Can't run app from experimental branch #10

Closed samundra closed 8 years ago

samundra commented 8 years ago

I checked out experimental branch and tried running it. I ended up with following errors.

developer@PC-256:~/personal/anubad (experimental)ॐ $ make
cd src; make
make[1]: Entering directory `/home/developer/personal/anubad/src'
./main.py
glossary: ~/.cache/anubad/gloss/foss/en2np/ 3675
glossary: ~/.cache/anubad/gloss/foss/np2en/ 81
Traceback (most recent call last):
  File "./main.py", line 69, in on_startup
    self.root = ui.home.main(core, rc, app=self)
  File "/home/developer/personal/anubad/src/ui/home.py", line 636, in main
    return Home(core, rc, app)
  File "/home/developer/personal/anubad/src/ui/home.py", line 129, in __init__
    self.makeWidgets()
  File "/home/developer/personal/anubad/src/ui/home.py", line 166, in makeWidgets
    hpaned.add2(self.makeWidgets_viewer())
  File "/home/developer/personal/anubad/src/ui/home.py", line 341, in makeWidgets_viewer
    self.viewer = ui.view.Display(self, PWD)
  File "/home/developer/personal/anubad/src/ui/view.py", line 30, in __init__
    self.makeWidgets()
  File "/home/developer/personal/anubad/src/ui/view.py", line 60, in makeWidgets
    self.textview.set_top_margin(-15) # hack for next search separation '\n'
AttributeError: 'TextView' object has no attribute 'set_top_margin'
Traceback (most recent call last):
  File "./main.py", line 116, in on_activate
    self.root.show_all()
AttributeError: 'App' object has no attribute 'root'

Basically, AttributeError: 'TextView' object has no attribute 'set_top_margin' seems to be the problem. Maybe I am using the older Gtk.

krazedkrish commented 8 years ago

Seems so! It's working in mine FYI, I have gtk3 3.20.4-2 and pygtk 2.24.0-6

samundra commented 8 years ago

I don't know what could be other problem. The last time I remember @rhoit mentioned something about the py3 and gtk version compatibility.

I don't have problem running the application from master branch. When I run application from master branch the icon are missing which I believe is due to older gtk version.