NanmiCoder / NanmiCoder/MediaCrawler
AssertionError: SRE module mismatch
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 65.3k
- Forks
- 12.6k
- PR merge metrics
- No merged PRs in 30d
Description
🔍 问题检查清单
- [✅] 我已经仔细阅读了项目使用过程中的常见问题汇总
- [ ✅] 我已经搜索并查看了已关闭的issues
- [✅ ] 我确认这不是由于滑块验证码、Cookie过期、Cookie提取错误、平台风控等常见原因导致的问题
🐛 问题描述
uv run main.py
Traceback (most recent call last):
File "/data/MediaCrawler/main.py", line 12, in
import asyncio
File "/usr/lib/python3.13/asyncio/init.py", line 8, in
from .base_events import *
File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in
import concurrent.futures
File "/usr/lib/python3.13/concurrent/futures/init.py", line 8, in
from concurrent.futures._base import (FIRST_COMPLETED,
File "/usr/lib/python3.13/concurrent/futures/_base.py", line 7, in
import logging
File "/usr/lib/python3.13/logging/init.py", line 26, in
import sys, os, time, io, re, traceback, warnings, weakref, collections.abc
File "/usr/lib/python3.13/re/init.py", line 126, in
from . import _compiler, _parser
File "/usr/lib/python3.13/re/_compiler.py", line 18, in
assert _sre.MAGIC == MAGIC, "SRE module mismatch"
^^^^^^^^^^^^^^^^^^^
AssertionError: SRE module mismatch
📝 复现步骤
- uv sync后直接运行以上命令
💻 运行环境
- 操作系统: archlinux
- Python版本: 项目内3.11.13,系统内3.13.5,上面报错3.13.5
- 是否使用IP代理:
- 是否使用VPN翻墙软件:
- 目标平台(抖音/小红书/微博等): 微博
📋 错误日志
在此粘贴错误日志
📷 错误截图
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the uv sync and uv run main.py commands, then inspect main.py and the reported Python runtime paths. Compare the project’s Python 3.11.13 environment with the system Python 3.13.5; done means the project launches without the SRE module mismatch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100