# New mapillary\_tools error message

**URL:** <https://forum.mapillary.com/t/new-mapillary-tools-error-message/1764>\
**Category:** Contributing and equipment\
**Created:** [July 13, 2018, 6:50pm UTC](https://forum.mapillary.com/t/new-mapillary-tools-error-message/1764 "2018-07-13T18:50:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kino](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/kino/32/68213_2.png) [@kino](https://forum.mapillary.com/u/kino)\
**Post date:** [July 13, 2018, 6:50pm UTC](https://forum.mapillary.com/t/new-mapillary-tools-error-message/1764/1 "2018-07-13T18:50:16Z")

</div>

Hello,

trying to process & upload some images from Sony FDR-X1000 with latest mapillary\_tools. Camera geotags jpg’s and they work just fine when uploaded through web uploader. Previous mapillary\_tools (or a certain python module) had some issues how Sony exif data is organized.

Heres what I get with latest mapillary\_tools and Python 2.7.15 x86.

python C:\Python27\Scripts\mapillary\_tools process\_and\_upload --import\_path “./” --user\_name “kino” --verbose --rerun --advanced --interpolate\_directions  
Running user\_process for 2928 images, skipping 0 images.  
Running import\_meta\_data\_process for 2928 images, skipping 0 images.  
Running geotag\_process for 2928 images, skipping 0 images.  
Running sequence\_process for 2928 images, skipping 0 images.  
Cut 1: Delta in time 113.0 seconds is bigger then cutoff\_time 60.0 seconds at D:\Digikuvat\Mapillary\Suomi-tournee-201807-01\Heinavesi-paluu\100MSDCF\DSC01181.JPG  
Cut 2: Delta in time 86.0 seconds is bigger then cutoff\_time 60.0 seconds at D:\Digikuvat\Mapillary\Suomi-tournee-201807-01\Heinavesi-paluu\100MSDCF\DSC02077.JPG  
Cut 3: Delta in time 4801.0 seconds is bigger then cutoff\_time 60.0 seconds at D:\Digikuvat\Mapillary\Suomi-tournee-201807-01\Heinavesi-paluu\100MSDCF\DSC03457.JPG  
Running upload\_params\_process for 2928 images, skipping 0 images.  
Running mapillary\_image\_description for 2928 images, skipping 0 images.  
Traceback (most recent call last):  
File “C:\Python27\Scripts\mapillary\_tools”, line 60, in   
command.run(args)  
File “C:\Python27\lib\site-packages\mapillary\_tools\commands\process\_and\_upload.py”, line 109, in run  
upload(\*\*({k: v for k, v in vars\_args.iteritems()  
File “C:\Python27\lib\site-packages\mapillary\_tools\upload.py”, line 53, in upload  
upload\_file\_list = [f for f in upload\_file\_list if verify\_mapillary\_tag(f)]  
File “C:\Python27\lib\site-packages\mapillary\_tools\exif\_aux.py”, line 47, in verify\_mapillary\_tag  
filepath\_keep\_original = processing.processed\_images\_rootpath(filepath)  
NameError: global name ‘processing’ is not defined

* * *

pip list

Package Version

* * *

colorama 0.3.9  
ExifRead 2.1.2  
gpxpy 0.9.8  
mapillary-tools 0.1.0  
piexif 1.0.13m  
Pillow 2.9.0  
pip 10.0.1  
py 1.5.4  
pynmea2 1.12.0  
pytest 3.2.3  
python-dateutil 2.7.3  
setuptools 39.0.1  
six 1.11.0

* * *

Same error appears also if trying only to upload images. Same happens without --interpolate\_directions

Any help ?

My Python install is fresh and I’m not using it for anything else than Mapillary.

---

<div class="post-metadata">

**Author:** ![kino](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/kino/32/68213_2.png) [@kino](https://forum.mapillary.com/u/kino)\
**Post date:** [July 15, 2018, 8:40am UTC](https://forum.mapillary.com/t/new-mapillary-tools-error-message/1764/2 "2018-07-15T08:40:35Z")

</div>

Problem seems to be only in the uploading part, as “process” command runs fine without errors and creates .mapillary-folder with all .json-files.

I’ve re-checked my authentication too.

–keep\_original is not affecting either, and its able to create copies of the images to “proccessed\_images”-folder.

---

<div class="post-metadata">

**Author:** ![fgouget](https://avatars.discourse-cdn.com/v4/letter/f/a698b9/32.png) [@fgouget](https://forum.mapillary.com/u/fgouget)\
**Post date:** [March 28, 2019, 12:27pm UTC](https://forum.mapillary.com/t/new-mapillary-tools-error-message/1764/3 "2019-03-28T12:27:17Z")

</div>

You did nothing wrong. The error messages clearly points at a coding error in exif\_aux.py. Strangely it works here. Maybe the error is caused by a difference between Python versions.  
In any case the following three lines are misplaced. Try removing them. With luck it will fix the issue.

```
 '''
 Check that image file has the required Mapillary tag
 '''

```
