Issue #341: 0.4.0: git hooks 'work' but outputs ImportError: No module named kallithea.lib.hooks (conservancy/kallithea)

Edmund Wong issues-reply at bitbucket.org
Tue Apr 2 08:25:53 UTC 2019


New issue 341: 0.4.0: git hooks 'work' but outputs ImportError: No module named kallithea.lib.hooks
https://bitbucket.org/conservancy/kallithea/issues/341/040-git-hooks-work-but-outputs-importerror

Edmund Wong:

After adding the patch from issue#333,  and after pushing a change to a git repo,
the following appears:

```

remote:     - /home/kali/tmp/src
remote: Traceback (most recent call last):
remote:   File "hooks/post-receive", line 26, in <module>
remote:     import kallithea.lib.hooks
remote: ImportError: No module named kallithea.lib.hooks
To http://ewong@127.0.0.1:5562/kali/testgit2
   c08fcdb..008fff4  master -> master

```

The steps to reproduce:

1) Create a new Git repo
2) Clone repo to client
3) make a change and push to the git repo (and assuming issue #333's patch is applied)
4) the error appears.

printing out the sys.path list, it does show the kallithea's venv's site-packages path in it,
and the kallithea module is in that directory.  So not sure what I missed.




More information about the kallithea-general mailing list