无法在 freeswitch 上安装 mod_python3
我已经在运行版本 1.10.7 的 freeswitch 盒子上安装了 Freeswitch-mod-python3。然后我取消注释掉 module.conf 文件中的 python3 行。然后做了reloadxml,这次重新加载成功了。当我执行“module_exists mod_python3”时,我得到错误。然后我尝试加载它,得到的错误如下,这很奇怪,因为 python3.so 是该目录中的一个文件,并且与该目录中的所有其他文件具有相同的权限。我已经重新启动了盒子并重新启动了 FS,但没有运气。我还能尝试什么?
freeswitch@fusionPBX> load module mod_python3
+OK Reloading XML
-ERR [module load file routine returned an error]
2022-02-21 20:27:34.505352 99.03% [CRIT] switch_loadable_module.c:1750 Error Loading module /usr/lib/freeswitch/mod/module mod_python3.so
**/usr/lib/freeswitch/mod/module mod_python3.so: cannot open shared object file: No such file or directory**
root@fusionPBX:/usr/lib/freeswitch/mod# ls -ltr | grep python
-rw-r--r-- 1 root root 207968 Oct 24 17:26 mod_python.so
-rw-r--r-- 1 root root 207624 Oct 24 17:26 mod_python3.so
root@fusionPBX:/usr/lib/freeswitch/mod# pwd
/usr/lib/freeswitch/mod
I have installed Freeswitch-mod-python3 on my freeswitch box running version 1.10.7. I then uncommented out the python3 line in the module.conf file. Then did a reloadxml, this reloaded successfully. When I do a "module_exists mod_python3" I get false. Then I tried to load it and the error I get is below, which is weird cause python3.so is a file in that directory and has the same permissions as every other file in that dir. I have rebooted the box as well as restarted FS and no luck. What else can I try?
freeswitch@fusionPBX> load module mod_python3
+OK Reloading XML
-ERR [module load file routine returned an error]
2022-02-21 20:27:34.505352 99.03% [CRIT] switch_loadable_module.c:1750 Error Loading module /usr/lib/freeswitch/mod/module mod_python3.so
**/usr/lib/freeswitch/mod/module mod_python3.so: cannot open shared object file: No such file or directory**
root@fusionPBX:/usr/lib/freeswitch/mod# ls -ltr | grep python
-rw-r--r-- 1 root root 207968 Oct 24 17:26 mod_python.so
-rw-r--r-- 1 root root 207624 Oct 24 17:26 mod_python3.so
root@fusionPBX:/usr/lib/freeswitch/mod# pwd
/usr/lib/freeswitch/mod
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这对我有用:
apt-get install freeswitch-mod-python3
然后我通过将其添加到 autoload_configs/modules.conf.xml 的末尾来加载模块
一旦重新启动,我可以看到模块已加载当我运行时:
这是在添加了 FreeSWITCH 存储库的普通 Debian Buster 盒子上运行的。
This worked for me:
apt-get install freeswitch-mod-python3
Then I loaded the module by adding it to the end of my autoload_configs/modules.conf.xml
Once I restarted I can see the module loaded when I run:
This on a vanilla Debian Buster box with the FreeSWITCH repo added.