AutoSys Workload Automation

  • 1.  issue with running Python3.6 script in Autosys

    Posted Sep 27, 2018 10:46 PM

    I'm running a python script (python 3.6) through Autosys R11.3.6. and I'm getting  an error as "Python unicodeencodeerror 'ascii' codec can't encode character u' u2018'"error. But the same python script is running fine if I execute it through command prompt. Any suggestion would be greatly Appreciated. 



  • 2.  Re: issue with running Python3.6 script in Autosys

    Broadcom Employee
    Posted Oct 01, 2018 09:08 AM

    Hi,

    Is the script opening and closing files that start with u?

    Also, what it the agent install directory?

    Please see this link for Agent directory starting with u.

     

    Thank you,

    Nitin Pande

    CA Technologies



  • 3.  Re: issue with running Python3.6 script in Autosys

    Posted Oct 01, 2018 09:13 AM

    AutoSys 101. if it runs from the command line and autosys is having issues, it means there's and environmental setting that is available when interactive that IS not available to the code. and you must add that setting. It could also be an issue with the code.

     

    I suggest lookig out there and finding how to fix it. here is just one example.

    python - UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 20: ordinal not in range(128) - St… 

     

     

    Steve C.



  • 4.  Re: issue with running Python3.6 script in Autosys

    Posted Dec 17, 2018 11:42 PM

    the locale variable is not set properly in the profile file. I've updated it and the job worked fine after that