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

# 问题解决

相关推荐
Linux-lucky5 小时前
21-Linux学习之旅之HTTPS和安全加固
linux·运维·学习·ubuntu·https
清水白石0086 小时前
Python 死锁排查全攻略:从线程卡死到锁依赖定位与工程化修复
linux·网络·python
ao-weilai7 小时前
Linux基础:Ext系列文件系统
linux·运维·服务器
qq_349447957 小时前
Linux系统,安装git,从使用git下载仓库(GitHub, Gitee, GitLab 等),并且使用ssh密钥,可以直接执行git pull
linux·git·ssh
GlobalSign数字证书10 小时前
小企业零运维 TLS 架构设计:证书生命周期管理(CLM)与自动化轮换策略的技术选型
运维·自动化
mCell10 小时前
GitHub Actions 玩法大赏:一台远程主机的七种活法
linux·github·agent
盐焗鹌鹑蛋10 小时前
【Linux】动静态库的制作与使用
linux
艾伦_耶格宇11 小时前
【ELK】-4 logstash的搭建及操作
linux·运维·ubuntu·elk
mifengxing12 小时前
文件逻辑结构、物理结构与磁盘空闲存储空间管理
大数据·linux·运维·操作系统·计算机408