Your scripts should start with

!/usr/bin/python
# -*- coding: utf-8 -*-

see PEP 0263 [1]. You can also ssh to exec hosts (e.g. tools-exec-08) directly to test if it is something server specific or related to jsub.


-jan

[1] http://legacy.python.org/dev/peps/pep-0263/


On 05/19/2014 11:25 PM, Emilio J. Rodríguez-Posada wrote:
Hello;

When I test my Python script in tools-dev, prints are OK. But when I
launch the script with jsub, I receive errors of Unicode:

UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in
position 6: ordinal not in range(128)

Why does it change among boxes?

Regards


_______________________________________________
Labs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/labs-l



_______________________________________________
Labs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/labs-l

Reply via email to