getpass strange text box appears

669
4
10-08-2019 05:12 PM
AmyKlug
Occasional Contributor III

I am just learning the Python API so bear with me. A strange text box appears before the password prompt (appears twice). Not sure what is causing it.

I enter the password four times

0 Kudos
4 Replies
GeoJosh
Esri Regular Contributor

Hi Amy,

Can you attach a copy of the Jupyter so I can test the issue on my end?

Have you tried restarting the Python kernel?

-Josh

0 Kudos
AmyKlug
Occasional Contributor III

Here you go. last one was not correct. I have tried restarting the Kernel. Also, i use the same username for both target usernames, not sure why it asks for that twice.

0 Kudos
GeoJosh
Esri Regular Contributor

Amy,

The text boxes are a result of calling getpass() twice. The getpass() function prompts for user input without revealing it in plaintext. If you don't mind me asking, what is the goal of this script? Do you wish to authenticate to both the target and source portal anonymously? If so, there is no need to use the getpass() function.

Thanks,

Josh

AmyKlug
Occasional Contributor III

Hi,

I am trying to clone portal 10.5.1 to 10.7.1

link: Jupyter Notebook 

0 Kudos