Advice to update Mercurial in a shared hosting?

Marcos Cruz mercurial-list at programandala.net
Mon Jul 11 19:38:44 UTC 2022


Hello,

I want to install hgweb.cgi for the first time. I have read the wiki
article (https://www.mercurial-scm.org/wiki/PublishingRepositories) and
have prepared a subdomain of mine with CGI support.

I have the following versions installed:

- The server has Mercurial 3.7.3, Python 2.6.6 and 3.4.3.

- My local system (Debian 10.12) has Mercurial 6.1.4, Python 2.7.16 and
  3.7.3.

I suppose those distant versions of Mercurial must be incompatible in
this case, right?

My hosting is shared: I can not install anything on the server except in
my home directory. I tried the following: I uploaded the tar.gz of
Mercurial 6.1.4 to the server by FTP. Then, through SSH, I unpacked it
and did `make local`. It failed immediately with the following message:

```
python3 setup.py  \
          build_py -c -d . \                                                                           build_ext  -i \
          build_hgexe  -i \
          build_mo
Traceback (most recent call last):
  File "setup.py", line 455, in <module>
    b'version = b"%s"\n' % versionb,
TypeError: unsupported operand type(s) for %: 'bytes' and 'bytes'
make: *** [local] Error 1
```

Could it be an incompatibility between Python 3.4.3 and 3.7.3? I'm not a
Python programmer, I'm just guessing. 

I've found some instructions to update Python on a shared hosting and
they seem quite simple, but I prefer to ask for some advice first. What
do you recommend?

Thank you in advance.

-- 
Marcos Cruz
http://programandala.net


More information about the Mercurial mailing list