Closed anmol27katyani closed 5 years ago
Thanks. Reviewed to 2d30432ae61f062cfb16d1da01fb930ddb344502. Not tested. @Pro-Panda, could you test?
Thanks. Tested using sugar-toolkit-gtk3/@4b294ac
Python 2
toolkit code; it should call the Python 3
version1529724998.263839 ERROR root: Error saving activity object to datastore
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/sugar3/activity/activity.py", line 1257, in _prepare_close
self.save()
File "/usr/lib/python2.7/dist-packages/sugar3/activity/activity.py", line 958, in save
self.write_file(file_path)
File "/usr/share/sugar/activities/Pippy/pippy_app.py", line 1008, in write_file
data = self._source_tabs.get_all_data()
File "/usr/share/sugar/activities/Pippy/notebook.py", line 321, in get_all_data
label = self._purify_file(self.get_tab_label(child).get_text())
File "/usr/share/sugar/activities/Pippy/notebook.py", line 307, in _purify_file
unicodedata.normalize('NFKD', label).encode('ascii', 'ignore')
TypeError: normalize() argument 2 must be unicode, not str
git add -p
could helptelepathy
which should be ported to TelepathyGLib
; please see updated guide to port activities to Python 3@Pro-Panda Thanks, working!
@Pro-Panda , I missed to update activity.info so this is calling Python 2 toolkit code I'll fix it
@octamois 👍
Stale; Needs more work.
@octamois if you plan to fix the same, please reopen the PR with the fixes