Orange Forum • View topic - Bug while importing text data

Bug while importing text data

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.

Bug while importing text data

Postby datarider » Wed Oct 18, 2006 10:47

Hello,

I have just dowloaded Orange for Windows, and tried to import a data file.
But the following bug appeared :

Unhandled exception of type exceptions.UnicodeEncodeError occured at
11:25:02:
Traceback:
File: orngSignalManager.py in line 60
Function name: __call__
Code: apply(self.method, k)
File: OWFile.py in line 47
Function name: selectFile
Code: self.browseFile(1)
File: OWFile.py in line 81
Function name: browseFile
Code: None,'Open Orange Data File'))
Exception type: exceptions.UnicodeEncodeError
Exception value: 'ascii' codec can't encode character u'\xe9' in
position 60: ordinal not in range(128)

Could you help me to solve it, because i do not see what to do to import my data.

Many thanks in advance for your help.

remy

Postby Janez » Wed Oct 18, 2006 14:50

Remy,

what's the file name? It shouldn't contain any non-ascii characters (same for the directories). Where have you installed Orange (or Python)? Are there any French characters in the directory name?

We know that this is annoying; supporting unicode will require quite a lot of work, but we're working on it quite actively.

Janez

Bug while importing text data

Postby datarider » Thu Oct 19, 2006 8:15

Janez,

Thanks for your quick reply.

The file name is the following : TAB_ECA_Marketing_FILTRE.txt

I have installed Orange (the orange-w-python-0.9.64.exe) in the following directory : C:\Python23\lib\site-packages\orange

Hope this will help you to solve my problem.

Looking forward to reading from you.

Remy

Postby Janez » Thu Oct 19, 2006 8:25

Is FILTRE actually filtré, but in uppercase, so é is shown without the acute? Try replacing the last e with plain e or simply rename the whole file into something simpler (say x.txt).

Unicode Encode Error while importing data

Postby datarider » Thu Oct 19, 2006 10:40

FILTRE is in uppercase, so without any acute.

I replaced the previous name by another one, which is now :
ecamkg2.txt

Unfortunately, the same error message appears.

Rémy

Postby Janez » Thu Oct 19, 2006 12:45

The reason I asked about acute is that u'\xe9' is e with acute...

One more thing: delete C:\Python23\lib\site-packages\orange\OrangeWidgets\widgetSettings\File.ini
Something may be left there.

Janez

Always the same bug

Postby datarider » Wed Nov 08, 2006 18:16

I deleted File.ini

But the bug persists...

Could I send my file to you, so that you could tell me why i cannot load it into Orange ?

remy


Janez wrote:The reason I asked about acute is that u'\xe9' is e with acute...

One more thing: delete C:\Python23\lib\site-packages\orange\OrangeWidgets\widgetSettings\File.ini
Something may be left there.

Janez

Postby Janez » Wed Nov 08, 2006 20:02

Sure, please do. My email is janez.demsar .... at .... fri.uni-lj.si.

Janez


Return to Bugs