From: James G. S. (jim) <jg...@sa...> - 2008-01-06 21:44:53
|
Serge Noiraud wrote: > Le/The dimanche 6 janvier 2008, James G. Sack (jim) a écrit/wrote : >> Benny Malengier wrote: >>> The link you give Eeror is not working, but anyway, gtkmozembed is an >>> official part of pygtk: >>> >>> http://www.pygtk.org/reference.html >>> >>> so not really dependant on mozilla. >> .../DataViews/GoogleView.py", line 66 >> ImportError: No module named gtkmozembed >> >> I have >> pygtk2-2.10.6-1.fc7 > > You need to have : > On [*]ubuntu : python-gnome2-extras > I think it's the same on the major distros ( fedora, ... ) Fedora7 has something called gnome-python2-extras with a scheme file /usr/share/pygtk/2.0/defs/gtkmozembed.defs but that doesn't seem to help Trying the F8 version leads to dependency hell Ok looking a bit further reveals the existence of gnome-python2-gtkmozembed-2.14.3-7.fc7.x86_64.rpm which installs I tried to compile the src.rpm, but could not resolve a dependency: gecko-devel = 1.8.1.10 is needed Oh, well, just install the precompiled rpm. ==> Now "import gtkmozembed" works in my F7. ==> BUT: now I get File "/home/jbase/checkouts/gramps/gtrunk/src/DataViews/GoogleView.py", line 101, in set_mozembed_proxy proxy = os.environ['http_proxy'] File "/usr/lib64/python2.5/UserDict.py", line 22, in __getitem__ raise KeyError(key) KeyError: 'http_proxy' OK, that's fixable, the code setting proxy SB something like """ data = "" if 'http_proxy' in os.environ: proxy = os.environ['http_proxy'] ... """ ==> BUT: then I get File "/home/jbase/checkouts/gramps/gtrunk/src/DataViews/GoogleView.py", line 128, in set_mozembed_proxy fd = file(MOZEMBED_PATH+MOZEMBED_SUBPATH+"/prefs.js","w+") IOError: [Errno 2] No such file or directory: '/tmp/browser/prefs.js' ok, (maybe?) need something like """ if not os.path.isdir(MOZEMBED_PATH+MOZEMBED_SUBPATH): os.makedirs(MOZEMBED_PATH+MOZEMBED_SUBPATH) before the fd = file(MOZEMBED_PATH+MOZEMBED_SUBPATH+"/prefs.js","w+") ==> Nope: that gives a segfault. I guess there may need to be more "else-branch" bulletproofing? Or maybe there's something broken in F7's gtkmozembed? Or maybe I've introduced some library mis-match in my attempts to install out-of-repository rpms. - - - On a minor note: File "/home/jbase/checkouts/gramps/gtrunk/src/GoogleView.py", line 246 TabError: inconsistent use of tabs and spaces in indentation On another minor note: To disable GoogleView, I have to edit 2 files, and change 3 things. Config/_GrampsConfigKeys.py .. "DATA_VIEWS: .." DataViews/__init__.py .. "import .." and "DATA_VIEWS = .." It seems like there might be some better way to do this [someday?] perhaps via a registration or auto-detect process Regards, ..jim (disregard the whines, ad lib) |