Study/algorithm

파이참 디버깅 오류 : module 'queue' has no attribute 'Queue'

hoya_315 2021. 3. 18. 23:13
반응형

파이참에서 디버깅을 하려고 하는 데 값자기 오류가 나왔다.

module 'queue' has no attribute 'Queue'

 

구글링해보니 이름을 변경하라고 한다.

stackoverflow.com/questions/20892994/attributeerror-module-has-no-attribute-queue

 

AttributeError 'module' has no attribute 'Queue"

I am trying to import Queue and I keep getting the following Traceback (most recent call last): File "threading.py", line 2, in import Queue File "/Library/Frameworks/Python.

stackoverflow.com

 

queue를 queue1으로 변경하니 성공했다.

 

아마도 이름이 Queue이름이 겹쳐서 그런듯하다.

 

반응형