2016-08-29 5 views
1

ac2git 도구를 사용하여 내 accurev 저장소를 저장소에 저장합니다. here과 같이 필요한 단계를 수행 한 후 python ac2git.py 명령을 실행하면 다음 오류가 발생합니다.Winerror 3 : ac2git을 사용하여 파일을 찾을 수 없습니다.

2016-08-29 09:54:14,058 - ac2git - ERROR - The script has encountered an exception, aborting! 
Traceback (most recent call last): 
File "ac2git.py", line 3596, in AccuRev2GitMain 
rv = state.Start(isRestart=args.restart, isSoftRestart=args.softRestart) 
File "ac2git.py", line 2974, in Start 
self.RetrieveStreams() 
File "ac2git.py", line 1556, in RetrieveStreams 
tr, commitHash = self.RetrieveStream(depot=depot, stream=streamInfo,dataRef=dataRef, stateRef=stateRef, hwmRef=hwmRef, startTransaction=self.config.accurev.startTransaction, endTransaction=endTr.id) 
File "ac2git.py", line 1511, in RetrieveStream 
dataTr, dataHash = self.RetrieveStreamData(stream=stream, dataRef=dataRef,stateRef=stateRef) 
File "ac2git.py", line 1394, in RetrieveStreamData 
commitHash = self.Commit(transaction=tr, allowEmptyCommit=True,messageOverride="transaction {trId}".format(trId=tr.id), parents=[], ref=dataRef) 
File "ac2git.py", line 670, in Commit 
self.PreserveEmptyDirs() 
File "ac2git.py", line 440, in PreserveEmptyDirs 
if git.GetGitDirPrefix(path) is None and len(os.listdir(path)) == 0: 
FileNotFoundError: [WinError 3] The system cannot find the path specified:'C:///Users/*****/*****/app/node_modules/bower/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list' 

오류는 매우 모호하며이 도구로 오류를 해결할 수있는 설명서를 찾지 못하는 것 같습니다. 전에이 문제에 직면 한 사람이 있습니까?

답변

1

난 당신이 사용하는 도구에 익숙하지 오전하지만 당신이 제공하는 출력 발췌의 마지막 줄 최고의 정보를 제공 보인다

FileNotFoundError: [WinError 3] The system cannot find the path specified:'C:///Users/*****/*****/app/node_modules/bower/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list' 

그 경로가 추가 슬래시 및 디렉토리 이름, 부정하는 모습을 파일 시스템 내에서는 유효하지 않습니다. 또한 파일 경로는 출력에서 ​​227 자이며 "Users"와 "app"사이의 디렉토리 이름이 충분히 길면 Windows에서 256 자의 경로 이름 제한을 초과 할 수 있습니다.

+0

당신이 맞다고 생각합니다. 한계를 초과합니다. 문제의 근본 원인 인 경우 문자 제한을 확장 할 수있는 방법을 찾고 있는데 응용 프로그램을 정상적으로 실행해야합니다. –

+0

git config --system core.longpaths true를 시도했습니다. 경로 앞에 접두사를 붙였습니다. \\? \ 한도를 높이려면 여전히 같은 오류가 발생합니다. 다른 방법이 있다면 어떤 생각 이니? –

+1

나는 당신이 지적한 바에 따라 @Mike 문제를 해결했다. 그것으로 더 깊이 파고 들었다. [http://stackoverflow.com/questions/39274722/using-path-extension-for -windows-7-with-python-script] (솔루션) –