QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: zhangxuebiao on February 24, 2010, 12:33

Title: How can I open a .vnl file in Windows which was created in Linux ?
Post by: zhangxuebiao on February 24, 2010, 12:33
RT!
Thanks in advance!
Title: Re: How can I open a .vnl file in Windows which was created in Linux ?
Post by: Anders Blom on February 24, 2010, 16:13
The VNL files are completely platform-independent, so there shouldn't be any problems with this :)
Title: Re: How can I open a .vnl file in Windows which was created in Linux ?
Post by: zhangxuebiao on February 25, 2010, 14:49
The VNL files are completely platform-independent, so there shouldn't be any problems with this :)

But when I open a .vnl file which was created in Linux system,
an error occured!
Below is content of the error:
An internal error occured
exceptions.UnicodeEncodeError:
'ascii' codec can't encode characters in position 3-4:ordinal not in range(128)

The program will try to continue but might behave
in unexpected ways. Please consider restarting the
program to avoid such side effects.

 ::)I cannot understand !
Title: Re: How can I open a .vnl file in Windows which was created in Linux ?
Post by: Anders Blom on February 25, 2010, 15:35
Hmm, me either :)

So does it work to open the file in VNL on Linux?

Considering that it complains about something related to "ascii" and "128", I'm thinking this might have something to do with labels, or filenames, perhaps containing non-standard characters (outside the 7-bit ASCII table)...
Title: Re: How can I open a .vnl file in Windows which was created in Linux ?
Post by: zhangxuebiao on February 26, 2010, 07:26
I haven't try to open a .vnl file on Linux system!

Our Teaching and Research Section has a Linux server.
I have installed the ATK-2008.10.0 on it.
So I compute the .py script on Linux,then I check the result on VNL installed on Wndows.
But I found that the .vnl file cannot open.
The "exception. UnicodeEncodeError" always occurs.

I have searched the error,finding that it's a build-in exception of Python.

exception UnicodeEncodeError:
Raised when a Unicode-related error occurs during encoding. It is a subclass of UnicodeError.

But how can I solve this problem?

Thanks!
Title: Re: How can I open a .vnl file in Windows which was created in Linux ?
Post by: Anders Blom on February 26, 2010, 07:29
I suspect that this somehow must be related to the use of Unicode characters (Chinese, Korean, Japanese, Cyrillic) somewhere, perhaps in some label, or filename, or username...
Title: Re: How can I open a .vnl file in Windows which was created in Linux ?
Post by: zhangxuebiao on February 28, 2010, 05:30
 :)Thanks for your replies.
I have solved my problem.
It's the name of the folder that I store the .vnl file.