Package: python3-klaus
Version: 1.3.0-2
Severity: normal

Dear Maintainer,

the example configuration file for setting up klaus with uwsgi has an
error. The file /usr/share/doc/klaus/examples/uwsgi.ini contains this:

    # Example klaus configuration that loads a specific set of repositories.
    [uwsgi]
    # [...]
    # Which repositories to load
    env = KLAUS_REPOS=/path/to/git/repo1:/path/to/git/repo2
    # [...]

`KLAUS_REPOS' does not take a colon-separated list of repositories,
but a space-separated list of repositories. Trying a colon-separated
list of repositories gives this exception when starting klaus via
uwsgi:

    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/klaus/contrib/wsgi.py", line 11, in 
<module>
        application = make_app(*args, **kwargs)
      File "/usr/lib/python3/dist-packages/klaus/__init__.py", line 124, in 
make_app
        ctags_policy,
      File "/usr/lib/python3/dist-packages/klaus/__init__.py", line 20, in 
__init__
        repo_objs = [FancyRepo(path) for path in repo_paths]
      File "/usr/lib/python3/dist-packages/klaus/__init__.py", line 20, in 
<listcomp>
        repo_objs = [FancyRepo(path) for path in repo_paths]
      File "/usr/lib/python3/dist-packages/dulwich/repo.py", line 872, in 
__init__
        "No git repository was found at %(path)s" % dict(path=root)
    dulwich.errors.NotGitRepository: No git repository was found at 
/path/to/git/repo1:/path/to/git/repo2

I used real repository paths, of course.

Using a space-separated instead of a colon-separated list works, so
the example should be:

    env = KLAUS_REPOS=/path/to/git/repo1 /path/to/git/repo2

1. What led up to the situation?
  - I wanted to install klaus to serve my Git repositories.
2. What exactly did you do?
  - I installed klaus, python3-distutils, uwsgi
  - I configured klaus for uwsgi as shown in the example configuration,
    i.e., with colon-separated pathes.
  - I started uwsgi.
3. What was the outcome of this action?
  - klaus crashed with the above exception.
4. What outcome did you expect instead?
  - klaus not crashing.

Thank you for consideration.

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: armhf (armv7l)

Kernel: Linux 4.19.34-v7+ (SMP w/4 CPU cores)
Kernel taint flags: TAINT_CRAP
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-klaus depends on:
ii  python3           3.7.2-1
ii  python3-dulwich   0.19.11-2
ii  python3-flask     1.0.2-3
ii  python3-humanize  0.5.1-3
ii  python3-pygments  2.3.1+dfsg-1
ii  python3-six       1.12.0-1
ii  python3-werkzeug  0.14.1+dfsg1-4

Versions of packages python3-klaus recommends:
ii  python3-chardet   3.0.4-3
ii  python3-docutils  0.14+dfsg-4
ii  python3-markdown  3.0.1-3

Versions of packages python3-klaus suggests:
pn  exuberant-ctags       <none>
ii  uwsgi-plugin-python3  2.0.18-1

-- no debconf information

Reply via email to