Mapillary Tools v0.7.3 Win x64 errors (incl. 'WinError 87')

I downloaded https://github.com/mapillary/mapillary_tools/releases/download/v0.7.3/mapillary_tools_win64.exe and replaced my copy of mapillary_tools.exe with it (I had v0.7.0 before). I’m using the 64-bit version of Windows 10 Pro 21H1.

When I try to run the following in PowerShell with v0.7.3, I get errors (there are a number of videos in the directory referred to by video_import_path):-

.\mapillary_tools.exe video_process --video_import_path D:\path\CycliqFront\20210424a\2021_0424_120725_CF0632.MP4 --advanced --geotag_source gpx --geotag_source_path d:\path\GPX\2021-04-24_12-00-54.gpx --user_name jpennycook --offset_time 0 --offset_angle 0 --video_start_time 1619266045787 --import_path d:\path\mapillary\20210424a --device_make Cycliq --device_model Fly12 CE --overwrite_all_EXIF_tags --rerun --video_sample_interval 1

The result is a list of errors and a number of directories with images that are not geotagged. If I run the above line again using v0.7.0 on the same videos, it works fine, producing directories of getagged images with no errors. The videos are from my Cycliq Fly12 CE bike camera.

Here are the v0.7.3 errors:-

Processing: [2021_0424_153519_CF0662]
Extracting video frames:   0%|                                                                   | 0/1 [00:00<?, ?it/s]
Extracting video frames:   0%|                                                                   | 0/1 [01:00<?, ?it/s]
Traceback (most recent call last):
  File "main.py", line 4, in <module>
  File "mapillary_tools\__main__.py", line 93, in main
  File "mapillary_tools\commands\video_process.py", line 390, in run
  File "mapillary_tools\process_video.py", line 106, in sample_video
  File "mapillary_tools\process_video.py", line 156, in extract_frames
  File "mapillary_tools\process_video.py", line 189, in insert_video_frame_timestamp
  File "mapillary_tools\process_video.py", line 36, in timestamps_from_filename
  File "tqdm\std.py", line 1107, in __init__
  File "tqdm\std.py", line 1344, in refresh
  File "tqdm\std.py", line 1494, in display
  File "tqdm\std.py", line 1441, in moveto
  File "tqdm\utils.py", line 142, in inner
OSError: [WinError 87] The parameter is incorrect
[10580] Failed to execute script main
Exception ignored in: <bound method tqdm.__del__ of <tqdm.std.tqdm object at 0x00000213E49675C0>>
Traceback (most recent call last):
  File "tqdm\std.py", line 1145, in __del__
  File "tqdm\std.py", line 1274, in close
AttributeError: 'tqdm' object has no attribute 'last_print_t'
Completed: [2021_0424_153519_CF0662]
Processing: [2021_0424_154019_CF0663]
Extracting video frames:   0%|                                                                   | 0/1 [00:00<?, ?it/s]
Extracting video frames:   0%|                                                                   | 0/1 [00:39<?, ?it/s]
Traceback (most recent call last):
  File "main.py", line 4, in <module>
  File "mapillary_tools\__main__.py", line 93, in main
  File "mapillary_tools\commands\video_process.py", line 390, in run
  File "mapillary_tools\process_video.py", line 106, in sample_video
  File "mapillary_tools\process_video.py", line 156, in extract_frames
  File "mapillary_tools\process_video.py", line 189, in insert_video_frame_timestamp
  File "mapillary_tools\process_video.py", line 36, in timestamps_from_filename
  File "tqdm\std.py", line 1107, in __init__
  File "tqdm\std.py", line 1344, in refresh
  File "tqdm\std.py", line 1494, in display
  File "tqdm\std.py", line 1441, in moveto
  File "tqdm\utils.py", line 142, in inner
OSError: [WinError 87] The parameter is incorrect
[10320] Failed to execute script main
Exception ignored in: <bound method tqdm.__del__ of <tqdm.std.tqdm object at 0x0000020F731274E0>>
Traceback (most recent call last):
  File "tqdm\std.py", line 1145, in __del__
  File "tqdm\std.py", line 1274, in close
AttributeError: 'tqdm' object has no attribute 'last_print_t'
Completed: [2021_0424_154019_CF0663]
Processing: [2021_0424_154519_CF0664]
Extracting video frames:   0%|                                                                   | 0/1 [00:00<?, ?it/s]
Extracting video frames:   0%|                                                                   | 0/1 [00:53<?, ?it/s]
Traceback (most recent call last):
  File "main.py", line 4, in <module>
  File "mapillary_tools\__main__.py", line 93, in main
  File "mapillary_tools\commands\video_process.py", line 390, in run
  File "mapillary_tools\process_video.py", line 106, in sample_video
  File "mapillary_tools\process_video.py", line 156, in extract_frames
  File "mapillary_tools\process_video.py", line 189, in insert_video_frame_timestamp
  File "mapillary_tools\process_video.py", line 36, in timestamps_from_filename
  File "tqdm\std.py", line 1107, in __init__
  File "tqdm\std.py", line 1344, in refresh
  File "tqdm\std.py", line 1494, in display
  File "tqdm\std.py", line 1441, in moveto
  File "tqdm\utils.py", line 142, in inner
OSError: [WinError 87] The parameter is incorrect
[19152] Failed to execute script main
Exception ignored in: <bound method tqdm.__del__ of <tqdm.std.tqdm object at 0x00000234374871D0>>
Traceback (most recent call last):
  File "tqdm\std.py", line 1145, in __del__
  File "tqdm\std.py", line 1274, in close
AttributeError: 'tqdm' object has no attribute 'last_print_t'
Completed: [2021_0424_154519_CF0664]
Processing: [2021_0424_160019_CF0667]
Extracting video frames:   0%|                                                                   | 0/1 [00:00<?, ?it/s]
Extracting video frames:   0%|                                                                   | 0/1 [00:39<?, ?it/s]
Traceback (most recent call last):
  File "main.py", line 4, in <module>
  File "mapillary_tools\__main__.py", line 93, in main
  File "mapillary_tools\commands\video_process.py", line 390, in run
  File "mapillary_tools\process_video.py", line 106, in sample_video
  File "mapillary_tools\process_video.py", line 156, in extract_frames
  File "mapillary_tools\process_video.py", line 189, in insert_video_frame_timestamp
  File "mapillary_tools\process_video.py", line 36, in timestamps_from_filename
  File "tqdm\std.py", line 1107, in __init__
  File "tqdm\std.py", line 1344, in refresh
  File "tqdm\std.py", line 1494, in display
  File "tqdm\std.py", line 1441, in moveto
  File "tqdm\utils.py", line 142, in inner
OSError: [WinError 87] The parameter is incorrect
[10464] Failed to execute script main
Exception ignored in: <bound method tqdm.__del__ of <tqdm.std.tqdm object at 0x000001C7E86174E0>>
Traceback (most recent call last):
  File "tqdm\std.py", line 1145, in __del__
  File "tqdm\std.py", line 1274, in close
AttributeError: 'tqdm' object has no attribute 'last_print_t'
Completed: [2021_0424_160019_CF0667]
Processing: [2021_0424_161019_CF0669]
Extracting video frames:   0%|                                                                   | 0/1 [00:00<?, ?it/s]
Extracting video frames:   0%|                                                                   | 0/1 [00:58<?, ?it/s]
Traceback (most recent call last):
  File "main.py", line 4, in <module>
  File "mapillary_tools\__main__.py", line 93, in main
  File "mapillary_tools\commands\video_process.py", line 390, in run
  File "mapillary_tools\process_video.py", line 106, in sample_video
  File "mapillary_tools\process_video.py", line 156, in extract_frames
  File "mapillary_tools\process_video.py", line 189, in insert_video_frame_timestamp
  File "mapillary_tools\process_video.py", line 36, in timestamps_from_filename
  File "tqdm\std.py", line 1107, in __init__
  File "tqdm\std.py", line 1344, in refresh
  File "tqdm\std.py", line 1494, in display
  File "tqdm\std.py", line 1441, in moveto
  File "tqdm\utils.py", line 142, in inner
OSError: [WinError 87] The parameter is incorrect
[18812] Failed to execute script main
Exception ignored in: <bound method tqdm.__del__ of <tqdm.std.tqdm object at 0x0000024484187518>>
Traceback (most recent call last):
  File "tqdm\std.py", line 1145, in __del__
  File "tqdm\std.py", line 1274, in close
AttributeError: 'tqdm' object has no attribute 'last_print_t'
Completed: [2021_0424_161019_CF0669]
Processing: [2021_0424_161519_CF0670]
Extracting video frames:   0%|                                                                   | 0/1 [00:00<?, ?it/s]
Extracting video frames:   0%|                                                                   | 0/1 [00:41<?, ?it/s]
Traceback (most recent call last):
  File "main.py", line 4, in <module>
  File "mapillary_tools\__main__.py", line 93, in main
  File "mapillary_tools\commands\video_process.py", line 390, in run
  File "mapillary_tools\process_video.py", line 106, in sample_video
  File "mapillary_tools\process_video.py", line 156, in extract_frames
  File "mapillary_tools\process_video.py", line 189, in insert_video_frame_timestamp
  File "mapillary_tools\process_video.py", line 36, in timestamps_from_filename
  File "tqdm\std.py", line 1107, in __init__
  File "tqdm\std.py", line 1344, in refresh
  File "tqdm\std.py", line 1494, in display
  File "tqdm\std.py", line 1441, in moveto
  File "tqdm\utils.py", line 142, in inner
OSError: [WinError 87] The parameter is incorrect
[18784] Failed to execute script main
Exception ignored in: <bound method tqdm.__del__ of <tqdm.std.tqdm object at 0x000001CDE75472B0>>
Traceback (most recent call last):
  File "tqdm\std.py", line 1145, in __del__
  File "tqdm\std.py", line 1274, in close
AttributeError: 'tqdm' object has no attribute 'last_print_t'
Completed: [2021_0424_161519_CF0670]
Processing: [2021_0424_162019_CF0671]
Extracting video frames:   0%|                                                                   | 0/1 [00:00<?, ?it/s]
Extracting video frames:   0%|                                                                   | 0/1 [00:55<?, ?it/s]
Traceback (most recent call last):
  File "main.py", line 4, in <module>
  File "mapillary_tools\__main__.py", line 93, in main
  File "mapillary_tools\commands\video_process.py", line 390, in run
  File "mapillary_tools\process_video.py", line 106, in sample_video
  File "mapillary_tools\process_video.py", line 156, in extract_frames
  File "mapillary_tools\process_video.py", line 189, in insert_video_frame_timestamp
  File "mapillary_tools\process_video.py", line 36, in timestamps_from_filename
  File "tqdm\std.py", line 1107, in __init__
  File "tqdm\std.py", line 1344, in refresh
  File "tqdm\std.py", line 1494, in display
  File "tqdm\std.py", line 1441, in moveto
  File "tqdm\utils.py", line 142, in inner
OSError: [WinError 87] The parameter is incorrect
[19992] Failed to execute script main
Exception ignored in: <bound method tqdm.__del__ of <tqdm.std.tqdm object at 0x0000029870947208>>
Traceback (most recent call last):
  File "tqdm\std.py", line 1145, in __del__
  File "tqdm\std.py", line 1274, in close
AttributeError: 'tqdm' object has no attribute 'last_print_t'
Completed: [2021_0424_162019_CF0671]
Processing: [2021_0424_162520_CF0672]
Extracting video frames:   0%|                                                                   | 0/1 [00:00<?, ?it/s]
Extracting video frames:   0%|                                                                   | 0/1 [00:36<?, ?it/s]
Traceback (most recent call last):
  File "main.py", line 4, in <module>
  File "mapillary_tools\__main__.py", line 93, in main
  File "mapillary_tools\commands\video_process.py", line 390, in run
  File "mapillary_tools\process_video.py", line 106, in sample_video
  File "mapillary_tools\process_video.py", line 156, in extract_frames
  File "mapillary_tools\process_video.py", line 189, in insert_video_frame_timestamp
  File "mapillary_tools\process_video.py", line 36, in timestamps_from_filename
  File "tqdm\std.py", line 1107, in __init__
  File "tqdm\std.py", line 1344, in refresh
  File "tqdm\std.py", line 1494, in display
  File "tqdm\std.py", line 1441, in moveto
  File "tqdm\utils.py", line 142, in inner
OSError: [WinError 87] The parameter is incorrect
[18188] Failed to execute script main
Exception ignored in: <bound method tqdm.__del__ of <tqdm.std.tqdm object at 0x000002E5E78B7320>>
Traceback (most recent call last):
  File "tqdm\std.py", line 1145, in __del__
  File "tqdm\std.py", line 1274, in close
AttributeError: 'tqdm' object has no attribute 'last_print_t'
Completed: [2021_0424_162520_CF0672]
Processing: [2021_0424_163520_CF0674]
Extracting video frames:   0%|                                                                   | 0/1 [00:00<?, ?it/s]
Extracting video frames:   0%|                                                                   | 0/1 [00:31<?, ?it/s]
Traceback (most recent call last):
  File "main.py", line 4, in <module>
  File "mapillary_tools\__main__.py", line 93, in main
  File "mapillary_tools\commands\video_process.py", line 390, in run
  File "mapillary_tools\process_video.py", line 106, in sample_video
  File "mapillary_tools\process_video.py", line 156, in extract_frames
  File "mapillary_tools\process_video.py", line 189, in insert_video_frame_timestamp
  File "mapillary_tools\process_video.py", line 36, in timestamps_from_filename
  File "tqdm\std.py", line 1107, in __init__
  File "tqdm\std.py", line 1344, in refresh
  File "tqdm\std.py", line 1494, in display
  File "tqdm\std.py", line 1441, in moveto
  File "tqdm\utils.py", line 142, in inner
OSError: [WinError 87] The parameter is incorrect
[20040] Failed to execute script main
Exception ignored in: <bound method tqdm.__del__ of <tqdm.std.tqdm object at 0x0000024C41167400>>
Traceback (most recent call last):
  File "tqdm\std.py", line 1145, in __del__
  File "tqdm\std.py", line 1274, in close
AttributeError: 'tqdm' object has no attribute 'last_print_t'
Completed: [2021_0424_163520_CF0674]
Processing: [2021_0424_165020_CF0677]
Extracting video frames:   0%|                                                                   | 0/1 [00:00<?, ?it/s]
Extracting video frames:   0%|                                                                   | 0/1 [00:30<?, ?it/s]
Traceback (most recent call last):
  File "main.py", line 4, in <module>
  File "mapillary_tools\__main__.py", line 93, in main
  File "mapillary_tools\commands\video_process.py", line 390, in run
  File "mapillary_tools\process_video.py", line 106, in sample_video
  File "mapillary_tools\process_video.py", line 156, in extract_frames
  File "mapillary_tools\process_video.py", line 189, in insert_video_frame_timestamp
  File "mapillary_tools\process_video.py", line 36, in timestamps_from_filename
  File "tqdm\std.py", line 1107, in __init__
  File "tqdm\std.py", line 1344, in refresh
  File "tqdm\std.py", line 1494, in display
  File "tqdm\std.py", line 1441, in moveto
  File "tqdm\utils.py", line 142, in inner
OSError: [WinError 87] The parameter is incorrect
[18436] Failed to execute script main
Exception ignored in: <bound method tqdm.__del__ of <tqdm.std.tqdm object at 0x0000012AAC9274A8>>
Traceback (most recent call last):
  File "tqdm\std.py", line 1145, in __del__
  File "tqdm\std.py", line 1274, in close
AttributeError: 'tqdm' object has no attribute 'last_print_t'
Completed: [2021_0424_165020_CF0677]

I’ve just tried again with the 32-bit version, and everything is okay.

1 Like