티스토리 뷰

반응형

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 을 업데이트 하면 쉽게 해결된다. 

 

반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/03   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함