Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

"Windows embeddable package"로 구성한 파이썬 환경에서 실행 시 이런 오류가 발생한다면?

C:\python310> python
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = 'python'
  isolated = 1
  environment = 1
  user site = 1
  import site = 0
  sys._base_executable = 'C:\\python310\\python.exe'
  sys.base_prefix = 'C:\\python310'
  sys.base_exec_prefix = 'C:\\python310'
  sys.platlibdir = 'lib'
  sys.executable = 'C:\\python310\\python.exe'
  sys.prefix = 'C:\\python310'
  sys.exec_prefix = 'C:\\python310'
  sys.path = [
    'C:\\python310\\python310.zip',
    'C:\\python310',
    'C:\\python310\\Lib\\site-packages',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x000081ec (most recent call first):
  <no Python frame>

아마도 다른 여러 가지 이유가 있을 수 있겠지만,

Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
; https://discuss.python.org/t/fatal-python-error-init-fs-encoding-failed-to-get-the-python-codec-of-the-filesystem-encoding/3173/1

제 경우에는, 오류 메시지의 "sys.path"에 있는 c:\python310\python310.zip 파일을 (필요가 없을 것 같아) 무심코 지웠더니 그런 오류가 발생했습니다. 실제로 해당 zip 파일에는 파이썬의 (오류 메시지의 encoding 모듈을 비롯) 기본 패키지들이 포함돼 있기 때문에 삭제하시면 안 됩니다. ^^




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 6/25/2023]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 181  182  183  184  185  186  187  188  [189]  190  191  192  193  194  195  ...
NoWriterDateCnt.TitleFile(s)
276정성태6/7/200619959Team Foundation Server: 7. 외부 빌드 머신 구성
287정성태6/24/200617543    답변글 Team Foundation Server: 7.1. 외부 빌드 머신 구성 - 다른 블로그 자료
275정성태6/7/200625593디버깅 기술: 4. VC++ 8.0 원격 디버깅 구성 - Side-by-Side DLL 문제.
269정성태6/6/200622707Team Foundation Server: 6. HTTPS를 통한 Team Server 접근 [1]
270정성태6/5/200619729    답변글 Team Foundation Server: 6.1. HTTPS를 통한 Team Server 접근 [1]
273정성태6/6/200622577    답변글 Team Foundation Server: 6.2. 두번째 방법 - HTTPS 를 통한 Team Server 접근 [1]
267정성태6/4/200622019Team Foundation Server: 5. 인터넷으로 Team Server 접근 [2]
266정성태6/8/200618310오류 유형: 7. [설치] mpoai9.dll 관련 오류
265정성태6/1/200626068디버깅 기술: 3. 원격 컴퓨터 디버깅 - VPC 설정
314정성태8/11/200623426    답변글 디버깅 기술: 3.1. Managed 원격 디버깅과 WinDBG 원격 디버깅
264정성태6/1/200632579오류 유형: 6. [VC++ 컴파일] already defined in ntdll.lib(ntdll.dll)
263정성태6/1/200633351디버깅 기술: 2. 커널 구조체 살펴보기 [5]
262정성태6/1/200626056오류 유형: 5. [설치] WinFX Beta2 - 설치시 문제점 해결
261정성태6/1/200622197웹: 3. IIS 6.0 - AppPool을 활용하여 실 서버(운영 서버)에서 디버깅
258정성태6/1/200630049디버깅 기술: 1. 디버깅 방법 - CLR 프로파일러 [1]파일 다운로드1
274정성태6/7/200623061    답변글 디버깅 기술: 1.1. 디버깅 방법 - CLR 프로파일러 ( on Vista )
254정성태6/1/200619263개발 환경 구성: 2. VPC에 Vista 설치하는 방법 [2]
255정성태6/1/200619145    답변글 개발 환경 구성: 2.1. msconfig 설정과 Windows Activation
259정성태6/1/200618083    답변글 개발 환경 구성: 2.2. Vista VPC에 터미널 서비스 - 원격 접속
253정성태6/1/200616065기타: 14. .NET 2.0 이 지원되는 NDoc 2.0 을 배포합니다.
251정성태6/1/200619287오류 유형: 4. [OS 지원 API] SHParseDisplayName과 Windows 2000
252정성태6/1/200618775    답변글 오류 유형: 4.1. NET BCL 에서 제공되는 FolderBrowserDialog [2]
249정성태6/1/200618723.NET Framework: 71. VB.NET 이외의 언어에서 My 네임스페이스 사용
250정성태6/1/200621517    답변글 .NET Framework: 71.1. VB.NET 이외의 언어에서 My 네임스페이스 사용
248정성태6/1/200619874기타: 13. Code Center Premium에서 Win32 API 소스 찾기
245정성태6/1/200627266오류 유형: 3. [C# / VC++] error C2146: syntax error : missing ';' before identifier 'GetType'
... 181  182  183  184  185  186  187  188  [189]  190  191  192  193  194  195  ...