kitbenjamin / googleEarthImageCollection

Collect images from Google Earth that will be used to generate 3-D models.
1 stars 0 forks source link

error for directory already existing #4

Closed willmorrison1 closed 4 years ago

willmorrison1 commented 4 years ago

After google earth crashes, and a subset of GE images area already in googleEarthOUT/run*, get this error:

[1] "Google Earth location: C://Program Files//Google//Google Earth Pro//client//googleearth.exe" [1] "The KML file is: D:\googleEarthImageCollector\simulations\250m_imagestep\out\googleEarthImageCollector_0.kml" [1] "Time google erath will run before timeout: 100000" [1] "Opening google earth" [1] "GE process ID is: 242700" [1] "crash detected" [1] "Google earth ended at 2019-11-24 18:22:55" [1] "crashed"

Google Earth crashed, it shall now be reopened and movie maker can be re-run from the point of the crash Traceback (most recent call last): File "scripts/kmlCreator.py", line 317, in rerun, toBeDone = get_GE_images(KMLname, chunkTab, n, is_rerun = False) File "scripts/kmlCreator.py", line 221, in get_GE_images moveImagesToRun(n) File "scripts/kmlCreator.py", line 131, in moveImagesToRun shutil.move('googleEarthOUT/'+i+'', 'googleEarthOUT/run'+str(n)+'') File "C:\Python27\lib\shutil.py", line 292, in move raise Error, "Destination path '%s' already exists" % real_dst shutil.Error: Destination path 'googleEarthOUT/run0\movie-000000.png' already exists Traceback (most recent call last): File "scripts/calcViewDomain.py", line 142, in imgMeta = pd.read_csv('googleEarthOut/'+firstRun+'/chunktable'+firstRun+'.csv') File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 709, in parser_f return _read(filepath_or_buffer, kwds) File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 449, in _read parser = TextFileReader(filepath_or_buffer, kwds) File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 818, in init self._make_engine(self.engine) File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 1049, in _make_engine self._engine = CParserWrapper(self.f, self.options) File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 1695, in init self._reader = parsers.TextReader(src, **kwds) File "pandas_libs\parsers.pyx", line 402, in pandas._libs.parsers.TextReader.cinit File "pandas_libs\parsers.pyx", line 718, in pandas._libs.parsers.TextReader._setup_parser_source IOError: File googleEarthOut/movie-000000.png/chunk_table_movie-000000.png.csv does not exist Transcript stopped, output file is D:\googleEarthImageCollector\simulations\250m_imagestep\LOG\LOG_preProcessing.txt Press any key to exit...: