钉钉Stream模式推送程序环境部署

python3.10版本需要openssl1.1.1及以上版本

参考链接:https://blog.csdn.net/weixin_42806458/article/details/110678710

bash 复制代码
wget https://www.openssl.org/source/openssl-1.1.1q.tar.gz
unzip openssl-1.1.1q.tar.gz
cd openssl-1.1.1q
./config --prefix=/usr/local/openssl --openssldir=/etc/ssl shared zlib
make && make install
echo "/usr/local/openssl/lib" >>/etc/ld.so.conf
#下面这个命令未确定是否必要
echo "/usr/local/lib64/" >> /etc/ld.so.conf
ldconfig -v
openssl version -a

python3.10.14安装

bash 复制代码
cd Python-3.10.14/
./configure --enable-optimizations --with-openssl=/usr/local/openssl --with-openssl-rpath=auto
make && make altinstall

报错:ModuleNotFoundError: No module named '_ctypes'

解决办法:yum install libffi-devel

报错:ModuleNotFoundError: No module named 'dingtalk.api'

解决办法:参考链接https://developer.aliyun.com/article/864562

bash 复制代码
#dingtalk.zip是解压后的文件中的一个名为dingtalk的文件夹加压后的文件
mv dingtalk.zip /usr/local/lib/python3.10/site-packages/

错误:执行钉钉触发构建python程序时报错Arguments: ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)

解决办法:参考链接https://opensource.dingtalk.com/developerpedia/docs/develop/best-practices/python-ssl/

bash 复制代码
export SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt
相关推荐
木易 士心2 天前
组织架构树形选择组件使用说明(Vue3 + UniApp)
微信小程序·钉钉·notepad++
刘梦凡呀2 天前
C#获取钉钉平台考勤记录
java·c#·钉钉
LoneEon6 天前
Zabbix 配置钉钉告警
ubuntu·钉钉·zabbix
yunson_Liu6 天前
编写Python脚本在域名过期10天内将域名信息发送到钉钉
开发语言·python·钉钉
唤醒手腕6 天前
唤醒手腕2025年最新钉钉开放平台钉钉机器人stream搭建部署详细教程(更新中)
机器人·钉钉
路边闲人218 天前
用python向钉钉群发送消息
钉钉
腾飞开源18 天前
02_钉钉消息处理流程设计
人工智能·钉钉·agent智能体·ai智能体开发·全网首发·新课上线·消息处理器
蓝婴天使1 个月前
Debian13 钉钉无法打开问题解决
linux·服务器·钉钉
阿登林1 个月前
C#调用钉钉API实现安全企业内部通知推送
安全·c#·钉钉
后青春期的诗go1 个月前
金蝶云星空插件开发记录(一)
c#·钉钉·金蝶云星空·插件开发