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.


_______________________________________________
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general

Reply via email to