inflearn logo
강의

Course

Instructor

Getting Started with Programming: Introduction to Python (Inflearn Original)

autocomplete-python traceback output 오류 해결법(Mac)

340

jaesun234983

1 asked

0

강의내용대로 진행하는데 autocomplete-python 패키지 에러가 떴습니다.
 
Traceback (most recent call last):
File "~\.atom\packages\autocomplete-python\lib\completion.py", line 8, in <module>
 
환경이 맥인데 검색을 해봐도 해결방법이 윈도우환경 밖에 없어서 한참을 헤맸네요.
 

python

Answer 1

1

jaesun234983

이래저래 알아보니 아톰에서 사전처럼 쓰는 Jedi의 최신버전이 제대로 불러들이지 못하는 에러때문입니다.
 
 

It seems related to importing Jedi.

1- Fix the import issue error:
https://stackoverflow.com/questions/63331116/python-3-6-8-jedi-importerror-cannot-import-name-traverse-parents

You can use pip3 install -e git://github.com/davidhalter/jedi.git#egg=jedi for reinstalling Jedi

2- Use Jedi 0.17.2 (Release History) :

pip install jedi==0.17.2

 
위의 방법대로 Jedi의 버전을 다운그레이드 해서 0.17.2로 설치하시면 됩니다.
설치는 터미널에서 위의 내용대로 입력하시면 됩니다.
 
만약 pip가 없다고 뜨면 설치를 해주셔야 하는데 아래의 내용을 참고하셔서 설치하고 업데이트까지 해주시면 됩니다.
 
python3 -m ensurepip --default-pip

If that still doesn’t allow you to run python -m pip:

  • Securely Download get-pip.py 1

  • Run python get-pip.py2 This will install or upgrade pip. Additionally, it will install setuptools and wheel if they’re not installed already.

    Warning

     

    Be cautious if you’re using a Python install that’s managed by your operating system or another package manager. get-pip.py does not coordinate with those tools, and may leave your system in an inconsistent state. You can use pythonget-pip.py --prefix=/usr/local/ to install in /usr/local which is designed for locally-installed software.

Ensure pip, setuptools, and wheel are up to date

While pip alone is sufficient to install from pre-built binary archives, up to date copies of the setuptools and wheel projects are useful to ensure you can also install from source archives:

python3 -m pip install --upgrade pip setuptools wheel

0

Xeon

감사합니다. 파이썬 강의 초반부터 설치도 제대로 안되서 포기할뻔했습니다.

덕분에 기존 처럼 에러는 더이상 발생하지 않습니다.

아래 처럼 사용방법에 대한 예가 나오면 정상적인것 맞는걸까요?

0

jaesun234983

네 제대로 나오는 것 같네요

인스턴스 변수 문의

0

29

1

챕터 03_04 (튜플) 교육자료

0

28

2

Package(3-1) Sub 폴더 자료

0

35

1

아톰 출력 안됨

0

61

2

강의자료 메일 발송 요청 드립니다.

0

71

1

강의자료 메일로 보내주실 수 있으실까요?

1

48

0

Iterable 요소는 리스트로 작성해야하는 것 맞나요?

1

73

2

강의자료 부탁드립니다

0

57

2

if Flase: print('Bad')

0

57

1

=와 == 의 차이

0

75

1

functions 함수 섭들을려고하는데요

0

66

1

강의자료 부타드리겠습니다!

0

57

0

VSCODE에 VIEW에서 SELECTED INTERPRETER조회가 안됩니다.

0

65

1

강의자료 부탁드립니다.

0

50

0

dict의 Key를 바꾸는 방법

0

61

1

강의자료부탁드립니다

0

60

1

run withount 디버깅 및 F5+ctrl이 안먹혀요

0

60

1

강의 자료와 예정 다운로드

0

72

2

객체지향 vs 함수형

0

57

1

어렵네요 설정도

0

71

1

설정이 잘 된건지

0

50

1

맥 os vscode 설정 - python interpreter select

0

99

1

강의자료 부탁드립니다. mytoughgirl@naver.com 입니다.

0

43

1

vscode로 수업 진행한 영상은 없는건가요?

0

55

2