gwsmhg

Peter Williams pwil3058 at bigpond.net.au
Thu Jun 18 09:38:18 CDT 2009


Peter Williams wrote:
> Peter Williams wrote:
>> Alex K wrote:
>>> Hi!
>>>
>>> Could anyone please help me installing gwsmhg on Windows? I didn't 
>>> find ready-to-use binary package, so I tried to run it from Python 
>>> scripts myself. But I stuck: python25 - yes
>>> pygtk2 - yes
>>> pygtksourceview - fail
>>> pycairo - yes
>>> pygobject2 - yes
>>>
>>> As I understood, pygtksourceview version 1 required?
>> It shouldn't be as I'm using pygtksourceview-2.4.0-1.fc10.x86_64 on my 
>> development machine.
>>
>>> I can't find compiled module for Python. (no problems finding 
>>> pygtksourceview2, but gwsmhg doesn't work with it)
>>>
>> I suspect this a problem with pygtksourceview2 on Windows rather than 
>> with gwsmhg.  Does it work with other programs?
>>
>> The next release of gwsmhg will have a work around for this problem by 
>> using the normal gtk.TextView widget when pygtksourceview import fails. 
>>  This will mean that some minor features (such as a right margin 
>> indicator at 80 characters) will be lost.
>>
>> In the meantime, the attached patch to v-0.4 should do the same trick.
>>
>> Could you let me know if it works?  Plus any other problems encountered 
>> on Windows as I am unable to test on Windows at the moment (although I 
>> am trying to resurrect an old XP laptop with a broken screen, by 
>> plugging it into a TV, to do testing in the future)?
> 
> I've got this working and tested a patched gwsmhg which revealed that 
> the patch missed one import of gtksourceview.  In 
> gswmhg_pkg/file_tree.py replace "gtksourceview" with 
> "gwsmhg_pkg.sourceview" and it should work.

More testing discovered a few more problems which have now been fixed 
and checked in to the source repository on sourceforge:

<http://gwsmhg.hg.sourceforge.net/hgweb/gwsmhg/>

If you check out the latest version it should work on Windows.  It does 
for me on my XP laptop.  But testing has not been exhaustive so there 
could still be problems and feedback is welcome.  If you see any error 
messages on the console that you run gwsmhg from I'd like to see them.

Thanks
Peter
-- 
Peter Williams                                   pwil3058 at bigpond.net.au

"Learning, n. The kind of ignorance distinguishing the studious."
  -- Ambrose Bierce


More information about the Mercurial-devel mailing list