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'
오류는 매우 모호하며이 도구로 오류를 해결할 수있는 설명서를 찾지 못하는 것 같습니다. 전에이 문제에 직면 한 사람이 있습니까?
당신이 맞다고 생각합니다. 한계를 초과합니다. 문제의 근본 원인 인 경우 문자 제한을 확장 할 수있는 방법을 찾고 있는데 응용 프로그램을 정상적으로 실행해야합니다. –
git config --system core.longpaths true를 시도했습니다. 경로 앞에 접두사를 붙였습니다. \\? \ 한도를 높이려면 여전히 같은 오류가 발생합니다. 다른 방법이 있다면 어떤 생각 이니? –
나는 당신이 지적한 바에 따라 @Mike 문제를 해결했다. 그것으로 더 깊이 파고 들었다. [http://stackoverflow.com/questions/39274722/using-path-extension-for -windows-7-with-python-script] (솔루션) –