Oh my. Thanks for that. Let me get to the bottom of the right thing to do here. I still don't get why the main spark script works doing the same thing!
On Fri, Feb 15, 2019, 6:02 PM Marcelo Vanzin <van...@cloudera.com wrote: > You're talking about the spark-website script, right? The main repo's > script has been working for me, the website one is broken. > > I think it was caused by this dude changing raw_input to input recently: > > commit 8b6e7dceaf5d73de3f92907ceeab8925a2586685 > Author: Sean Owen <sean.o...@databricks.com> > Date: Sat Jan 19 19:02:30 2019 -0600 > > More minor style fixes for merge script > > 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 >