Author Topic: How can I open a .vnl file in Windows which was created in Linux ?  (Read 5875 times)

0 Members and 1 Guest are viewing this topic.

Offline zhangxuebiao

  • Regular QuantumATK user
  • **
  • Posts: 6
  • Reputation: 0
    • View Profile
RT!
Thanks in advance!

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5541
  • Country: dk
  • Reputation: 91
    • View Profile
    • QuantumATK at Synopsys
The VNL files are completely platform-independent, so there shouldn't be any problems with this :)

Offline zhangxuebiao

  • Regular QuantumATK user
  • **
  • Posts: 6
  • Reputation: 0
    • View Profile
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 !

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5541
  • Country: dk
  • Reputation: 91
    • View Profile
    • QuantumATK at Synopsys
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)...

Offline zhangxuebiao

  • Regular QuantumATK user
  • **
  • Posts: 6
  • Reputation: 0
    • View Profile
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!

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5541
  • Country: dk
  • Reputation: 91
    • View Profile
    • QuantumATK at Synopsys
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...

Offline zhangxuebiao

  • Regular QuantumATK user
  • **
  • Posts: 6
  • Reputation: 0
    • View Profile
 :)Thanks for your replies.
I have solved my problem.
It's the name of the folder that I store the .vnl file.