중고품 예제를 실행할 때 "IndexError : list index out of range"오류 발생

B Faley

파이썬에 대한 중고품 튜토리얼 을 실행하려고합니다 . 하지만 실행하려고 PythonServer.py하면이 오류가 발생합니다.

Traceback (most recent call last):
  File "./PythonServer.py", line 24, in <module>
    sys.path.insert(0, glob.glob('../../lib/py/build/lib*')[0])
IndexError: list index out of range

이 문제를 어떻게 해결할 수 있습니까?

JensG

각 Thrift 기반 응용 프로그램은 일반적으로 제대로 작동하는 전체를 만드는 데 필요한 세 부분으로 구성됩니다.

  • IDL 파일에서 생성 된 코드 (Thrift 컴파일러 사용)
  • 특정 대상 언어에 대한 Thrift 런타임 라이브러리
  • 서버 및 / 또는 클라이언트 로직을 구현하기 위해 작성한 코드

웹 사이트 다운로드 섹션 에서 런타임 패키지의 압축을 풀 거나 소스 에서 Thrift 복제 하든 관계없이 항상 다음과 유사한 폴더 구조를 얻습니다 1) :

/
|- lib
|   |- cpp
|   |- java
|   |- py
|   +- ... more languages ...
|   
+- tutorial
    |- cpp
    |- java
    |- py
    +- ... more languages ...

두 폴더 libtutorial각 언어에 대한 하위 디렉토리를 포함합니다. 이것이 튜토리얼이 Python Thrift 런타임 파일을 수용해야하는 상대 경로를 참조하는 이유입니다.

따라서 동일한 폴더 구조를 복제하거나 (예 : 패키지의 자습서 코드를 직접 사용하여) 또는 Python Thrift 런타임 파일이 실제로있는 폴더를 가리 키도록 디렉터리 참조를 변경합니다.


1) 실제로는 훨씬 더 많은 폴더가 있지만 여기에서는 중요하지 않으므로 무시합니다.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

for 루프를 사용할 때 : IndexError : list index out of range

분류에서Dev

Pandas의 열에 람다 함수를 적용 할 때 'IndexError : list index out of range'

분류에서Dev

내 신경망 예측에서 오류가 발생합니다. IndexError : list index out of range

분류에서Dev

내 신경망 예측에서 오류가 발생합니다. IndexError : list index out of range

분류에서Dev

"IndexError : list index out of range"오류가 발생하면 페이지를 다시로드합니다.

분류에서Dev

오류를 제공하는 Python 요청 : IndexError : list index out of range

분류에서Dev

Flask / Pymongo / Restplus-update (** data)를 사용할 때 "IndexError : list index out of range"가 표시됩니다.

분류에서Dev

Python 명령“cascPath = sys.argv [1]”에 문제가 있습니다. IndexError : list index out of range 오류가 발생합니다.

분류에서Dev

프로그래밍 방식으로 tkinter python 레이블을 추가하고 제거하면 IndexError : list index out of range

분류에서Dev

IndexError : list index out of range with beautifulsoup을 제공하는 .split () 함수

분류에서Dev

Python : 내부 목록에서 목록을 제거하면 다음 결과가 발생합니다. IndexError : list index out of range

분류에서Dev

"IndexError : list index out of range"를 방지하기 위해 csv 파일을 Pandas로 가져 오는 데 문제가 있습니다.

분류에서Dev

Dash Plotly-데이터 소스 만 변경 될 때 IndexError : list index out of range '를 해결하는 방법은 무엇입니까?

분류에서Dev

Python BeautifulSoup 테이블에서 열 가져 오기-IndexError List index out of range

분류에서Dev

루프를 목록 이해로 변환하여 IndexError : list index out of range

분류에서Dev

"IndexError : list index out of range"라는 오류가 계속 표시되는 이유는 무엇입니까?

분류에서Dev

초보자는 해결 방법을 알고 싶어합니다 : IndexError : list index out of range

분류에서Dev

누구든지 내가 왜 IndexError : list index out of range를 받는지 말해 줄 수 있나요?

분류에서Dev

쿼리 시퀀스의 길이를 시퀀스 헤더 인 키에 값으로 저장 : IndexError : list index out of range

분류에서Dev

Django Model *** IndexError : list index out of range

분류에서Dev

python xpath IndexError : list index out of range

분류에서Dev

Arduino를 실행하려고 할 때 발생하는 오류

분류에서Dev

생성 된 하위를 실행하려고 할 때 VBA 오류 발생

분류에서Dev

Python 웹 스크랩 "IndexError : list index out of range"

분류에서Dev

tables = pd.read_html indexerror : list index out of range

분류에서Dev

IndexError: list index out of range when removing duplicates

분류에서Dev

IndexError : list index out of range : error even after the list is not

분류에서Dev

IndexError: list index out of range when installing iPython in Ubuntu 14.04

분류에서Dev

Powershell 스크립트를 실행하려고 할 때 Java ProcessBuilder 오류 발생

Related 관련 기사

  1. 1

    for 루프를 사용할 때 : IndexError : list index out of range

  2. 2

    Pandas의 열에 람다 함수를 적용 할 때 'IndexError : list index out of range'

  3. 3

    내 신경망 예측에서 오류가 발생합니다. IndexError : list index out of range

  4. 4

    내 신경망 예측에서 오류가 발생합니다. IndexError : list index out of range

  5. 5

    "IndexError : list index out of range"오류가 발생하면 페이지를 다시로드합니다.

  6. 6

    오류를 제공하는 Python 요청 : IndexError : list index out of range

  7. 7

    Flask / Pymongo / Restplus-update (** data)를 사용할 때 "IndexError : list index out of range"가 표시됩니다.

  8. 8

    Python 명령“cascPath = sys.argv [1]”에 문제가 있습니다. IndexError : list index out of range 오류가 발생합니다.

  9. 9

    프로그래밍 방식으로 tkinter python 레이블을 추가하고 제거하면 IndexError : list index out of range

  10. 10

    IndexError : list index out of range with beautifulsoup을 제공하는 .split () 함수

  11. 11

    Python : 내부 목록에서 목록을 제거하면 다음 결과가 발생합니다. IndexError : list index out of range

  12. 12

    "IndexError : list index out of range"를 방지하기 위해 csv 파일을 Pandas로 가져 오는 데 문제가 있습니다.

  13. 13

    Dash Plotly-데이터 소스 만 변경 될 때 IndexError : list index out of range '를 해결하는 방법은 무엇입니까?

  14. 14

    Python BeautifulSoup 테이블에서 열 가져 오기-IndexError List index out of range

  15. 15

    루프를 목록 이해로 변환하여 IndexError : list index out of range

  16. 16

    "IndexError : list index out of range"라는 오류가 계속 표시되는 이유는 무엇입니까?

  17. 17

    초보자는 해결 방법을 알고 싶어합니다 : IndexError : list index out of range

  18. 18

    누구든지 내가 왜 IndexError : list index out of range를 받는지 말해 줄 수 있나요?

  19. 19

    쿼리 시퀀스의 길이를 시퀀스 헤더 인 키에 값으로 저장 : IndexError : list index out of range

  20. 20

    Django Model *** IndexError : list index out of range

  21. 21

    python xpath IndexError : list index out of range

  22. 22

    Arduino를 실행하려고 할 때 발생하는 오류

  23. 23

    생성 된 하위를 실행하려고 할 때 VBA 오류 발생

  24. 24

    Python 웹 스크랩 "IndexError : list index out of range"

  25. 25

    tables = pd.read_html indexerror : list index out of range

  26. 26

    IndexError: list index out of range when removing duplicates

  27. 27

    IndexError : list index out of range : error even after the list is not

  28. 28

    IndexError: list index out of range when installing iPython in Ubuntu 14.04

  29. 29

    Powershell 스크립트를 실행하려고 할 때 Java ProcessBuilder 오류 발생

뜨겁다태그

보관