Orange Forum • View topic - Cannot save the Scheme and output file

Cannot save the Scheme and output file

Report bugs (or imagined bugs).
(Archived/read-only, please use our ticketing system for reporting bugs and their discussion.)
Forum rules
Archived/read-only, please use our ticketing system for reporting bugs and their discussion.

Cannot save the Scheme and output file

Postby Fiona » Fri Feb 13, 2009 1:05

hihi:
I cannot save the Scheme and output file. The error message go as following. Thanks.

File: orngCanvas.pyw, line 313 in menuItemSave
Code: self.schema.saveDocument()
File: orngDoc.py, line 388 in saveDocument
Code: self.saveDocumentAs()
File: orngDoc.py, line 393 in saveDocumentAs
Code: name = str(QFileDialog.getSaveFileName(self, "Save File", os.path.join(self.schemaPath, self.schemaName), "Orange Widget Schema (*.ows)"))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 32-33: ordinal not in range(128)

Postby Janez » Fri Feb 13, 2009 6:04

Did you use any non-English characters in the file name?

I believe that we can fix this particular instance, but in general Orange will work well with unicode only after we go to Python 3.0. Supporting unicode in the current mixture of libraries we use would be a mess.

RE:Cannot save the Scheme and output file

Postby Fiona » Sat Feb 14, 2009 5:29

I use Chinese Windows xp.
Is this the cause of problem?
I don;t think I will reinstall the OS, do you have a solution for me?
Thank you so much

Postby Janez » Sat Feb 14, 2009 9:11

I don't about Chinese, but I know Orange works on Japanese Windows. Do you have any Chinese characters in the path name? Can you try saving into something like c:\orange\orange.ows?


Return to Bugs