<unloaded module'SSLContext'>对象在Mercurial h上不可调用

2024-06-16 10:55:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个运行apache的Ubuntu服务器和一个mercurial设置了一个hgweb.cgi网站脚本。在

我想做的是设置一个传入钩子,通过post请求将一些数据发送到另一个服务器,因此,在hgweb.config文件我有:

[hooks]
incoming=python:/var/hg/testing_hook.py:my_hook

还有我的测试_钩子.py在

^{pr2}$

问题是我得到了以下错误:

remoto: adding changesets
remoto: adding manifests
remoto: adding file changes
remoto: added 1 changesets with 1 changes to 1 files
error: incoming hook raised an exception: <unloaded module 'SSLContext'> object is not callable

奇怪的是,如果我只是通过comandshell调用脚本,它就可以正常工作了。在

这看起来不像是权限问题,因为钩子正在被调用。。。在

有什么建议吗?在


Tags: py服务器脚本ubuntuapachehookmercurial钩子