Python3.11修改并运行oneforall

遇到的问题

使用python3.11默认无法运行oneforall脚本,出现如下报错

# 解决方案

修改 /usr/local/lib/python3.11/dist-packages/exrex.py

exrex.py具体文件路径报错中会显示

复制代码
vim /usr/local/lib/python3.11/dist-packages/exrex.py

# 修改前

复制代码
from re import sre_parse, U
from itertools import tee
from random import choice, randint
from types import GeneratorType

# 修改后

复制代码
#from re import sre_parse, U
import sre_parse
from re import U
from itertools import tee
from random import choice, randint
from types import GeneratorType

# 问题解决

相关推荐
Charles_go1 天前
C#中级48、Debug版本和Release版本有什么区别
java·linux·c#
cyber_两只龙宝1 天前
mysql实战项目:keepalived高可用双主架构集群+数据监控(附解析和命令)
linux·运维·mysql·云原生·架构·集群
一起学开源1 天前
实战总结:BACnet/IP 跨网段通讯的两种解决方案(BBMD 与 Foreign Device)
运维·网络·物联网·bacnet·网络协议·tcp/ip
tan180°1 天前
Linux网络TCP(终)(14)
linux·网络·tcp/ip
ALex_zry1 天前
MySQL运维管理技术手册:从监控到自动化实战
运维·mysql·自动化
dyxal1 天前
Vim插件深度探索:打造终极开发环境
linux·编辑器·vim
小雪_Snow1 天前
CentOS 7 安装 docker 教程
linux·docker·centos
凤凰战士芭比Q1 天前
Linux部署基于Django的博客系统
linux·运维·django
源来猿往1 天前
高并发之nginx架构
运维·nginx
ASUJY1 天前
文件系统原理(基于Linux0.11)
linux·文件系统·linux0.11