'NoneType' object has no attribute 'box_id'

When using SEN2COR 2.8 I receive this error message both on SNAP/Windows when using the SEN2COR plugin and as a standalone processing on LINUX. I do not apply to all tiles.
Anybody know how to solve this or what kind of error of it is.

Regards
/Jonas

WINDOWS 10

> Progress[%]: 26.56 : PID-21240, L2A_Tables: band VIS exported, elapsed time[s]: 0.637, total: 0:09:28.249000
> 'NoneType' object has no attribute 'box_id'
> Traceback (most recent call last):
>   File "C:\Users\jonas.ardo\.snap\auxdata\Sen2Cor-02.08.00-win64\Lib\site-packages\sen2cor\L2A_Tables.py", line 2701, in createRgbImages
>     self.glymurWrapper(pvi, dstack((r, g, b)))
>   File "C:\Users\jonas.ardo\.snap\auxdata\Sen2Cor-02.08.00-win64\Lib\site-packages\sen2cor\L2A_Tables.py", line 2616, in glymurWrapper
>     jp2_L2A.wrap(file_L2A_geo, boxes=boxes_L2A)
>   File "C:\Users\jonas.ardo\.snap\auxdata\Sen2Cor-02.08.00-win64\lib\site-packages\glymur\jp2k.py", line 866, in wrap
>     self._validate_jp2_box_sequence(boxes)
>   File "C:\Users\jonas.ardo\.snap\auxdata\Sen2Cor-02.08.00-win64\lib\site-packages\glymur\jp2k.py", line 1680, in _validate_jp2_box_sequence
>     self._validate_jp2h(boxes)
>   File "C:\Users\jonas.ardo\.snap\auxdata\Sen2Cor-02.08.00-win64\lib\site-packages\glymur\jp2k.py", line 1748, in _validate_jp2h
>     self._check_jp2h_child_boxes(boxes, 'top-level')
>   File "C:\Users\jonas.ardo\.snap\auxdata\Sen2Cor-02.08.00-win64\lib\site-packages\glymur\jp2k.py", line 1800, in _check_jp2h_child_boxes
>     box_ids = set([box.box_id for box in boxes])
> AttributeError: 'NoneType' object has no attribute 'box_id'
> PVI image export failed
> Progress[%]: 26.57 : PID-21240, L2A_Tables: PVI image export failed, elapsed time[s]: 0.241, total: 0:09:28.490000

On LINUX:

Progress[%]: 15.92 : PID-100353, L2A_Tables: band VIS exported, elapsed time[s]: 3.155, total: 0:10:48.520470

‘NoneType’ object has no attribute ‘box_id’
Traceback (most recent call last):
File “/projects/eko/fs3/nateko/bin/Sen2Cor-02.08.00-Linux64/lib/python2.7/site-packages/sen2cor/L2A_Tables.py”, line 2701, in createRgbImages
self.glymurWrapper(pvi, dstack((r, g, b)))
File “/projects/eko/fs3/nateko/bin/Sen2Cor-02.08.00-Linux64/lib/python2.7/site-packages/sen2cor/L2A_Tables.py”, line 2616, in glymurWrapper
jp2_L2A.wrap(file_L2A_geo, boxes=boxes_L2A)
File “/projects/eko/fs3/nateko/bin/Sen2Cor-02.08.00-Linux64/lib/python2.7/site-packages/glymur/jp2k.py”, line 866, in wrap
self._validate_jp2_box_sequence(boxes)
File “/projects/eko/fs3/nateko/bin/Sen2Cor-02.08.00-Linux64/lib/python2.7/site-packages/glymur/jp2k.py”, line 1680, in _validate_jp2_box_sequence
self._validate_jp2h(boxes)
File “/projects/eko/fs3/nateko/bin/Sen2Cor-02.08.00-Linux64/lib/python2.7/site-packages/glymur/jp2k.py”, line 1748, in _validate_jp2h
self._check_jp2h_child_boxes(boxes, ‘top-level’)
File “/projects/eko/fs3/nateko/bin/Sen2Cor-02.08.00-Linux64/lib/python2.7/site-packages/glymur/jp2k.py”, line 1800, in _check_jp2h_child_boxes
box_ids = set([box.box_id for box in boxes])
AttributeError: ‘NoneType’ object has no attribute ‘box_id’
PVI image export failed
Progress[%]: 16.06 : PID-100353, L2A_Tables: PVI image export failed, elapsed time[s]: 5.546, total: 0:10:54.066424

AttributeError means that there was an Error that had to do with an Attribute request. In general, when you write x.y, y is the purported attribute of x. NoneType means that instead of an instance of whatever Class or Object you think you’re working with, you’ve actually got None. That usually means that an assignment or function call up failed or returned an unexpected result.

mylist = mylist.sort()

The sort() method of a list sorts the list in-place, that is, mylist is modified. But the actual return value of the method is None and not the list sorted. So you’ve just assigned None to mylist. If you next try to do, say, mylist.append(1) Python will give you this error.