Python Console 실행 오류
Python 버전을 3.8 버전으로 올린 후 Pycharm 에서 Python Console 실행 결과
.... ... File "C:\Program Files\JetBrains\PyCharm 2019.1.3\helpers\third_party\thriftpy\_shaded_thriftpy\parser\parser.py", line 765, in _fill_in_struct gen_init(cls, thrift_spec, default_spec) File "C:\Program Files\JetBrains\PyCharm 2019.1.3\helpers\third_party\thriftpy\_shaded_thriftpy\thrift.py", line 103, in gen_init cls.__init__ = init_func_generator(default_spec) File "C:\Program Files\JetBrains\PyCharm 2019.1.3\helpers\third_party\thriftpy\_shaded_thriftpy\_compat.py", line 102, in init_func_generator new_code = types.CodeType(len(varnames), TypeError: an integer is required (got type bytes) |
에러가 발생했다.
google 검색 결과 많은 결과가 Pyinstaller 와 Pycharm 간의 버전차이 결과가 많았으나 pyinstaller 를 사용하지 않고 있었기 때문에 다른 방안을 확인했다.
결론은 pycharm 버전의 문제였다.
19.3 이후 버전으로 pycharm 을 업데이트 하면 쉽게 해결된다.