Mercurial Server on CentOS 5.5

Nick Doyle
1 min readJul 24, 2018

--

Originally published 8th December, 2011

As of 2011–12–08 mercurial-server apparently written for python 2.5+
while default CentOS 5.5 yum repositories currently are at 2.4.3
Resulting issue comes when hg push:

remote: error: changegroup.aaaaa_servelog hook raised an exception: ‘module’ object has no attribute ‘SEEK_END’

According to python doco os.SEEK_END is new in python 2.5, with a value of 2

Need to either install python 2.5+
or like my quick hack, edit 2 files and replace “os.SEEK_END” with the number 2
Files needed to edit are:
build/lib/mercurialserver/servelog.py
src/mercurialserver/servelog.py

--

--

Nick Doyle
Nick Doyle

Written by Nick Doyle

Cloud-Security-Agile, in Melbourne Australia, experience includes writing profanity-laced Perl, surprise Migrations, furious DB Admin and Motorcycle instructing

No responses yet