블렌더 컴파일-Python 오류

Oct 11 2020

나는 컴파일에 관해서는 멍청하다. OpenSuse Linux에서 Blender를 컴파일하기위한 지침을 따랐습니다.

https://wiki.blender.org/wiki/Building_Blender/Linux/OpenSUSE

소스를 다운로드했습니다. 나는 도서관을 다운로드했다.

하지만 업데이트 및 빌드 지침을 따를 때

cd /home/myprofile/bin/blender-git/blender/
make update

다음과 같은 오류가 발생합니다.

python3 ./build_files/utils/make_update.py
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = '/usr/local/lib/python:/usr/lib64/python/'
  program name = 'python3'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/usr/bin/python3'
  sys.base_prefix = '/usr'
  sys.base_exec_prefix = '/usr'
  sys.executable = '/usr/bin/python3'
  sys.prefix = '/usr'
  sys.exec_prefix = '/usr'
  sys.path = [
    '/usr/local/lib/python',
    '/usr/lib64/python/',
    '/usr/lib/python38.zip',
    '/usr/lib64/python3.8',
    '/usr/lib64/python3.8/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
  File "/usr/lib64/python/encodings/__init__.py", line 123
    raise CodecRegistryError,\
                            ^
SyntaxError: invalid syntax

Current thread 0x00007f9baaa00740 (most recent call first):
<no Python frame>
make: *** [GNUmakefile:504: update] Error 1

답변

RobertGützkow Oct 13 2020 at 16:04

이 문제는 PYTHONPATH. /usr/lib64/python/앞서 언급 한 오류가 발생하는 Python 2.7의 라이브러리 를 가리키는 것 같습니다 . PYTHONPATH환경 변수는 임시 명령을 사용하여 현재 터미널에 대한 제거 할 수 있습니다 unset PYTHONPATH당신이 실행할 수 있어야합니다 이후 make update성공적으로.