taers232c / GAM-Scripts3

Scripts for use with GAM - Python 3.6+
229 stars 49 forks source link

Issue with MergeSendasUsers.py #4

Closed markbuckley92 closed 3 years ago

markbuckley92 commented 4 years ago

Untitled

I have just tried to set this up but keep getting this error

taers232c commented 4 years ago

The script is expecting UTF-8 data and you're probably providing Latin1 Change these lines:


  inputFile = open(sys.argv[1], 'r', encoding='utf-8')
to
  inputFile = open(sys.argv[1], 'r', encoding='latin1')

  inputFile = open(sys.argv[2], 'r', encoding='utf-8')
to
  inputFile = open(sys.argv[2], 'r', encoding='latin1')

  outputFile = open(sys.argv[3], 'w', encoding='utf-8', newline='')
to
  outputFile = open(sys.argv[3], 'w', encoding='latin1', newline='')
markbuckley92 commented 4 years ago

That has fixed that problem but created this problem

On Fri, 25 Oct 2019 at 19:50, Ross Scroggs notifications@github.com wrote:

The script is expecting UTF-8 data and you're probably providing Latin1 Change these lines:

inputFile = open(sys.argv[1], 'r', encoding='utf-8') to inputFile = open(sys.argv[1], 'r', encoding='latin1)

inputFile = open(sys.argv[2], 'r', encoding='utf-8') to inputFile = open(sys.argv[2], 'r', encoding='latin1')

outputFile = open(sys.argv[3], 'w', encoding='utf-8', newline='') to outputFile = open(sys.argv[3], 'w', encoding='latin1', newline='')

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/taers232c/GAM-Scripts3/issues/4?email_source=notifications&email_token=ANS7ZYYMKLYES4ITETOSFR3QQM5WBA5CNFSM4JFHDEJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECJHPHQ#issuecomment-546469790, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANS7ZY3HA54IV4NQ7N6OLFDQQM5WBANCNFSM4JFHDEJQ .

--

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.

taers232c commented 4 years ago

Mark,

Call me on Google Hangouts or send a Meet invitation.

ross.scroggs@gmail.com