rafaelmartins / blohg

A Mercurial/Git based blogging engine
http://blohg.org/
GNU General Public License v2.0
33 stars 9 forks source link

blohg runserver on Debian Sid #8

Open RMCampos opened 5 years ago

RMCampos commented 5 years ago

Hello!

When trying to run blohg runserver on Debian Sid: https://paste.debian.net/1081557/

Version packages that may help:

RMCampos commented 5 years ago

There are problems with initrepo too!

https://paste.debian.net/1081587/

PS: On Ubuntu 18.04 updated everything works fine.

rafaelmartins commented 5 years ago

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 ...
RMCampos commented 5 years ago

Didn't work for runserver nor initrepo =/

runserver: https://paste.debian.net/1081609/

initrepo: https://paste.debian.net/1081608/

RMCampos commented 5 years ago

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.

RMCampos commented 5 years ago

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!