BTW the main script has this that the website script does not:

if sys.version < '3':
   input = raw_input  # noqa

On Fri, Feb 15, 2019 at 3:55 PM Sean Owen <sro...@gmail.com> wrote:
>
> I'm seriously confused on this one. The spark-website merge script
> just stopped working for me. It fails on the call to input() that
> expects a y/n response, saying 'y' isn't defined.
>
> Indeed, it seems like Python 2's input() tries to evaluate the input,
> rather than return a string. Python 3 input() returns as a string, as
> does Python 2's raw_input().
>
> But the script clearly requires Python 2 as it imports urllib2, and my
> local "python" is Python 2.
>
> And nothing has changed recently and this has worked for a long time.
> The main spark merge script does the same.
>
> How on earth has this worked?
>
> I could replace input() with raw_input(), or just go ahead and fix the
> merge scripts to work with / require Python 3. But am I missing
> something basic?
>
> If not, which change would people be OK with?
>
> Sean
>
> ---------------------------------------------------------------------
> To unsubscribe e-mail: dev-unsubscr...@spark.apache.org
>


-- 
Marcelo

---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscr...@spark.apache.org

Reply via email to