blohg
blohg copied to clipboard
blohg runserver on Debian Sid
Hello!
When trying to run blohg runserver on Debian Sid: https://paste.debian.net/1081557/
Version packages that may help:
- python 2.7.16
- python-blinker 1.4+dfsg1-0.2
- python-click 7.0-1
- python-docutils 0.14+dfsg-4
- python-flask 1.0.2-3
- python-flask-babel 0.11.2-2
- python-frozen-flask 0.11-3
- python-jinja2 2.10-2
- mercurial 4.9-2
- python-yaml 3.13-2
- python-pygments 2.3.1+dfsg-1
There are problems with initrepo too!
https://paste.debian.net/1081587/
PS: On Ubuntu 18.04 updated everything works fine.
you are probably using a non-utf8 locale, you can check running
$ locale
or just trying to run it like this:
LC_ALL=en_US.utf8 blohg ...
Didn't work for runserver nor initrepo =/
runserver: https://paste.debian.net/1081609/
initrepo: https://paste.debian.net/1081608/
Look this:
$ file -i blohg/init.py blohg/init.py: text/x-python; charset=us-ascii
And when creating a single vi file containing the text: a: $ file -i ricardo.txt ricardo.txt: text/plain; charset=us-ascii
=/
I will sove this ASAP and check blohg again.
In the end I couldn't figure it out where the problem is. May be Debian Sid, may be mercurial version, or both. My locale settings are correct, pt_BR.utf8
But look this: After adding str() at the two error location, changing:
/usr//lib/python2.7/dist-packages/mercurial/localrepo.py
570c570
< cls = type(name, tuple(bases), {})
---
> cls = type(str(name), tuple(bases), {})
2261c2261
< self.origroot,
---
> str(self.origroot),
Everything works as expected!