
나는 접근하고있다파이게임이제 나는 파이게임 창을 열고 인트로를 보여주는 작은 프로그램을 실행하고 있습니다. 인트로는 배경과 두 개의 버튼(마우스를 위에 올렸을 때만 불이 켜집니다)이 있는 간단한 화면입니다.
코드를 실행하면 다음 터미널 오류가 표시됩니다.
Hello from the pygame community. https://www.pygame.org/contribute.html
[ WARN:0] global /tmp/pip-req-build-driubr42/opencv/modules/videoio/src/cap_v4l.cpp (890) open VIDEOIO(V4L2:/dev/video1): can't open camera by index
libGL error: MESA-LOADER: failed to open crocus: /usr/lib/dri/crocus_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: crocus
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 149 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 105
Current serial number in output stream: 106
제가 읽어본 바로는 비디오 드라이버 문제인 것 같습니다.메사 인텔® HD 그래픽 4600(HSW GT2), 그리고 내우분투 버전은 21.10입니다.. 내 노트북은델 래티튜드 E6440~와 함께인텔® 코어™ i5-4300M CPU @ 2.60GHz × 4.
누군가 나를 도와줄 수 있나요??
답변1
나는 비디오 카드 없이 manjaro amd64에서 miniconda를 사용합니다. Conda env py3.7에서는 이 오류가 발생했습니다. 파이게임을 플레이하기 위해 env 사용 시스템을 끕니다. 그리고 잘 풀리지