Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blohg runserver on Debian Sid #8

Open
RMCampos opened this issue May 15, 2019 · 5 comments
Open

blohg runserver on Debian Sid #8

RMCampos opened this issue May 15, 2019 · 5 comments

Comments

@RMCampos
Copy link
Contributor

RMCampos commented May 15, 2019

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
@RMCampos
Copy link
Contributor Author

There are problems with initrepo too!

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

PS: On Ubuntu 18.04 updated everything works fine.

@rafaelmartins
Copy link
Owner

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
Copy link
Contributor Author

Didn't work for runserver nor initrepo =/

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

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

@RMCampos
Copy link
Contributor Author

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
Copy link
Contributor Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants