wine游戏助手  启动 暴雪战网 遇到 python版本问题

@Ta 06-07 08:53 407点击
Traceback (most recent call last):
  File "/opt/apps/net.winegame.client/files/share/lutris/bin/lutris-wrapper", line 8, in <module>
    import logging
  File "/usr/lib/python3.13/logging/__init__.py", line 26, in <module>
    import sys, os, time, io, re, traceback, warnings, weakref, collections.abc
  File "/usr/lib/python3.13/re/__init__.py", line 126, in <module>
    from . import _compiler, _parser
  File "/usr/lib/python3.13/re/_compiler.py", line 18, in <module>
    assert _sre.MAGIC == MAGIC, "SRE module mismatch"
           ^^^^^^^^^^^^^^^^^^^
AssertionError: SRE module mismatch

貌似是python版本不兼容,怎么解决
回复列表(3|隐藏机器人聊天)
  • @Ta / 06-07 16:38 / /

    @austinsuun,你在conda环境中吗?试试先运行

    conda deactivate
    

    然后再运行

    /opt/apps/net.winegame.client/files/bin/winegame
    
  • @Ta / 06-07 20:46 / /
    @老虎会游泳,是的 conda 环境 ,coda环境会少组件,我把 /opt/apps/net.winegame.client/files/bin/lutris 这个脚本的python 改成 /home/austin/.conda/envs/wine_game/bin/python3 , 可以运行 游戏助手,然后我下载了 暴雪战网 ,战网打不开,日志就是帖子

    然后 按照你的 命令
    🎗️  austin  ~   20:39  󰁹 100%
     conda deactivate

    🎗️  austin  ~   20:39  󰁹 100%
     /opt/apps/net.winegame.client/files/bin/winegame
    2025-06-07 20:39:43,671: Starting Lutris 0.5.12.6
    2025-06-07 20:39:43,708: Running Mesa Mesa driver 25.1.2 on llvmpipe (LLVM 19.1.7, 256 bits) (0xffffffff)
    2025-06-07 20:39:43,708: GPU: 1002:150E 1D05:5006 (amdgpu drivers)
    2025-06-07 20:39:44,452: Startup complete
    2025-06-07 20:39:47,148: Unable to load libGLX_nvidia.so.0
    2025-06-07 20:39:47,148: Unable to locate libGLX_nvidia
    Discord ID: None
    2025-06-07 20:39:47,186: Discord RPC Disabled or Discord APP ID Not Present
    Traceback (most recent call last):
      File "/opt/apps/net.winegame.client/files/share/lutris/bin/lutris-wrapper", line 8, in <module>
        import logging
      File "/usr/lib/python3.13/logging/__init__.py", line 26, in <module>
        import sys, os, time, io, re, traceback, warnings, weakref, collections.abc
      File "/usr/lib/python3.13/re/__init__.py", line 126, in <module>
        from . import _compiler, _parser
      File "/usr/lib/python3.13/re/_compiler.py", line 18, in <module>
        assert _sre.MAGIC == MAGIC, "SRE module mismatch"
               ^^^^^^^^^^^^^^^^^^^
    AssertionError: SRE module mismatch
    2025-06-07 20:39:47,241: No file /tmp/lutris-df2cd6d7-f283-4013-bc4b-939cb1685606
    2025-06-07 20:39:49,187: Game still running (state: running)
    2025-06-07 20:39:49,188: Stopping 暴雪战网国服 (wine)
    2025-06-07 20:39:49,188: The game has run for a very short time, did it crash?
    2025-06-07 20:39:49,302: xgamma is not available on your system

    也是 sre 模块的问题,我的本地 python 是 3.13. 我问 gpt 他说是 python版本问题 导致 sre模块  出问题
  • @Ta / 06-07 20:52 / /
     /usr/bin/python3 --version
    Python 3.13.3
添加新回复
回复需要登录