Orange Forum • View topic - Add-on Error and Non acsii character issue

Add-on Error and Non acsii character issue

A place to ask questions about methods in Orange and how they are used and other general support.

Add-on Error and Non acsii character issue

Postby Cloga » Wed Apr 02, 2014 1:17

I want to add network add-on but when I goto option>add-ons , there is error, the error information as below.
Code: Select all
--------------------------------------------------------------------------------
ImportError                                   Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/application/canvasmain.py", line 1541, in open_addons
    dlg = AddOnManagerDialog(self, self)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/orngDlgs.py", line 740, in __init__
    Orange.utils.addons.load_installed_addons()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/utils/addons.py", line 198, in load_installed_addons
    with closing(open_addons(flag="c")) as addons:
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/utils/addons.py", line 72, in open_addons
    addons = shelve.open(AOLIST_FILE, flag)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 239, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 223, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/anydbm.py", line 84, in open
    mod = __import__(result)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/dbhash.py", line 7, in <module>
    import bsddb
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/bsddb/__init__.py", line 67, in <module>
    import _bsddb
ImportError: No module named _bsddb
--------------------------------------------------------------------------------
AttributeError                                Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 619, in reset_selected
    if self.data is not None:
AttributeError: 'OWEditDomain' object has no attribute 'data'
--------------------------------------------------------------------------------
AttributeError                                Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 643, in commit
    if self.data is not None:
AttributeError: 'OWEditDomain' object has no attribute 'data'
--------------------------------------------------------------------------------
ImportError                                   Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/application/canvasmain.py", line 1541, in open_addons
    dlg = AddOnManagerDialog(self, self)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/orngDlgs.py", line 740, in __init__
    Orange.utils.addons.load_installed_addons()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/utils/addons.py", line 198, in load_installed_addons
    with closing(open_addons(flag="c")) as addons:
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/utils/addons.py", line 72, in open_addons
    addons = shelve.open(AOLIST_FILE, flag)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 239, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 223, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/anydbm.py", line 84, in open
    mod = __import__(result)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/dbhash.py", line 7, in <module>
    import bsddb
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/bsddb/__init__.py", line 67, in <module>
    import _bsddb
ImportError: No module named _bsddb
--------------------------------------------------------------------------------
ImportError                                   Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/application/canvasmain.py", line 1541, in open_addons
    dlg = AddOnManagerDialog(self, self)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/orngDlgs.py", line 740, in __init__
    Orange.utils.addons.load_installed_addons()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/utils/addons.py", line 198, in load_installed_addons
    with closing(open_addons(flag="c")) as addons:
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/utils/addons.py", line 72, in open_addons
    addons = shelve.open(AOLIST_FILE, flag)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 239, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 223, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/anydbm.py", line 84, in open
    mod = __import__(result)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/dbhash.py", line 7, in <module>
    import bsddb
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/bsddb/__init__.py", line 67, in <module>
    import _bsddb
ImportError: No module named _bsddb
--------------------------------------------------------------------------------
ImportError                                   Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/application/canvasmain.py", line 1541, in open_addons
    dlg = AddOnManagerDialog(self, self)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/orngDlgs.py", line 740, in __init__
    Orange.utils.addons.load_installed_addons()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/utils/addons.py", line 198, in load_installed_addons
    with closing(open_addons(flag="c")) as addons:
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/utils/addons.py", line 72, in open_addons
    addons = shelve.open(AOLIST_FILE, flag)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 239, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 223, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/anydbm.py", line 84, in open
    mod = __import__(result)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/dbhash.py", line 7, in <module>
    import bsddb
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/bsddb/__init__.py", line 67, in <module>
    import _bsddb
ImportError: No module named _bsddb


Another question is about non ascii character, I use Chinese character as the attribution names, and these names became un-recognized character such as 冒险#, 剧情#. And when I try to modify attribution name ,there also a error occurred. The error information is as below:

Code: Select all
--------------------------------------------------------------------------------
ImportError                                   Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/application/canvasmain.py", line 1541, in open_addons
    dlg = AddOnManagerDialog(self, self)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/orngDlgs.py", line 740, in __init__
    Orange.utils.addons.load_installed_addons()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/utils/addons.py", line 198, in load_installed_addons
    with closing(open_addons(flag="c")) as addons:
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/utils/addons.py", line 72, in open_addons
    addons = shelve.open(AOLIST_FILE, flag)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 239, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 223, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/anydbm.py", line 84, in open
    mod = __import__(result)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/dbhash.py", line 7, in <module>
    import bsddb
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/bsddb/__init__.py", line 67, in <module>
    import _bsddb
ImportError: No module named _bsddb
--------------------------------------------------------------------------------
AttributeError                                Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 619, in reset_selected
    if self.data is not None:
AttributeError: 'OWEditDomain' object has no attribute 'data'
--------------------------------------------------------------------------------
AttributeError                                Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 643, in commit
    if self.data is not None:
AttributeError: 'OWEditDomain' object has no attribute 'data'
--------------------------------------------------------------------------------
ImportError                                   Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/application/canvasmain.py", line 1541, in open_addons
    dlg = AddOnManagerDialog(self, self)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/orngDlgs.py", line 740, in __init__
    Orange.utils.addons.load_installed_addons()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/utils/addons.py", line 198, in load_installed_addons
    with closing(open_addons(flag="c")) as addons:
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/utils/addons.py", line 72, in open_addons
    addons = shelve.open(AOLIST_FILE, flag)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 239, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 223, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/anydbm.py", line 84, in open
    mod = __import__(result)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/dbhash.py", line 7, in <module>
    import bsddb
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/bsddb/__init__.py", line 67, in <module>
    import _bsddb
ImportError: No module named _bsddb
--------------------------------------------------------------------------------
ImportError                                   Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/application/canvasmain.py", line 1541, in open_addons
    dlg = AddOnManagerDialog(self, self)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/orngDlgs.py", line 740, in __init__
    Orange.utils.addons.load_installed_addons()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/utils/addons.py", line 198, in load_installed_addons
    with closing(open_addons(flag="c")) as addons:
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/utils/addons.py", line 72, in open_addons
    addons = shelve.open(AOLIST_FILE, flag)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 239, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 223, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/anydbm.py", line 84, in open
    mod = __import__(result)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/dbhash.py", line 7, in <module>
    import bsddb
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/bsddb/__init__.py", line 67, in <module>
    import _bsddb
ImportError: No module named _bsddb
--------------------------------------------------------------------------------
ImportError                                   Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/application/canvasmain.py", line 1541, in open_addons
    dlg = AddOnManagerDialog(self, self)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/orngDlgs.py", line 740, in __init__
    Orange.utils.addons.load_installed_addons()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/utils/addons.py", line 198, in load_installed_addons
    with closing(open_addons(flag="c")) as addons:
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/utils/addons.py", line 72, in open_addons
    addons = shelve.open(AOLIST_FILE, flag)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 239, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py", line 223, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/anydbm.py", line 84, in open
    mod = __import__(result)
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/dbhash.py", line 7, in <module>
    import bsddb
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/bsddb/__init__.py", line 67, in <module>
    import _bsddb
ImportError: No module named _bsddb
--------------------------------------------------------------------------------
UnicodeEncodeError                            Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 259, in on_name_changed
    self.maybe_commit()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 249, in maybe_commit
    if not self.is_same():
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 236, in is_same
    name = str(self.name_edit.text())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
--------------------------------------------------------------------------------
UnicodeEncodeError                            Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 259, in on_name_changed
    self.maybe_commit()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 249, in maybe_commit
    if not self.is_same():
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 236, in is_same
    name = str(self.name_edit.text())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
--------------------------------------------------------------------------------
UnicodeEncodeError                            Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 259, in on_name_changed
    self.maybe_commit()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 249, in maybe_commit
    if not self.is_same():
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 236, in is_same
    name = str(self.name_edit.text())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
--------------------------------------------------------------------------------
UnicodeEncodeError                            Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 259, in on_name_changed
    self.maybe_commit()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 249, in maybe_commit
    if not self.is_same():
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 236, in is_same
    name = str(self.name_edit.text())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
--------------------------------------------------------------------------------
UnicodeEncodeError                            Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 259, in on_name_changed
    self.maybe_commit()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 249, in maybe_commit
    if not self.is_same():
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 236, in is_same
    name = str(self.name_edit.text())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
--------------------------------------------------------------------------------
UnicodeEncodeError                            Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 263, in on_labels_changed
    self.maybe_commit()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 249, in maybe_commit
    if not self.is_same():
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 236, in is_same
    name = str(self.name_edit.text())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
--------------------------------------------------------------------------------
UnicodeEncodeError                            Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 259, in on_name_changed
    self.maybe_commit()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 249, in maybe_commit
    if not self.is_same():
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 236, in is_same
    name = str(self.name_edit.text())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
--------------------------------------------------------------------------------
UnicodeEncodeError                            Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 259, in on_name_changed
    self.maybe_commit()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 249, in maybe_commit
    if not self.is_same():
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 236, in is_same
    name = str(self.name_edit.text())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
--------------------------------------------------------------------------------
UnicodeEncodeError                            Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 259, in on_name_changed
    self.maybe_commit()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 249, in maybe_commit
    if not self.is_same():
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 236, in is_same
    name = str(self.name_edit.text())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
--------------------------------------------------------------------------------
UnicodeEncodeError                            Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 259, in on_name_changed
    self.maybe_commit()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 249, in maybe_commit
    if not self.is_same():
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 236, in is_same
    name = str(self.name_edit.text())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
--------------------------------------------------------------------------------
UnicodeEncodeError                            Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 259, in on_name_changed
    self.maybe_commit()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 249, in maybe_commit
    if not self.is_same():
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 236, in is_same
    name = str(self.name_edit.text())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
--------------------------------------------------------------------------------
UnicodeEncodeError                            Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 259, in on_name_changed
    self.maybe_commit()
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 249, in maybe_commit
    if not self.is_same():
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeWidgets/Data/OWEditDomain.py", line 236, in is_same
    name = str(self.name_edit.text())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)

Re: Add-on Error and Non acsii character issue

Postby Ales » Tue Apr 08, 2014 9:51

Cloga wrote:I want to add network add-on but when I goto option>add-ons , there is error...
Can you test again with the latest build?

Cloga wrote:Another question is about non ascii character, I use Chinese character as the attribution names, and these names became un-recognized character such as...
Unfortunately support for non ascii character sets is practically non-existent in Orange. I will try to fix the widget so it won't throw an error but I can't fix the name mangling at this time.


Return to Questions & Support



cron