问答交流

【代码报错】Vulkan 支持缺失&窗口创建失败,没有可用的驱动程序&显示服务器未运行/配置不正确

由whisky创建,最终由small_q 被浏览 3 用户

请教一下训练时报错的原因,报错信息如下

  • Exception in thread background thread for pid 1602:
  • Traceback (most recent call last):
  • File "/opt/pyenv/versions/3.11.8/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
  • self.run()
  • File "/opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/ipykernel/ipkernel.py", line 761, in run_closure
  • _threading_Thread_run(self)
  • File "/opt/pyenv/versions/3.11.8/lib/python3.11/threading.py", line 982, in run
  • self._target(*self._args, **self._kwargs)
  • File "/opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/sh.py", line 1639, in wrap
  • fn(*rgs, **kwargs)
  • File "/opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/sh.py", line 2641, in background_thread
  • handle_exit_code(exit_code)
  • File "/opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/sh.py", line 2332, in fn
  • return self.command.handle_command_exit_code(exit_code)
  • ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • File "/opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/sh.py", line 826, in handle_command_exit_code
  • raise exc
  • sh.ErrorReturnCode_2:
  • RAN: /usr/local/bin/wine StockRanker.exe /ini /tmp/52caa2da17e4400e93a5b14af5a6aa5f/features.ini /tr /tmp/52caa2da17e4400e93a5b14af5a6aa5f/training.bin /h /tmp/52caa2da17e4400e93a5b14af5a6aa5f/ranker.ini /l 30 /d 1000 /w 25 /c 0.1 /r2 123 /ps 30 /t 1 /ap lambdarank /topn 10 /bdp 0.2 /ms 'C:\stockranker\MetaStreamDefinitionList.ini' /shiftedNDCG /cf w /dw /nl /ff 1 /sf 1 /vfrac 0 /mb 1025 /gcfe 1 /fcomp 1 /ndcgdiscountbase 1 /ExperimentID 52caa2da17e4400e93a5b14af5a6aa5f /Owner null /graph /graphtv /fg /gains 0:1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:19 /sfrac 0.0
  • STDOUT:
  • [?25lTotal machine count = 1, degenerate to single version.
  • [?25h[?25lHost = STUDIO-FB138806
  • [?25h[?25lCommandLine = /ini /tmp/52caa2da17e4400e93a5b14af5a6aa5f/features.ini /tr /tmp/5
  • 2caa2da17e4400e93a5b14af5a6aa5f/training.bin /h /tmp/52caa2da17e4400e93a5b14af5a
  • 6aa5f/ranker.ini /l 30 /d 1000 /w 25 /c 0.1 /r2 123 /ps 30 /t 1 /ap lambdarank /
  • topn 10 /bdp 0.2 /ms C:\stockranker\MetaStreamDefinitionList.ini /shiftedNDCG /c
  • f w /dw /nl /ff 1 /sf 1 /vfrac 0 /mb 1025 /gcfe 1 /fcomp 1 /ndcgdiscountbase 1 /
  • ExperimentID 52caa2da17e4400e93a5b14af5a6aa5f /Owner null /graph /graphtv /fg /g
  • ains 0:1:2:3:4:5:6:7:8:9:10:11:1[?25h[?25l2:13:14:15:16:17:18:19 /sfrac 0.0
  • [?25h[?25lGCSettings.IsServerGC ... (3795 more, please see e.stdout)
  • STDERR:
  • 00dc:err:vulkan:vulkan_init_once Wine was built without Vulkan support.
  • 00dc:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
  • 00dc:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
  • 00dc:err:systray:initialize_systray Could not create tray window
  • 002c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
  • 002c:err:winediag:nodrv_CreateWindow L"Make sure that your display server is running and that its variables are set."
  • 00e4:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
  • 00e4:err:winediag:nodrv_CreateWindow L"Make sure that your display server is running and that its v... (199053 more, please see e.stderr)

\

标签

Python
{link}