를 가져올 수 없습니다 내가 가지고있는 내가 가져 오려고하면 스택 트레이스 다음 ModuleA : 그것은 반복적으로/다시 ModuleA를 가져 있기 때문에ImportError를 : 이름 ModuleA
Traceback (most recent call last):
File "menu.py", line 9, in <module>
from tmserver import Module1
File "~/tmserver/Module1.py", line 10, in <module>
from tmserver.PackageA import ModuleA
File "~/tmserver/Package1/ModuleA.py", line 8, in <module>
from tmserver.Package2 import Module2
File "~/tmserver/Package2/Module2.py", line 15, in <module>
from tmserver.Package3 import Module3
File "~/tmserver/Package3/Module3.py", line 5, in <module>
from tmserver.PackageA import ModuleA
ImportError: cannot import name ModuleA
이인가?
아마도 tmserver라는 두 개의 파일이 있을까요? sys.path와 함께 디버깅 할 프린트를 추가 할 수 있습니다. 여전히 이상합니다. – TryPyPy
설정 ' – XORcist