New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sugar 117-3 on Debian - AttributeError: 'str' object has no attribute 'decode' #923
Comments
|
Additional info : #922 (comment) |
Fixes sugarlabs#923 Regression made in sugarlabs@aa18879#diff-685d653cc9490267e474dabc5c40b108R249 Reported by - Shaan Subbaiah <shaansubbaiah.cs18@bmsce.ac.in> Traceback (most recent call last): File /usr/lib/python3/dist-packages/jarabe/desktop/viewcontainer.py, line 69, in do_size_allocate self._layout.allocate_children(allocation, self._children) File /usr/lib/python3/dist-packages/jarabe/desktop/favoriteslayout.py, line 250, in allocate_children name_hash = hashlib.md5(child.get_bundle_id().decode()) AttributeError: 'str' object has no attribute 'decode' Signed-off-by: Saumya Mishra <2017230@iiitdmj.ac.in>
Fixes sugarlabs#923 Regression made in sugarlabs@aa18879#diff-685d653cc9490267e474dabc5c40b108R249 Reported by - Shaan Subbaiah <shaansubbaiah.cs18@bmsce.ac.in> Traceback (most recent call last): File /usr/lib/python3/dist-packages/jarabe/desktop/viewcontainer.py, line 69, in do_size_allocate self._layout.allocate_children(allocation, self._children) File /usr/lib/python3/dist-packages/jarabe/desktop/favoriteslayout.py, line 250, in allocate_children name_hash = hashlib.md5(child.get_bundle_id().decode()) AttributeError: 'str' object has no attribute 'decode' Signed-off-by: Saumya Mishra <2017230@iiitdmj.ac.in>
Fixes sugarlabs#923 Regression made in sugarlabs@aa18879#diff-685d653cc9490267e474dabc5c40b108R249 Reported by - Shaan Subbaiah <shaansubbaiah.cs18@bmsce.ac.in> Traceback (most recent call last): File /usr/lib/python3/dist-packages/jarabe/desktop/viewcontainer.py, line 69, in do_size_allocate self._layout.allocate_children(allocation, self._children) File /usr/lib/python3/dist-packages/jarabe/desktop/favoriteslayout.py, line 250, in allocate_children name_hash = hashlib.md5(child.get_bundle_id().decode()) AttributeError: 'str' object has no attribute 'decode' Signed-off-by: Saumya Mishra <2017230@iiitdmj.ac.in>
|
It is reproduced by choosing Favorites View - Random View from the toolbar in the Home View. Impact is that the favourites view disappears and is empty. It is caused by mistake of using If the If an |
Fixes sugarlabs#923 Regression made in aa18879#diff-685d653cc9490267e474dabc5c40b108R249 get_bundle_id always returns a str, encode it md5 hash function accepts sequence of bytes Reported by - Shaan Subbaiah <shaansubbaiah.cs18@bmsce.ac.in> Traceback (most recent call last): File /usr/lib/python3/dist-packages/jarabe/desktop/viewcontainer.py, line 69, in do_size_allocate self._layout.allocate_children(allocation, self._children) File /usr/lib/python3/dist-packages/jarabe/desktop/favoriteslayout.py, line 250, in allocate_children name_hash = hashlib.md5(child.get_bundle_id().decode()) AttributeError: 'str' object has no attribute 'decode'
Fixes sugarlabs#923 Regression made in aa18879#diff-685d653cc9490267e474dabc5c40b108R249 get_bundle_id always returns a str, encode it md5 hash function accepts sequence of bytes Reported by - Shaan Subbaiah <shaansubbaiah.cs18@bmsce.ac.in> Traceback (most recent call last): File /usr/lib/python3/dist-packages/jarabe/desktop/viewcontainer.py, line 69, in do_size_allocate self._layout.allocate_children(allocation, self._children) File /usr/lib/python3/dist-packages/jarabe/desktop/favoriteslayout.py, line 250, in allocate_children name_hash = hashlib.md5(child.get_bundle_id().decode()) AttributeError: 'str' object has no attribute 'decode'
t is reproduced by choosing Favorites View - Random View from the toolbar in the Home View. Impact is that the favourites view disappears and is empty. Fixes sugarlabs#923 Regression made in aa18879#diff-685d653cc9490267e474dabc5c40b108R249 get_bundle_id always returns a str, encode it md5 hash function accepts sequence of bytes Reported by - Shaan Subbaiah <shaansubbaiah.cs18@bmsce.ac.in> Traceback (most recent call last): File /usr/lib/python3/dist-packages/jarabe/desktop/viewcontainer.py, line 69, in do_size_allocate self._layout.allocate_children(allocation, self._children) File /usr/lib/python3/dist-packages/jarabe/desktop/favoriteslayout.py, line 250, in allocate_children name_hash = hashlib.md5(child.get_bundle_id().decode()) AttributeError: 'str' object has no attribute 'decode'
t is reproduced by choosing Favorites View - Random View from the toolbar in the Home View. Impact is that the favourites view disappears and is empty. Fixes sugarlabs#923 Regression made in aa18879#diff-685d653cc9490267e474dabc5c40b108R249 get_bundle_id always returns a str, encode it md5 hash function accepts sequence of bytes Reported by - Shaan Subbaiah <shaansubbaiah.cs18@bmsce.ac.in> Traceback (most recent call last): File /usr/lib/python3/dist-packages/jarabe/desktop/viewcontainer.py, line 69, in do_size_allocate self._layout.allocate_children(allocation, self._children) File /usr/lib/python3/dist-packages/jarabe/desktop/favoriteslayout.py, line 250, in allocate_children name_hash = hashlib.md5(child.get_bundle_id().decode()) AttributeError: 'str' object has no attribute 'decode'
Not sure how exactly to reproduce, found in
shell.logon Debian Buster (10.4) running Sugar 117-3@chimosky suggested that it may be regression from porting to Python 3.
The text was updated successfully, but these errors were encountered: