# Command line tool errors - seems like an issue geotagging from gpx file

**URL:** https://forum.mapillary.com/t/command-line-tool-errors-seems-like-an-issue-geotagging-from-gpx-file/5262
**Category:** Command line tools
**Created:** [August 16, 2021, 9:02am UTC](https://forum.mapillary.com/t/command-line-tool-errors-seems-like-an-issue-geotagging-from-gpx-file/5262 "2021-08-16T09:02:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gmc](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/gmc/32/69072_2.png) [@gmc](https://forum.mapillary.com/u/gmc)
#### Post date: [August 16, 2021, 9:02am UTC](https://forum.mapillary.com/t/command-line-tool-errors-seems-like-an-issue-geotagging-from-gpx-file/5262/1 "2021-08-16T09:02:36Z")

</div>

Hi, I’m having problems with the command line tools (Win x64, x0.7.4), errors below. Can anyone advise what I should check? I’ve been using the same code for many months without any isues until now. Seems like it can’t read the GPX files?

C:\XXX\>SET /P input=Enter folder to process: 1\>Mapillary\_nu.txt  
20210517n\_fc

C:\XXX\>…..\mapillary\_tools.exe sample\_video --video\_import\_path 20210517n\_fc --advanced 1\>\>Mapillary\_nu.txt  
Extracting video frames: 0%| | 0/16 [00:00\<?, ?it/s]  
Extracting video frames: 0%| | 0/16 [00:58\<?, ?it/s]  
Traceback (most recent call last):  
File “main.py”, line 4, in   
File “mapillary\_tools\__main_\_.py”, line 93, in main  
File “mapillary\_tools\commands\sample\_video.py”, line 50, 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  
[18076] Failed to execute script main  
Exception ignored in: \<bound method tqdm. **del** of \<tqdm.std.tqdm object at 0x000001F086DD5CF8\>\>  
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’

C:\XXX\>CD 20210517n\_fc\mapillary\_sampled\_video\_frames\ 1\>\>Mapillary\_nu.txt

C:\XXX\20210517n\_fc\mapillary\_sampled\_video\_frames\>FOR / %I in (_._) DO (  
echo Processing folder %I  
…......\mapillary\_tools.exe process --advanced --import\_path “%I” --user\_name “xxx” --geotag\_source “gpx” --geotag\_source\_path “…%I.gpx” --use\_gps\_start\_time --offset\_time 0 --rerun --overwrite\_all\_EXIF\_tags  
) 1\>\>Mapillary\_nu.txt

C:\XXX\20210517n\_fc\mapillary\_sampled\_video\_frames\>(  
echo Processing folder GRMN0539  
…......\mapillary\_tools.exe process --advanced --import\_path “GRMN0539” --user\_name “xxx” --geotag\_source “gpx” --geotag\_source\_path “…\GRMN0539.gpx” --use\_gps\_start\_time --offset\_time 0 --rerun --overwrite\_all\_EXIF\_tags  
) 1\>\>Mapillary\_nu.txt  
Logging: 100%|█████████████████████████████████████████████████████████████████████████| 30/30 [00:01\<00:00, 28.41it/s]  
Processing image import properties: 100%|██████████████████████████████████████████████| 30/30 [00:00\<00:00, 94.78it/s]  
Inserting gps data into image EXIF: 100%|██████████████████████████████████████████████| 30/30 [00:00\<00:00, 31.96it/s]  
Loading geotag points: 100%|██████████████████████████████████████████████████████████| 30/30 [00:00\<00:00, 299.10it/s]  
Processing image upload parameters: 100%|██████████████████████████████████████████████| 30/30 [00:01\<00:00, 17.27it/s]  
Inserting mapillary image description in image EXIF: 0%| | 0/30 [00:00\<?, ?it/s]Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000001.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000002.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000003.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000004.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000005.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000006.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000007.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000008.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000009.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000010.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000011.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000012.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000013.jpg  
NoneType: None  
Inserting mapillary image description in image EXIF: 43%|████████████▏ | 13/30 [00:00\<00:00, 129.69it/s]Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000014.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000015.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000016.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000017.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000018.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000019.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000020.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000021.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000022.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000023.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000024.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000025.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000026.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000027.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000028.jpg  
NoneType: None  
Inserting mapillary image description in image EXIF: 93%|██████████████████████████▏ | 28/30 [00:00\<00:00, 141.42it/s]Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000029.jpg  
NoneType: None  
Warning, required geotag\_process failed for image GRMN0539\GRMN0539\_000030.jpg  
NoneType: None  
Inserting mapillary image description in image EXIF: 100%|████████████████████████████| 30/30 [00:00\<00:00, 138.82it/s]

C:\XXX\20210517n\_fc\mapillary\_sampled\_video\_frames\>cd ….. 1\>\>Mapillary\_nu.txt

Here’s the begginning of the first GPX file:

\<?xml version="1.0" encoding="utf-8"?\>

1  
  
  
2021-05-17T09:00:08Z  
  
  
2021-05-17T09:00:09Z  
  
  
2021-05-17T09:00:10Z  
  
  
2021-05-17T09:00:11Z  
  
  
2021-05-17T09:00:12Z  
  
  
2021-05-17T09:00:13Z

Thanks

---

<div class="post-metadata">

### Author: ![gmc](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/gmc/32/69072_2.png) [@gmc](https://forum.mapillary.com/u/gmc)
#### Post date: [August 16, 2021, 9:05am UTC](https://forum.mapillary.com/t/command-line-tool-errors-seems-like-an-issue-geotagging-from-gpx-file/5262/2 "2021-08-16T09:05:45Z")

</div>

The result I get is that it processes the first video in the folder only when it should do them all. The jpg files produced look OK but aren’t geotagged and are missing the usual Mapillary tags.

---

<div class="post-metadata">

### Author: ![gmc](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/gmc/32/69072_2.png) [@gmc](https://forum.mapillary.com/u/gmc)
#### Post date: [August 16, 2021, 9:07am UTC](https://forum.mapillary.com/t/command-line-tool-errors-seems-like-an-issue-geotagging-from-gpx-file/5262/3 "2021-08-16T09:07:00Z")

</div>

Not sure what happened to GPX above, here it is:

```auto
<?xml version="1.0" encoding="utf-8"?>
<gpx version="1.0"
 creator="ExifTool 11.67"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns="http://www.topografix.com/GPX/1/0"
 xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
<trk>
<number>1</number>
<trkseg>
<trkpt lat="55.7916008401662" lon="-4.32810408063233">
  <time>2021-05-17T09:00:08Z</time>
</trkpt>
<trkpt lat="55.7916792947799" lon="-4.32811874896288">
  <time>2021-05-17T09:00:09Z</time>
</trkpt>
<trkpt lat="55.7917580846697" lon="-4.32813375256956">
  <time>2021-05-17T09:00:10Z</time>
</trkpt>
<trkpt lat="55.7918377127498" lon="-4.32815420441329">
  <time>2021-05-17T09:00:11Z</time>
</trkpt>
<trkpt lat="55.7919118087739" lon="-4.32818429544568">
  <time>2021-05-17T09:00:12Z</time>
</trkpt>

```
